private static void AnyPropertyChanged(DependencyObject source, DependencyPropertyChangedEventArgs e) { ScintillaBox sb = (ScintillaBox)source; if (sb.Handle == IntPtr.Zero) // not initialized yet, we can't send it now. { sb.Dispatcher.BeginInvoke(DispatcherPriority.Background, (Action)(() => { sb.OnPropertyChanged(source, e); })); return; } sb.OnPropertyChanged(source, e); }
internal StyleCollection(ScintillaBox scintilla) { _scintilla = scintilla; }