public override void OnApplyTemplate() { base.OnApplyTemplate(); if (PopUpService != null) { PopUpService.BackgroundBrush = Overlay; PopUpService.ApplyOverlayBackground(); PopUpService.SetAlignmentsOnOverlay(HorizontalAlignment, VerticalAlignment); } }
public override void OnApplyTemplate() #endif { base.OnApplyTemplate(); if (PopUpService != null) { // template hasn't been applied yet // overlay is null until now PopUpService.BackgroundBrush = Overlay; PopUpService.ApplyOverlayBackground(); PopUpService.SetAlignmentsOnOverlay(HorizontalAlignment, VerticalAlignment); } }