![]() ![]() Var dropShadow = compositor.CreateDropShadow() ĭropShadow.Color = Color.FromArgb(128, 0, 0, 0) Visual hostVisual = ElementCompositionPreview.GetElementVisual(shadowHost) Ĭompositor compositor = hostVisual.Compositor Private void InitializeDropShadow(UIElement shadowHost) Private void AboutElement_Loaded(object sender, RoutedEventArgs e) Rectangle.Fill = new SolidColorBrush(Colors.Transparent) Var popup = VisualTreeHelper.GetOpenPopups(Window.Current).FirstOrDefault(p=> p.Child is Rectangle) Private void AboutElement_Loading(FrameworkElement sender, object args) Public sealed partial class AboutElement : UserControl Note: Clicked is for (keyboard enter, mouse click and touch tap), and Tapped is for (tapped and click). We have to make transparent the rectangle that appears when a Content Dialog is shown and when the button is Clicked make it disappear.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |