public override void OnApplyTemplate() { base.OnApplyTemplate(); try { // Code to get the Template parts as instance member mainPopup = GetTemplateChild("PART_Popup") as Popup; canvas = GetTemplateChild("PART_Canvas") as Canvas; path = GetTemplateChild("PART_Path") as Path; contentPresenter = GetTemplateChild("PART_ContentPresenter") as ContentPresenter; mainPopup.Closed += (sender, e) => { PopupClosed?.Invoke(sender, e); }; mainPopup.IsOpen = IsOpen; canvas.Width = PanelWidth; canvas.Height = PanelHeight; RefreshPath(); mainPopup.PlacementTarget = PlacementTarget; mainPopup.Placement = Placement; path.Fill = Fill; } catch (Exception ex) { logger.Error(ex); } }
protected virtual void OnDestroy() { PopupClosed?.Invoke(this); PopupClosed = null; CleanButtons(); }
public void OnPopupClosed(PopUpWindowArgs e) { PopupClosed?.Invoke(this, e); }
private void OnPopupClosed(object sender, EventArgs e) { IsOpen = false; IsHitTestVisible = true; PopupClosed?.Invoke(this, e); }
protected virtual void OnPopupClosed(PopupClosedEventArgs e) { PopupClosed?.Invoke(this, e); }
public void OnPopupClosed(CustomYesNoBoxClosedArgs e) { PopupClosed?.Invoke(this, e); }
public void OnPopupClosed(EntryPopupClosedArgs e) { PopupClosed?.Invoke(this, e); }
//------------------------------------------------------------------------- protected virtual void OnPopupClosed() { PopupClosed?.Invoke(this, EventArgs.Empty); }