mirror of
https://github.com/ckaczor/ProcessCpuUsageStatusWindow.git
synced 2026-03-10 19:49:07 -04:00
Modernize project
This commit is contained in:
50
SettingsWindow/GeneralSettingsPanel.xaml
Normal file
50
SettingsWindow/GeneralSettingsPanel.xaml
Normal file
@@ -0,0 +1,50 @@
|
||||
<windows:CategoryPanelBase x:Class="ProcessCpuUsageStatusWindow.SettingsWindow.GeneralSettingsPanel"
|
||||
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:properties="clr-namespace:ProcessCpuUsageStatusWindow.Properties"
|
||||
xmlns:windows="clr-namespace:ChrisKaczor.Wpf.Windows;assembly=ChrisKaczor.Wpf.Windows.CategoryWindow"
|
||||
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
|
||||
xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="300"
|
||||
d:DesignWidth="300">
|
||||
<windows:CategoryPanelBase.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
|
||||
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
|
||||
<ResourceDictionary
|
||||
Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.FlatButton.xaml" />
|
||||
<ResourceDictionary
|
||||
Source="pack://application:,,,/MahApps.Metro;component/Styles/Themes/light.cobalt.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</windows:CategoryPanelBase.Resources>
|
||||
<StackPanel>
|
||||
<CheckBox
|
||||
Content="{x:Static properties:Resources.startWithWindowsCheckBox}"
|
||||
IsChecked="{Binding Source={x:Static properties:Settings.Default}, Path=AutoStart}"
|
||||
Margin="0,0,0,16"
|
||||
Click="OnSaveSettings" />
|
||||
<StackPanel
|
||||
Margin="0,0,0,10"
|
||||
Orientation="Horizontal">
|
||||
<Label Content="{x:Static properties:Resources.NumberOfProcesses}"
|
||||
HorizontalAlignment="Left"
|
||||
Margin="0,0,5,0"
|
||||
VerticalAlignment="Center"
|
||||
Padding="0" />
|
||||
<mah:NumericUpDown Width="75"
|
||||
Maximum="20"
|
||||
Minimum="1"
|
||||
Value="{Binding Source={x:Static properties:Settings.Default}, Path=ProcessCount}"
|
||||
ValueChanged="OnSaveSettings" />
|
||||
</StackPanel>
|
||||
<CheckBox
|
||||
Content="{x:Static properties:Resources.showProcessId}"
|
||||
IsChecked="{Binding Source={x:Static properties:Settings.Default}, Path=ShowProcessId}"
|
||||
Click="OnSaveSettings" />
|
||||
</StackPanel>
|
||||
</windows:CategoryPanelBase>
|
||||
Reference in New Issue
Block a user