48 lines
2.4 KiB
XML
48 lines
2.4 KiB
XML
<Grid
|
|||
|
|
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
|
xmlns:svgIcon="clr-namespace:PCL.Core.UI.Controls.SvgIcon;assembly=PCL.Core"
|
||
|
|
x:Name="PanBack" mc:Ignorable="d"
|
||
|
|
x:Class="PCL.MyExtraButton"
|
||
|
|
Width="40" RenderTransformOrigin="0.5,0.5" ToolTipService.Placement="Left" ToolTipService.VerticalOffset="16"
|
||
|
|
ToolTipService.HorizontalOffset="-8" Height="0">
|
||
|
|
<Grid.RenderTransform>
|
||
|
|
<ScaleTransform ScaleX="0" ScaleY="0" />
|
||
|
|
</Grid.RenderTransform>
|
||
|
|
<Border x:Name="PanClick" CornerRadius="1000" BorderThickness="0.001"
|
||
|
|
Background="{StaticResource ColorBrushSemiTransparent}"
|
||
|
|
MouseLeftButtonUp="Button_LeftMouseUp" MouseLeftButtonDown="Button_LeftMouseDown"
|
||
|
|
MouseRightButtonUp="Button_RightMouseUp" MouseRightButtonDown="Button_RightMouseDown"
|
||
|
|
MouseLeave="PanClick_MouseEvent" MouseEnter="PanClick_MouseEvent" />
|
||
|
|
<Grid x:Name="PanScale" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.5" Margin="0,10,0,0">
|
||
|
|
<Grid.RenderTransform>
|
||
|
|
<ScaleTransform />
|
||
|
|
</Grid.RenderTransform>
|
||
|
|
<Border x:Name="PanColor" CornerRadius="1000" BorderThickness="0.001"
|
||
|
|
Background="{DynamicResource ColorBrush3}">
|
||
|
|
<Border.Effect>
|
||
|
|
<DropShadowEffect ShadowDepth="0" BlurRadius="10" Opacity="0.2" />
|
||
|
|
</Border.Effect>
|
||
|
|
</Border>
|
||
|
|
<Border x:Name="PanProgress" CornerRadius="1000" BorderThickness="0.001" Background="#2FFFFFFF"
|
||
|
|
ClipToBounds="True" Visibility="Collapsed">
|
||
|
|
<Border.Clip>
|
||
|
|
<RectangleGeometry x:Name="RectProgress" Rect="0,5,40,35" />
|
||
|
|
</Border.Clip>
|
||
|
|
</Border>
|
||
|
|
<Grid x:Name="IconHost" Margin="12" RenderTransformOrigin="0.5,0.5">
|
||
|
|
<Grid.RenderTransform>
|
||
|
|
<ScaleTransform />
|
||
|
|
</Grid.RenderTransform>
|
||
|
|
<Path x:Name="Path"
|
||
|
|
Stretch="Uniform"
|
||
|
|
Fill="{DynamicResource ColorBrush8}" />
|
||
|
|
<svgIcon:SvgIcon x:Name="ShapeSvgIcon"
|
||
|
|
Stretch="Uniform"
|
||
|
|
Visibility="Collapsed"
|
||
|
|
IconBrush="{Binding Fill, ElementName=Path}" />
|
||
|
|
</Grid>
|
||
|
|
</Grid>
|
||
|
|
</Grid>
|