mirror of
https://github.com/ckaczor/ProcessCpuUsageStatusWindow.git
synced 2026-03-11 03:51:40 -04:00
50 lines
2.9 KiB
XML
50 lines
2.9 KiB
XML
<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> |