SubStationView.xaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. <UserControl x:Class="NEIntelligentControl2.Views.BoostStation.SubStationView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:NEIntelligentControl2.Views.BoostStation"
  7. xmlns:svg="clr-namespace:SVGViewer;assembly=SVGViewer"
  8. mc:Ignorable="d"
  9. d:DesignHeight="450" d:DesignWidth="800" Loaded="UserControl_Loaded" Margin="10" MaxHeight="337.5">
  10. <UserControl.Effect>
  11. <DropShadowEffect ShadowDepth="0"/>
  12. </UserControl.Effect>
  13. <Border Background="WhiteSmoke" CornerRadius="7">
  14. <Grid Margin="5">
  15. <Grid.RowDefinitions>
  16. <RowDefinition/>
  17. <RowDefinition Height="Auto"/>
  18. </Grid.RowDefinitions>
  19. <Viewbox x:Name="_vb"/>
  20. <!--<svg:SVGView x:Name="_svg"/>-->
  21. <TextBlock x:Name="_TBTitle" Grid.Row="1" HorizontalAlignment="Center" Margin="10"/>
  22. </Grid>
  23. </Border>
  24. <UserControl.ContextMenu>
  25. <ContextMenu>
  26. <MenuItem Header="编辑" Click="MenuItem_Click" Tag="edit"/>
  27. <Separator/>
  28. <MenuItem Header="删除" Click="MenuItem_Click" Tag="remove"/>
  29. </ContextMenu>
  30. </UserControl.ContextMenu>
  31. </UserControl>