PropertyGridDialog.xaml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <hc:Window x:Class="TeamAAS.Dialogs.Dialogs.PropertyGridDialog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:hc="https://handyorg.github.io/handycontrol"
  5. xmlns:pg="clr-namespace:PropertyGridLib;assembly=PropertyGridLib"
  6. Title="属性编辑"
  7. Width="500" Height="600"
  8. WindowStartupLocation="CenterOwner"
  9. Background="{DynamicResource RegionBrush}">
  10. <Grid Margin="12">
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="*"/>
  13. <RowDefinition Height="Auto"/>
  14. </Grid.RowDefinitions>
  15. <!-- PropertyGrid -->
  16. <pg:PropertyGrid x:Name="PropertyGrid"
  17. Grid.Row="0"
  18. FontSize="15"
  19. ShowSearchBar="True"
  20. ShowDescription="True"/>
  21. <!-- 按钮 + 底部提示栏(Tip) -->
  22. <StackPanel Grid.Row="1" Orientation="Vertical" Margin="0,12,0,0">
  23. <TextBlock x:Name="TxtTip"
  24. Foreground="{DynamicResource SecondaryTextBrush}"
  25. FontSize="13"
  26. Margin="2,0,2,6"
  27. TextTrimming="CharacterEllipsis"/>
  28. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
  29. <Button x:Name="BtnExecute" Content="执行" Style="{StaticResource ButtonInfo}" Padding="20,6" Margin="0,0,8,0" Click="BtnExecute_Click" Visibility="Collapsed"
  30. Tag="在后台运行当前模块并实时显示状态;运行中再点一次可停止" MouseEnter="BtnTip_MouseEnter" MouseLeave="BtnTip_MouseLeave"/>
  31. <Button x:Name="BtnCancel" Content="取消" Padding="20,6" Margin="0,0,8,0" Click="BtnCancel_Click"
  32. Tag="关闭窗体且不保存本次修改" MouseEnter="BtnTip_MouseEnter" MouseLeave="BtnTip_MouseLeave"/>
  33. <Button x:Name="BtnOK" Content="确定" Style="{StaticResource ButtonPrimary}" Padding="20,6" Click="BtnOK_Click"
  34. Tag="保存修改并关闭窗体" MouseEnter="BtnTip_MouseEnter" MouseLeave="BtnTip_MouseLeave"/>
  35. </StackPanel>
  36. </StackPanel>
  37. </Grid>
  38. </hc:Window>