Files
MRCC/launcher/PCL-CE/Plain Craft Launcher 2/Controls/MyIconTextButton.xaml
T

34 lines
1.5 KiB
XML
Raw Normal View History

<Border x:Name="PanBack" x:Class="PCL.MyIconTextButton"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:svgIcon="clr-namespace:PCL.Core.UI.Controls.SvgIcon;assembly=PCL.Core"
HorizontalAlignment="Center" VerticalAlignment="Center" Background="{StaticResource ColorBrushSemiTransparent}"
CornerRadius="13.5" MinHeight="27" MaxHeight="27">
<StackPanel Orientation="Horizontal">
<Grid x:Name="LogoHost"
Width="16" Height="16"
Margin="12,0,0,0"
RenderTransformOrigin="0.5,0.5"
VerticalAlignment="Center"
HorizontalAlignment="Left">
<Grid.RenderTransform>
<ScaleTransform />
</Grid.RenderTransform>
<Path x:Name="ShapeLogo"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Stretch="Uniform"
Fill="White" />
<svgIcon:SvgIcon x:Name="ShapeSvgIcon"
Stretch="Uniform"
Visibility="Collapsed"
IconBrush="{Binding Fill, ElementName=ShapeLogo}" />
</Grid>
<TextBlock x:Name="LabText"
VerticalAlignment="Center"
Foreground="White"
Margin="7,0,12,1"
SnapsToDevicePixels="False"
UseLayoutRounding="False" />
</StackPanel>
</Border>