| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <hc:Window x:Class="TeamAAS.Dialogs.Dialogs.PluginViewDialog"
- 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"
- Title="插件编辑"
- Width="1100" Height="750"
- WindowStartupLocation="CenterOwner"
- Background="{DynamicResource RegionBrush}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="Auto"/>
- </Grid.RowDefinitions>
- <!-- 插件自定义视图宿主 -->
- <ContentControl x:Name="ViewHost" Grid.Row="0"/>
- <!-- 按钮 + 底部提示栏(Tip) -->
- <Border Grid.Row="1" Background="{DynamicResource RegionBrush}" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="0,1,0,0" Padding="12,8">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="Auto"/>
- </Grid.ColumnDefinitions>
- <!-- 提示栏:鼠标悬停提示 / 执行结果 CT 等信息统一显示在这里 -->
- <TextBlock x:Name="TxtTip" Grid.Column="0"
- VerticalAlignment="Center"
- Foreground="{DynamicResource SecondaryTextBrush}"
- FontSize="13"
- Margin="0,0,12,0"
- TextTrimming="CharacterEllipsis"/>
- <StackPanel Grid.Column="1" 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>
- </Grid>
- </Border>
- </Grid>
- </hc:Window>
|