sc 12 months ago
parent
commit
1a015ee729
  1. 8
      App.xaml
  2. BIN
      LOGO/sunlight_logo.ico
  3. BIN
      LOGO/sunlight_logo.jpg
  4. BIN
      LOGO/sunlightlogo.ico
  5. BIN
      LOGO/sunlightlogo.jpg
  6. 60
      MainWindow.xaml
  7. 9
      MainWindow.xaml.cs
  8. BIN
      SUNLIGHT.ico
  9. 17
      SunlightCentralizedControlManagement(SCCM).csproj
  10. BIN
      sunlightlogo.ico

8
App.xaml

@ -2,8 +2,14 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:SunlightCentralizedControlManagement_SCCM_" xmlns:local="clr-namespace:SunlightCentralizedControlManagement_SCCM_"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
StartupUri="MainWindow.xaml"> StartupUri="MainWindow.xaml">
<Application.Resources> <Application.Resources>
<ResourceDictionary Source="pack://application:,,,/Fluent;Component/Themes/Generic.xaml">
<ResourceDictionary.MergedDictionaries>
<ui:ThemesDictionary Theme="Dark" />
<ui:ControlsDictionary />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources> </Application.Resources>
</Application> </Application>

BIN
LOGO/sunlight_logo.ico

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

BIN
LOGO/sunlight_logo.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

BIN
LOGO/sunlightlogo.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
LOGO/sunlightlogo.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

60
MainWindow.xaml

@ -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="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:lang="clr-namespace:SunlightCentralizedControlManagement_SCCM_.Properties" xmlns:lang="clr-namespace:SunlightCentralizedControlManagement_SCCM_.Properties"
xmlns:viewmodel="clr-namespace:SunlightCentralizedControlManagement_SCCM_.ViewModel" 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}" d:DataContext="{d:DesignInstance Type=viewmodel:MainWindowViewModel}"
mc:Ignorable="d" mc:Ignorable="d"
Title="SUNLIGHT SCCM b0.0.1 (2024/08/10)" Title="SUNLIGHT SCCM b0.0.1 (2024/08/10)"
Height="1080" Width="1920"> Height="1080" Width="1920" Background="#FF003640" >
<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>
<Grid> <Grid>
<Rectangle Margin="0,0,0,0" Fill="#FFCCCCCC" VerticalAlignment="Bottom" Height="40"/> <ContentControl x:Name="container" Margin="10,0,0,0"/>
<RadioButton Content="{x:Static lang:Resources.WorkOrder}" x:Name="Work_Order" Tag="&#xF2d2;" 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"/>
</Grid> </Grid>
</Window> </Fluent:RibbonWindow>

9
MainWindow.xaml.cs

@ -19,11 +19,11 @@ namespace SunlightCentralizedControlManagement_SCCM_
/// <summary> /// <summary>
/// MainWindow.xaml 的交互逻辑 /// MainWindow.xaml 的交互逻辑
/// </summary> /// </summary>
public partial class MainWindow : Window public partial class MainWindow : Fluent.RibbonWindow
{ {
public MainWindow() public MainWindow()
{ {
DataContext = new MainWindowViewModel(); // DataContext = new MainWindowViewModel();
InitializeComponent(); InitializeComponent();
} }
@ -31,5 +31,10 @@ namespace SunlightCentralizedControlManagement_SCCM_
{ {
} }
private void Grid_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
}
} }
} }

BIN
SUNLIGHT.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

17
SunlightCentralizedControlManagement(SCCM).csproj

@ -38,7 +38,7 @@
<StartupObject>SunlightCentralizedControlManagement_SCCM_.App</StartupObject> <StartupObject>SunlightCentralizedControlManagement_SCCM_.App</StartupObject>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<ApplicationIcon>sunlight_logo.ico</ApplicationIcon> <ApplicationIcon>sunlightlogo.ico</ApplicationIcon>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="System" /> <Reference Include="System" />
@ -169,6 +169,9 @@
<PackageReference Include="CommunityToolkit.Mvvm"> <PackageReference Include="CommunityToolkit.Mvvm">
<Version>8.3.2</Version> <Version>8.3.2</Version>
</PackageReference> </PackageReference>
<PackageReference Include="Fluent.Ribbon">
<Version>10.1.0</Version>
</PackageReference>
<PackageReference Include="LiveChartsCore"> <PackageReference Include="LiveChartsCore">
<Version>2.0.0-rc4.5</Version> <Version>2.0.0-rc4.5</Version>
</PackageReference> </PackageReference>
@ -181,12 +184,18 @@
<PackageReference Include="ScottPlot"> <PackageReference Include="ScottPlot">
<Version>5.0.41</Version> <Version>5.0.41</Version>
</PackageReference> </PackageReference>
<PackageReference Include="System.Data.SQLite">
<Version>1.0.119</Version>
</PackageReference>
<PackageReference Include="System.Management"> <PackageReference Include="System.Management">
<Version>8.0.0</Version> <Version>8.0.0</Version>
</PackageReference> </PackageReference>
<PackageReference Include="TouchSocket"> <PackageReference Include="TouchSocket">
<Version>2.1.10</Version> <Version>2.1.10</Version>
</PackageReference> </PackageReference>
<PackageReference Include="WPF-UI">
<Version>3.0.5</Version>
</PackageReference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Folder Include="View\" /> <Folder Include="View\" />
@ -195,10 +204,12 @@
<Content Include="Fonts\font-awesome-4.7.0\css\font-awesome.css" /> <Content Include="Fonts\font-awesome-4.7.0\css\font-awesome.css" />
<Content Include="Fonts\font-awesome-4.7.0\css\font-awesome.min.css" /> <Content Include="Fonts\font-awesome-4.7.0\css\font-awesome.min.css" />
<Content Include="Fonts\font-awesome-4.7.0\fonts\fontawesome-webfont.svg" /> <Content Include="Fonts\font-awesome-4.7.0\fonts\fontawesome-webfont.svg" />
<Resource Include="sunlightlogo.ico" />
<Resource Include="LOGO\sunlightlogo.ico" />
<Resource Include="LOGO\sunlightlogo.jpg" />
<Resource Include="SUNLIGHT.ico" />
<Resource Include="sunlight_logo.ico" /> <Resource Include="sunlight_logo.ico" />
<Resource Include="LOGO\SUNLIGHT.ico" /> <Resource Include="LOGO\SUNLIGHT.ico" />
<Resource Include="LOGO\sunlight_logo.ico" />
<Resource Include="LOGO\sunlight_logo.jpg" />
<Resource Include="LOGO\sunlight_logotext.jpg" /> <Resource Include="LOGO\sunlight_logotext.jpg" />
<Resource Include="LOGO\sunlight_sc.png" /> <Resource Include="LOGO\sunlight_sc.png" />
<Resource Include="Fonts\font-awesome-4.7.0\HELP-US-OUT.txt" /> <Resource Include="Fonts\font-awesome-4.7.0\HELP-US-OUT.txt" />

BIN
sunlightlogo.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Loading…
Cancel
Save