private NotifyPopup() { this.InitializeComponent(); m_Popup = new Popup(); MeasurePopupSize(); m_Popup.Child = this; this.Loaded += NotifyPopup_Loaded; this.Unloaded += NotifyPopup_Unloaded; }