Files
BeWoPlaner/BeWo/View/Controls/TextViewer.xaml
2025-04-14 10:15:45 +02:00

40 lines
1.3 KiB
XML

<UserControl
x:Class="BeWo.View.Controls.TextViewer"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:BeWo.View.Controls"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<Grid Grid.Row="0">
<ScrollViewer
Margin="3"
Background="#eeeeee"
HorizontalScrollBarVisibility="Auto"
VerticalScrollBarVisibility="Auto">
<TextBox
x:Name="txt"
Background="#f1f1f1"
BorderThickness="1"
Foreground="Black"
IsReadOnly="True"
Text="test" />
</ScrollViewer>
</Grid>
<Button
Grid.Row="1"
Margin="3"
Click="Button_Click"
Content="Inhalt in Zwischenablage kopieren" />
</Grid>
</UserControl>