1using Microsoft.Maui.Controls;
8 [ContentProperty(nameof(CustomContent))]
11 public static readonly BindableProperty CustomContentProperty = BindableProperty.Create(
12 nameof(CustomContent),
16 propertyChanged: OnCustomContentChanged);
18 public View? CustomContent
20 get => (View?)this.GetValue(CustomContentProperty);
21 set => this.SetValue(CustomContentProperty, value);
24 private static void OnCustomContentChanged(BindableObject bindable,
object? oldValue,
object? newValue)
28 popup.CardContent = newValue as View;