Esempio n. 1
0
        void PrepareMousePointer(MouseOverlaySettings Settings)
        {
            void Update()
            {
                var d = (Settings.Radius + Settings.BorderThickness) * 2;

                MousePointer.Width           = MousePointer.Height = d;
                MousePointer.StrokeThickness = Settings.BorderThickness;
                MousePointer.Stroke          = new SolidColorBrush(ConvertColor(Settings.BorderColor));
                MousePointer.Fill            = new SolidColorBrush(ConvertColor(Settings.Color));
            }

            Update();

            Settings.PropertyChanged += (S, E) => Dispatcher.Invoke(Update);
        }