void PrepareMouseClick(MouseClickSettings Settings) { void Update() { var d = (Settings.Radius + Settings.BorderThickness) * 2; MouseClick.Width = MouseClick.Height = d; MouseClick.StrokeThickness = Settings.BorderThickness; MouseClick.Stroke = new SolidColorBrush(ConvertColor(Settings.BorderColor)); } Update(); Settings.PropertyChanged += (S, E) => Dispatcher.Invoke(Update); }
void InitOverlaySettings() { if (Keystrokes == null) { Keystrokes = new KeystrokesSettings(); } if (Clicks == null) { Clicks = new MouseClickSettings(); } if (WebcamOverlay == null) { WebcamOverlay = new WebcamOverlaySettings { HorizontalAlignment = Alignment.End }; } }