public ModernPopup() { InitializeComponent(); Root.DataContext = this; CustomPopupPlacementCallback += OnPlacementCallback; }