RegisterChangeCallback() public static method

public static RegisterChangeCallback ( System.Action callback ) : void
callback System.Action
return void
Ejemplo n.º 1
0
        protected override void OnInitialized(EventArgs e)
        {
            base.OnInitialized(e);

            var conv = (LogEntryToBgBrushConverter)this.Resources["bgConverter"];

            conv.Wnd = this;

            var dataView = CollectionViewSource.GetDefaultView(logListView.ItemsSource);

            dataView.Filter = DataFilter;

            OnNewEntries();

            MMLog.RegisterChangeCallback(OnNewEntriesSafe);
        }
Ejemplo n.º 2
0
 void OnNewEntriesSafe()
 {
     this.Dispatcher.BeginInvoke(new Action(OnNewEntries),
                                 System.Windows.Threading.DispatcherPriority.Background);
     MMLog.RegisterChangeCallback(OnNewEntriesSafe);
 }