Laservall_solidworks_inject/Pane/WPF/TestUserControl.xaml

31 lines
1.6 KiB
XML

<UserControl x:Class="Laservall.Solidworks.Pane.WPF.TestUserControl"
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:Laservall.Solidworks.Pane.WPF"
xmlns:hc="https://handyorg.github.io/handycontrol"
mc:Ignorable="d"
d:DesignHeight="500" d:DesignWidth="300">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/Laservall.Solidworks;component/Themes/Theme.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="40"/>
<RowDefinition Height="*" />
<RowDefinition Height="20"/>
</Grid.RowDefinitions>
<hc:ButtonGroup Grid.Row="0" VerticalAlignment="Center" Margin="10,5">
<Button FontSize="14" Content="保存" Background="#81C784"/>
<Button FontSize="14" Content="重置" Background="#E57373" />
</hc:ButtonGroup>
<hc:PropertyGrid Background="Transparent" FontSize="14" Grid.Row="1" SelectedObject="{Binding partPropModel}"/>
<TextBlock Grid.Row="2" x:Name="VersionText" VerticalAlignment="Center" HorizontalAlignment="Center" Text="1.0.0.1"/>
</Grid>
</UserControl>