PluginViewDialog.xaml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <hc:Window x:Class="TeamAAS.Dialogs.Dialogs.PluginViewDialog"
  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. Title="插件编辑"
  6. Width="1100" Height="750"
  7. WindowStartupLocation="CenterOwner"
  8. Background="{DynamicResource RegionBrush}">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="*"/>
  12. <RowDefinition Height="Auto"/>
  13. </Grid.RowDefinitions>
  14. <!-- 插件自定义视图宿主 -->
  15. <ContentControl x:Name="ViewHost" Grid.Row="0"/>
  16. <!-- 按钮 + 底部提示栏(Tip) -->
  17. <Border Grid.Row="1" Background="{DynamicResource RegionBrush}" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="0,1,0,0" Padding="12,8">
  18. <Grid>
  19. <Grid.ColumnDefinitions>
  20. <ColumnDefinition Width="*"/>
  21. <ColumnDefinition Width="Auto"/>
  22. </Grid.ColumnDefinitions>
  23. <!-- 提示栏:鼠标悬停提示 / 执行结果 CT 等信息统一显示在这里 -->
  24. <TextBlock x:Name="TxtTip" Grid.Column="0"
  25. VerticalAlignment="Center"
  26. Foreground="{DynamicResource SecondaryTextBrush}"
  27. FontSize="13"
  28. Margin="0,0,12,0"
  29. TextTrimming="CharacterEllipsis"/>
  30. <StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right">
  31. <Button x:Name="BtnExecute" Content="执行" Style="{StaticResource ButtonInfo}" Padding="20,6" Margin="0,0,8,0" Click="BtnExecute_Click" Visibility="Collapsed"
  32. Tag="在后台运行当前模块并实时显示状态;运行中再点一次可停止" MouseEnter="BtnTip_MouseEnter" MouseLeave="BtnTip_MouseLeave"/>
  33. <Button x:Name="BtnCancel" Content="取消" Padding="20,6" Margin="0,0,8,0" Click="BtnCancel_Click"
  34. Tag="关闭窗体且不保存本次修改" MouseEnter="BtnTip_MouseEnter" MouseLeave="BtnTip_MouseLeave"/>
  35. <Button x:Name="BtnOK" Content="确定" Style="{StaticResource ButtonPrimary}" Padding="20,6" Click="BtnOK_Click"
  36. Tag="保存修改并关闭窗体" MouseEnter="BtnTip_MouseEnter" MouseLeave="BtnTip_MouseLeave"/>
  37. </StackPanel>
  38. </Grid>
  39. </Border>
  40. </Grid>
  41. </hc:Window>