public HeaderedDataGrid() { HeaderedItemsControlEx .HeaderChanges(this, this.WhenAnyValue(a => a.ShowCountInHeader)) .Buffer(TimeSpan.FromSeconds(0.4)) .Select(a => a.LastOrDefault()) .WhereNotNull() .ObserveOnDispatcher() .Subscribe(a => Header = a); }
public HeaderedListBox() { HeaderedItemsControlEx.HeaderChanges(this, this.WhenAnyValue(a => a.ShowCountInHeader)) .Subscribe(a => Header = a); }