void TextView_BackgroundBrushChanged(object sender, BackgroundBrushChangedEventArgs e) { ContentControl.Dispatcher.BeginInvoke(new Action(() => { while (Grid.Background != null) MakeBackgroundTransparent(); }), DispatcherPriority.Render); }
void TextView_BackgroundBrushChanged(object sender, BackgroundBrushChangedEventArgs e) { r_Control.Dispatcher.BeginInvoke(new Action(() => { while (r_ParentGrid.Background != null) { MakeBackgroundTransparent(); } }), DispatcherPriority.Render); }
void TextView_BackgroundBrushChanged(object sender, BackgroundBrushChangedEventArgs e) => UpdateBackground();
private void OnTextViewBackgroundBrushChanged(object sender, BackgroundBrushChangedEventArgs e) { this.RaisePropertyChanged("ContainingTextViewBackground"); }
private async void TextView_BackgroundChanged(object sender, BackgroundBrushChangedEventArgs e) { await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); MakeBackgroundTransparent(); }
private void TextView_BackgroundChanged(object sender, BackgroundBrushChangedEventArgs e) => control.Dispatcher.InvokeAsync(MakeBackgroundTransparent, DispatcherPriority.Render);
private void OnBackgroundBrushChanged(object sender, BackgroundBrushChangedEventArgs args) { ReloadColors(); CommentsColorChanged?.Invoke(textView, CommentsForeground, CommentsBackground); }
private void View_BackgroundBrushChanged(object sender, BackgroundBrushChangedEventArgs e) { streakCounterAdornment.OnSizeChanged(adornmentLayer, view, streakCount, true); }