public Window() { SetResourceInheritanceParent(Application.Current); AdornerLayer = new AdornerLayer(); AddVisualChild(AdornerLayer); PopupLayer = new PopupLayer(); AddVisualChild(PopupLayer); radioButtonGroupScope = new SelectionGroupScope <RadioButton>(); }
public async Task <IActionResult> PopupLayersEdit(PopupLayer popupLayer) { if (popupLayer.Id == 0) { popupLayer.CreatedOn = DateTime.Now; popupLayer.CreatedBy = User.Identity.Name; await _popupLayerService.AddPopupLayer(popupLayer); return(View(popupLayer)); } await _popupLayerService.UpdatePopupLayer(popupLayer); return(View(popupLayer)); }
protected override void OnVisualAncestorChanged() { base.OnVisualAncestorChanged(); PopupLayer = PopupLayer.GetPopupLayer(this); }
protected override void OnVisualAncestorChanged() { base.OnVisualAncestorChanged(); PopupLayer = PopupLayer.GetPopupLayer(this); }