VmWindow.xaml 1.3 KB

1234567891011121314151617181920212223242526
  1. <UserControl x:Class="Plugins.Vm.Views.VmWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:vmctl="clr-namespace:VMControls.WPF.Release;assembly=VMControls.WPF.Release">
  5. <Border Background="{DynamicResource RegionBrush}" BorderBrush="{DynamicResource BorderBrush}"
  6. BorderThickness="1" CornerRadius="4" Margin="2">
  7. <Grid>
  8. <Grid.RowDefinitions>
  9. <RowDefinition Height="Auto"/>
  10. <RowDefinition Height="*"/>
  11. </Grid.RowDefinitions>
  12. <!-- 标题栏 + 状态圆点 -->
  13. <Grid Grid.Row="0" Margin="8,4">
  14. <TextBlock x:Name="CaptionText" Text="画面" FontSize="13" FontWeight="Bold"
  15. Foreground="{DynamicResource PrimaryTextBrush}" VerticalAlignment="Center"/>
  16. <Ellipse x:Name="StatusDot" Width="12" Height="12" HorizontalAlignment="Right"
  17. VerticalAlignment="Center" Visibility="Collapsed" Fill="#888888"/>
  18. </Grid>
  19. <Border Grid.Row="1" Background="Black" ClipToBounds="True">
  20. <vmctl:VmRenderControl x:Name="Render"/>
  21. </Border>
  22. </Grid>
  23. </Border>
  24. </UserControl>