<UserControl
    x:Class="LargeScreen.Resources.ResourceDictionarys.MyBorder"
    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:LargeScreen.Resources.ResourceDictionarys"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    d:DesignHeight="450"
    d:DesignWidth="800"
    Background="{x:Null}"
    mc:Ignorable="d">

    <Control.Resources>
        <SolidColorBrush x:Key="BorderGradient" Color="#3186E6" />
    </Control.Resources>

    <Viewbox Stretch="Fill">
        <Canvas Width="134" Height="39">
            <Border x:Name="Bd" VerticalAlignment="Center">
                <Grid>
                    <ScrollViewer
                        x:Name="PART_ContentHost"
                        VerticalAlignment="Center"
                        HorizontalScrollBarVisibility="Hidden"
                        VerticalScrollBarVisibility="Hidden" />

                    <Border
                        Margin="1.5,0.5,1,0.5"
                        BorderBrush="{StaticResource BorderGradient}"
                        BorderThickness="1"
                        ClipToBounds="True"
                        CornerRadius="0.5">
                        <Border.Effect>
                            <DropShadowEffect
                                BlurRadius="20"
                                Direction="0"
                                Opacity="1"
                                ShadowDepth="0"
                                Color="#3186e6" />
                        </Border.Effect>
                    </Border>

                    <!--  上边框  -->
                    <!--
                    <Path Stroke="{StaticResource BorderGradient}" StrokeThickness="0.5">
                    -->
                    <!--<Path.Stroke>
                            <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                                <GradientStop Color="#3300FFFF" />
                                <GradientStop Offset="1" Color="#1500FFFF" />
                            </LinearGradientBrush>
                        </Path.Stroke>-->
                    <!--
                        <Path.Effect>
                            <DropShadowEffect
                                Direction="270"
                                Opacity="1"
                                ShadowDepth="2"
                                Color="#3186E6" />
                        </Path.Effect>
                        <Path.Data>
                            <PathGeometry>
                                <PathFigure IsClosed="False" StartPoint="1, 0.5">
                                    <LineSegment Point="133,0.5" />
                                </PathFigure>
                            </PathGeometry>
                        </Path.Data>
                    </Path>

                    -->
                    <!--  下边框  -->
                    <!--
                    <Path Stroke="{StaticResource BorderGradient}" StrokeThickness="0.5">
                    -->
                    <!--<Path.Stroke>
                            <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                                <GradientStop Offset="1" Color="#3300FFFF" />
                                <GradientStop Color="#1500FFFF" />
                            </LinearGradientBrush>
                        </Path.Stroke>-->
                    <!--
                        <Path.Effect>
                            <DropShadowEffect
                                Direction="90"
                                Opacity="1"
                                ShadowDepth="2"
                                Color="#3186E6" />
                        </Path.Effect>
                        <Path.Data>
                            <PathGeometry>
                                <PathFigure IsClosed="False" StartPoint="133, 38.5">
                                    <LineSegment Point="1,38.5" />
                                </PathFigure>
                            </PathGeometry>
                        </Path.Data>
                    </Path>

                    -->
                    <!--  左边框  -->
                    <!--
                    <Path Stroke="{StaticResource BorderGradient}" StrokeThickness="1">
                    -->
                    <!--<Path.Stroke>
                            <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                <GradientStop Offset="0" Color="#3300FFFF" />
                                <GradientStop Offset="1" Color="#1500FFFF" />
                            </LinearGradientBrush>
                        </Path.Stroke>-->
                    <!--
                        <Path.Effect>
                            <DropShadowEffect
                                Direction="0"
                                Opacity="1"
                                ShadowDepth="2"
                                Color="#3186E6" />
                        </Path.Effect>
                        <Path.Data>
                            <PathGeometry>
                                <PathFigure IsClosed="False" StartPoint="1.5, 37.5">
                                    <LineSegment Point="1.5,1.5" />

                                </PathFigure>
                            </PathGeometry>
                        </Path.Data>
                    </Path>

                    -->
                    <!--  右边框  -->
                    <!--
                    <Path Stroke="{StaticResource BorderGradient}" StrokeThickness="1">
                    -->
                    <!--<Path.Stroke>
                            <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                                <GradientStop Color="#3300FFFF" />
                                <GradientStop Offset="1" Color="#1500FFFF" />
                            </LinearGradientBrush>
                        </Path.Stroke>-->
                    <!--
                        <Path.Effect>
                            <DropShadowEffect
                                Direction="180"
                                Opacity="1"
                                ShadowDepth="2"
                                Color="#3186E6" />
                        </Path.Effect>
                        <Path.Data>
                            <PathGeometry>
                                <PathFigure IsClosed="False" StartPoint="132.5, 1.5">
                                    <LineSegment Point="132.5,37.5" />
                                </PathFigure>
                            </PathGeometry>
                        </Path.Data>
                    </Path>-->

                    <!--  左上角  -->
                    <Path Stroke="#AA00FFFF" StrokeThickness="1">
                        <Path.Data>
                            <PathGeometry>
                                <PathFigure IsClosed="False" StartPoint="10, 0">
                                    <LineSegment Point="3,0" />
                                    <LineSegment Point="1,1" />
                                    <LineSegment Point="1,16" />
                                    <LineSegment Point="1,15" />
                                    <LineSegment Point="0,14.5" />
                                    <LineSegment Point="0,10" />
                                    <LineSegment Point="1,9.5" />
                                    <LineSegment Point="1,0" />
                                    <LineSegment Point="10,0" />
                                </PathFigure>
                            </PathGeometry>
                        </Path.Data>
                    </Path>

                    <!--  右上角  -->
                    <Path Stroke="#AA00FFFF" StrokeThickness="1">
                        <Path.Data>
                            <PathGeometry>
                                <PathFigure IsClosed="False" StartPoint="124, 0">
                                    <LineSegment Point="131,0" />
                                    <LineSegment Point="133,1" />
                                    <LineSegment Point="133,8" />
                                    <LineSegment Point="133,0" />
                                    <LineSegment Point="124,0" />
                                </PathFigure>
                            </PathGeometry>
                        </Path.Data>
                    </Path>

                    <!--  右下角  -->
                    <Path Stroke="#AA00FFFF" StrokeThickness="1">
                        <Path.Data>
                            <PathGeometry>
                                <PathFigure IsClosed="False" StartPoint="124, 39">
                                    <LineSegment Point="131,39" />
                                    <LineSegment Point="133,38" />
                                    <LineSegment Point="133,33" />
                                    <LineSegment Point="133,39" />
                                    <LineSegment Point="124,39" />
                                </PathFigure>
                            </PathGeometry>
                        </Path.Data>
                    </Path>

                    <!--  左下角  -->
                    <Path Stroke="#AA00FFFF" StrokeThickness="1">
                        <Path.Data>
                            <PathGeometry>
                                <PathFigure IsClosed="False" StartPoint="10, 39">
                                    <LineSegment Point="3,39" />
                                    <LineSegment Point="1,38" />
                                    <LineSegment Point="1,31" />
                                    <LineSegment Point="1,31.5" />
                                    <LineSegment Point="0,32" />
                                    <LineSegment Point="0,35.5" />
                                    <LineSegment Point="1,36" />
                                    <LineSegment Point="1,39" />
                                    <LineSegment Point="10,39" />
                                </PathFigure>
                            </PathGeometry>
                        </Path.Data>
                    </Path>

                </Grid>

            </Border>
        </Canvas>
    </Viewbox>
</UserControl>
