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