コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: Code.cs プロジェクト: singer0503/Captura
        void InitOverlaySettings()
        {
            if (Keystrokes == null)
            {
                Keystrokes = new KeystrokesSettings();
            }

            if (Clicks == null)
            {
                Clicks = new MouseClickSettings();
            }

            if (WebcamOverlay == null)
            {
                WebcamOverlay = new WebcamOverlaySettings
                {
                    HorizontalAlignment = Alignment.End
                };
            }
        }