RegisterChangeCallback() public static méthode

public static RegisterChangeCallback ( System.Action callback ) : void
callback System.Action
Résultat void
Exemple #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);
        }
Exemple #2
0
 void OnNewEntriesSafe()
 {
     this.Dispatcher.BeginInvoke(new Action(OnNewEntries),
                                 System.Windows.Threading.DispatcherPriority.Background);
     MMLog.RegisterChangeCallback(OnNewEntriesSafe);
 }