10 changed files with 35 additions and 59 deletions
Before Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 38 KiB |
@ -1,64 +1,18 @@ |
|||
<Window x:Class="SunlightCentralizedControlManagement_SCCM_.MainWindow" |
|||
<Fluent:RibbonWindow x:Class="SunlightCentralizedControlManagement_SCCM_.MainWindow" |
|||
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:lang="clr-namespace:SunlightCentralizedControlManagement_SCCM_.Properties" |
|||
xmlns:viewmodel="clr-namespace:SunlightCentralizedControlManagement_SCCM_.ViewModel" |
|||
xmlns:local="clr-namespace:SunlightCentralizedControlManagement_SCCM_" |
|||
xmlns:local="clr-namespace:SunlightCentralizedControlManagement_SCCM_" |
|||
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml" |
|||
xmlns:Fluent="urn:fluent-ribbon" |
|||
d:DataContext="{d:DesignInstance Type=viewmodel:MainWindowViewModel}" |
|||
mc:Ignorable="d" |
|||
Title="SUNLIGHT SCCM b0.0.1 (2024/08/10)" |
|||
Height="1080" Width="1920"> |
|||
<Window.Resources> |
|||
<Style x:Key="RadioButtonStyle" TargetType="{x:Type RadioButton}"> |
|||
<Setter Property="FocusVisualStyle" Value="{DynamicResource {x:Static SystemParameters.FocusVisualStyleKey}}"/> |
|||
<Setter Property="HorizontalContentAlignment" Value="Left"/> |
|||
<Setter Property="OverridesDefaultStyle" Value="True"/> |
|||
<Setter Property="Padding" Value="6 0 0 0"/> |
|||
<Setter Property="SnapsToDevicePixels" Value="True"/> |
|||
<Setter Property="Stylus.IsPressAndHoldEnabled" Value="False"/> |
|||
<Setter Property="Template"> |
|||
<Setter.Value> |
|||
<ControlTemplate TargetType="{x:Type RadioButton}"> |
|||
<Grid> |
|||
<Border x:Name="border" Background="{TemplateBinding Background}"> |
|||
<Grid> |
|||
<Grid.ColumnDefinitions> |
|||
<ColumnDefinition> |
|||
</ColumnDefinition> |
|||
</Grid.ColumnDefinitions> |
|||
<TextBlock Grid.Row="0" Grid.Column="0" |
|||
Text="{TemplateBinding Tag}" |
|||
FontFamily="Fonts/#FontAwesome" |
|||
HorizontalAlignment="Left" |
|||
Width="30" FontSize="20" Margin="5,10,0,0"/> |
|||
<TextBlock Grid.Row="0" Grid.Column="1" |
|||
Text="{TemplateBinding Content}" |
|||
FontFamily="Fonts/#FontAwesome" |
|||
HorizontalAlignment="Left" |
|||
Width="NaN" FontSize="20" Margin="40,10,0,0"/> |
|||
</Grid> |
|||
</Border> |
|||
</Grid> |
|||
<ControlTemplate.Triggers> |
|||
<Trigger Property="IsMouseOver" Value="True"> |
|||
<Setter Property="Background" Value="#FFA0A0A0" TargetName="border"/> |
|||
</Trigger> |
|||
<Trigger Property="IsChecked" Value="True"> |
|||
<Setter Property="Background" Value="#FFF5F5F5" TargetName="border"/> |
|||
</Trigger> |
|||
</ControlTemplate.Triggers> |
|||
</ControlTemplate> |
|||
</Setter.Value> |
|||
</Setter> |
|||
</Style> |
|||
</Window.Resources> |
|||
|
|||
Height="1080" Width="1920" Background="#FF003640" > |
|||
<Grid> |
|||
<Rectangle Margin="0,0,0,0" Fill="#FFCCCCCC" VerticalAlignment="Bottom" Height="40"/> |
|||
<RadioButton Content="{x:Static lang:Resources.WorkOrder}" x:Name="Work_Order" Tag="" Style="{DynamicResource RadioButtonStyle}" HorizontalAlignment="Left" Height="40" Margin="0,0,0,0" VerticalAlignment="Bottom" Width="200" Background="#FFCCCCCC" Checked="Work_Order_Checked"/> |
|||
|
|||
<ContentControl x:Name="container" Margin="0,0,0,40"/> |
|||
<ContentControl x:Name="container" Margin="10,0,0,0"/> |
|||
</Grid> |
|||
</Window> |
|||
</Fluent:RibbonWindow> |
|||
|
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 3.5 KiB |
Loading…
Reference in new issue