|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <UserControl
- x:Class="BPASmartClient.CustomResource.UserControls.ImageBorder"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmartClient.CustomResource.UserControls"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- d:DesignHeight="450"
- d:DesignWidth="800"
- mc:Ignorable="d">
-
- <UserControl.Resources>
- <SolidColorBrush x:Key="borderColor" Color="#552AB2E7" />
- </UserControl.Resources>
-
- <Grid Name="gr">
- <Viewbox Width="auto" Height="auto">
- <Canvas Width="{Binding ElementName=gr, Path=ActualWidth}" Height="{Binding ElementName=gr, Path=ActualHeight}">
- <Canvas.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形2.png" Stretch="Fill" />
- </Canvas.Background>
- <Grid>
- <Border
- Width="{Binding ElementName=gr, Path=ActualWidth}"
- BorderBrush="{StaticResource borderColor}"
- BorderThickness="0.5" />
- <Border
- Width="{Binding ElementName=gr, Path=ActualWidth}"
- VerticalAlignment="Bottom"
- BorderBrush="{StaticResource borderColor}"
- BorderThickness="0.5" />
-
- <Border
- Height="{Binding ElementName=gr, Path=ActualHeight}"
- BorderBrush="{StaticResource borderColor}"
- BorderThickness="0.5" />
-
- <Border
- Height="{Binding ElementName=gr, Path=ActualHeight}"
- HorizontalAlignment="Right"
- BorderBrush="{StaticResource borderColor}"
- BorderThickness="0.5" />
-
- <!--<Image
- Width="{Binding ElementName=gr, Path=ActualWidth}"
- VerticalAlignment="Top"
- Source="/BPASmartClient.CustomResource;component/Image/直线.png"
- Stretch="Fill" />
-
- <Image
- Width="{Binding ElementName=gr, Path=ActualWidth}"
- VerticalAlignment="Bottom"
- Source="/BPASmartClient.CustomResource;component/Image/直线.png" />
-
- <Image
- Width="{Binding ElementName=gr, Path=ActualHeight}"
- HorizontalAlignment="Left"
- VerticalAlignment="Top"
- RenderTransformOrigin="0,0.1"
- Source="/BPASmartClient.CustomResource;component/Image/直线.png">
- <Image.RenderTransform>
- <TransformGroup>
- <ScaleTransform />
- <SkewTransform />
- <RotateTransform Angle="90" />
- <TranslateTransform />
- </TransformGroup>
- </Image.RenderTransform>
- </Image>
-
- <Image
- Width="{Binding ElementName=gr, Path=ActualHeight}"
- HorizontalAlignment="Right"
- VerticalAlignment="Bottom"
- RenderTransformOrigin="1,0"
- Source="/BPASmartClient.CustomResource;component/Image/直线.png">
- <Image.RenderTransform>
- <TransformGroup>
- <ScaleTransform />
- <SkewTransform />
- <RotateTransform Angle="90" />
- <TranslateTransform />
- </TransformGroup>
- </Image.RenderTransform>
- </Image>-->
-
- <Path Name="leftTop" Stroke="Aqua" />
- <Path Name="rightTop" Stroke="Aqua" />
- <Path Name="leftBottom" Stroke="Aqua" />
- <Path Name="rightBottom" Stroke="Aqua" />
- </Grid>
-
- </Canvas>
- </Viewbox>
- </Grid>
- </UserControl>
|