private void MainWindow_Loaded(object sender, RoutedEventArgs e) { Dispatcher.InvokeAsync(() => { MyUserControl.IsInVisualBrush(); }); }
private void Button_OnClick(object sender, RoutedEventArgs e) { Grid.Children.Remove(Border); MyUserControl.IsInVisualBrush(); }