添加项目文件。
This commit is contained in:
25
MetroGauges/PaletteSelector.xaml.cs
Normal file
25
MetroGauges/PaletteSelector.xaml.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System.Configuration;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace MetroGauges.Controls
|
||||
{
|
||||
/// <summary>
|
||||
/// PaletteSelector.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class PaletteSelector : UserControl
|
||||
{
|
||||
public PaletteSelector()
|
||||
{
|
||||
InitializeComponent();
|
||||
var x = ConfigurationManager.AppSettings["Intensity"];
|
||||
if (x == "Dark")
|
||||
{
|
||||
Intensity.IsChecked = true;
|
||||
}
|
||||
if (x == "Light")
|
||||
{
|
||||
Intensity.IsChecked = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user