1using ControlzEx.Theming;
2using LiveChartsCore.SkiaSharpView.Painting;
4using System.ComponentModel;
6using System.Runtime.CompilerServices;
9using System.Windows.Media;
16 #region PropertyChanged
17 public event PropertyChangedEventHandler PropertyChanged;
19 protected void OnPropertyChanged([CallerMemberName]
string propertyName =
"")
21 if (PropertyChanged !=
null)
23 PropertyChanged(
this,
new PropertyChangedEventArgs(propertyName));
39 return rm.GetString($
"{this.GetType().Name}Title") ??
"?";
44 public virtual string Icon {
get; } =
"\uE9D2";
55 return rm.GetString($
"Tooltip{this.GetType().Name}") ??
"?";
73 private bool _isMaximized =
false;
95 #region Analytics Module
113 public static readonly SolidColorPaint COLORPAINT_MALE =
new SolidColorPaint(SKColor.Parse(
"2986cc"));
114 public static readonly SolidColorPaint COLORPAINT_FEMALE =
new SolidColorPaint(SKColor.Parse(
"c90076"));
115 public static readonly SolidColorPaint COLORPAINT_SEPARATORS =
new SolidColorPaint(SKColor.Parse(
"dcdcdc"));
123 public static readonly
double ANALYTICS_WIDGET_WIDTH_NORMAL = 400;
124 public static readonly
double ANALYTICS_WIDGET_WIDTH_SMALL = 200;
125 public static readonly
double ANALYTICS_WIDGET_HEIGHT_NORMAL = 275;
126 public static readonly
double ANALYTICS_WIDGET_LEGEND_TEXTSIZE_DEFAULT = 14;
127 public static readonly
double ANALYTICS_WIDGET_AXIS_TEXTSIZE_DEFAULT = 16;
143 Brush textBrush = (Brush)ThemeManager.Current.DetectTheme(Application.Current).Resources[
"MahApps.Brushes.Text"];
144 string textBrushString = (string)
new BrushConverter().ConvertTo(textBrush, typeof(
string));
145 return new SolidColorPaint(SKColor.Parse(textBrushString));
157 Brush accentBrush = (Brush)ThemeManager.Current.DetectTheme(Application.Current).Resources[
"MahApps.Brushes.Accent"];
158 string accentBrushString = (string)
new BrushConverter().ConvertTo(accentBrush, typeof(
string));
159 return new SolidColorPaint(SKColor.Parse(accentBrushString));
170 Brush backgroundBrush = (Brush)ThemeManager.Current.DetectTheme(Application.Current).Resources[
"MahApps.Brushes.ThemeBackground"];
171 string backgroundBrushString = (string)
new BrushConverter().ConvertTo(backgroundBrush, typeof(
string));
172 return new SolidColorPaint(SKColor.Parse(backgroundBrushString));
186 ThemeManager.Current.ThemeChanged += (sender, e) =>
Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
Interface for an analytics module.