This repository has been archived on 2023-01-27. You can view files and clone it, but cannot push or open issues or pull requests.
cad/ref/xcad/samples/SwAddIn/WpfUserControl.xaml
2022-10-15 19:16:08 +02:00

20 lines
1.1 KiB
XML

<UserControl x:Class="SwAddInExample.WpfUserControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:SwAddInExample"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid VerticalAlignment="Center" HorizontalAlignment="Center">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="100"/>
</Grid.RowDefinitions>
<TextBlock FontSize="25" Text="Hello World" Margin="2"/>
<TextBox Grid.Row="1" Margin="2" Text="{Binding Path=Value, UpdateSourceTrigger=PropertyChanged}"/>
<DataGrid Grid.Row="2" Margin="2" ItemsSource="{Binding Path=Items}" CanUserAddRows="True" AutoGenerateColumns="True"/>
</Grid>
</UserControl>