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(); } }; }
private static void OnBrushChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { GlyphEditor c = (GlyphEditor)d; c.RedrawEditor(); }