Ejemplo n.º 1
0
        private static void OnGlyphChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            GlyphEditor c = (GlyphEditor)d;

            c.UpdateEditor();
            c.timeout = DateTime.Now.AddMilliseconds(500);

            Glyph newGlyph = e.NewValue as Glyph;

            newGlyph.PropertyChanged += (sender, ex) =>
            {
                if (ex.PropertyName == "GlyphData")
                {
                    c.UpdateEditor();
                }
            };
        }
Ejemplo n.º 2
0
        private static void OnBrushChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            GlyphEditor c = (GlyphEditor)d;

            c.RedrawEditor();
        }