终端一体化运控平台
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

97 wiersze
4.4 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.CustomResource.UserControls.ImageBorder"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmartClient.CustomResource.UserControls"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. d:DesignHeight="450"
  9. d:DesignWidth="800"
  10. mc:Ignorable="d">
  11. <UserControl.Resources>
  12. <SolidColorBrush x:Key="borderColor" Color="#552AB2E7" />
  13. </UserControl.Resources>
  14. <Grid Name="gr">
  15. <Viewbox Width="auto" Height="auto">
  16. <Canvas Width="{Binding ElementName=gr, Path=ActualWidth}" Height="{Binding ElementName=gr, Path=ActualHeight}">
  17. <Canvas.Background>
  18. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形2.png" Stretch="Fill" />
  19. </Canvas.Background>
  20. <Grid>
  21. <Border
  22. Width="{Binding ElementName=gr, Path=ActualWidth}"
  23. BorderBrush="{StaticResource borderColor}"
  24. BorderThickness="0.5" />
  25. <Border
  26. Width="{Binding ElementName=gr, Path=ActualWidth}"
  27. VerticalAlignment="Bottom"
  28. BorderBrush="{StaticResource borderColor}"
  29. BorderThickness="0.5" />
  30. <Border
  31. Height="{Binding ElementName=gr, Path=ActualHeight}"
  32. BorderBrush="{StaticResource borderColor}"
  33. BorderThickness="0.5" />
  34. <Border
  35. Height="{Binding ElementName=gr, Path=ActualHeight}"
  36. HorizontalAlignment="Right"
  37. BorderBrush="{StaticResource borderColor}"
  38. BorderThickness="0.5" />
  39. <!--<Image
  40. Width="{Binding ElementName=gr, Path=ActualWidth}"
  41. VerticalAlignment="Top"
  42. Source="/BPASmartClient.CustomResource;component/Image/直线.png"
  43. Stretch="Fill" />
  44. <Image
  45. Width="{Binding ElementName=gr, Path=ActualWidth}"
  46. VerticalAlignment="Bottom"
  47. Source="/BPASmartClient.CustomResource;component/Image/直线.png" />
  48. <Image
  49. Width="{Binding ElementName=gr, Path=ActualHeight}"
  50. HorizontalAlignment="Left"
  51. VerticalAlignment="Top"
  52. RenderTransformOrigin="0,0.1"
  53. Source="/BPASmartClient.CustomResource;component/Image/直线.png">
  54. <Image.RenderTransform>
  55. <TransformGroup>
  56. <ScaleTransform />
  57. <SkewTransform />
  58. <RotateTransform Angle="90" />
  59. <TranslateTransform />
  60. </TransformGroup>
  61. </Image.RenderTransform>
  62. </Image>
  63. <Image
  64. Width="{Binding ElementName=gr, Path=ActualHeight}"
  65. HorizontalAlignment="Right"
  66. VerticalAlignment="Bottom"
  67. RenderTransformOrigin="1,0"
  68. Source="/BPASmartClient.CustomResource;component/Image/直线.png">
  69. <Image.RenderTransform>
  70. <TransformGroup>
  71. <ScaleTransform />
  72. <SkewTransform />
  73. <RotateTransform Angle="90" />
  74. <TranslateTransform />
  75. </TransformGroup>
  76. </Image.RenderTransform>
  77. </Image>-->
  78. <Path Name="leftTop" Stroke="Aqua" />
  79. <Path Name="rightTop" Stroke="Aqua" />
  80. <Path Name="leftBottom" Stroke="Aqua" />
  81. <Path Name="rightBottom" Stroke="Aqua" />
  82. </Grid>
  83. </Canvas>
  84. </Viewbox>
  85. </Grid>
  86. </UserControl>