RegisterChangeCallback() public static method

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