Files
desktop-edge-win/DesktopEdge/Views/Controls/StyledButton.xaml
T
Jeremy Tellier - ROG c5751307be New Layout for Details.
2021-04-16 21:54:08 +01:00

31 lines
1.7 KiB
XML

<UserControl x:Class="ZitiDesktopEdge.StyledButton"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:ZitiDesktopEdge"
mc:Ignorable="d"
d:DesignHeight="30" d:DesignWidth="300" Cursor="Hand">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="30"></RowDefinition>
</Grid.RowDefinitions>
<Rectangle x:Name="ButtonBg" Margin="40,0,40,0" Opacity="0.8" RadiusX="7" Grid.Row="8" RadiusY="7" ClipToBounds="True" Height="30" VerticalAlignment="Bottom" MouseUp="DoClick" Cursor="Hand" MouseEnter="Hover" MouseLeave="Leave" MouseDown="Down">
<Rectangle.Fill>
<SolidColorBrush x:Name="ButtonBgColor" Color="#0069FF"/>
</Rectangle.Fill>
</Rectangle>
<Rectangle x:Name="ButtonBgDarken" Margin="40,0,40,0" Opacity="0.0" RadiusX="7" Grid.Row="8" RadiusY="7" ClipToBounds="True" Height="30" VerticalAlignment="Bottom" MouseUp="DoClick" Cursor="Hand" MouseEnter="Hover" MouseLeave="Leave" MouseDown="Down">
<Rectangle.Fill>
<SolidColorBrush Color="#000000"/>
</Rectangle.Fill>
</Rectangle>
<Label x:Name="ButtonLabel" HorizontalAlignment="Center" IsHitTestVisible="False" Foreground="#FFFFFF" Grid.Row="8"></Label>
</Grid>
</UserControl>