Ejemplo n.º 1
0
        public Window()
        {
            SetResourceInheritanceParent(Application.Current);

            AdornerLayer = new AdornerLayer();
            AddVisualChild(AdornerLayer);

            PopupLayer = new PopupLayer();
            AddVisualChild(PopupLayer);

            radioButtonGroupScope = new SelectionGroupScope <RadioButton>();
        }
Ejemplo n.º 2
0
        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));
        }
Ejemplo n.º 3
0
 protected override void OnVisualAncestorChanged()
 {
     base.OnVisualAncestorChanged();
     PopupLayer = PopupLayer.GetPopupLayer(this);
 }
Ejemplo n.º 4
0
 protected override void OnVisualAncestorChanged()
 {
     base.OnVisualAncestorChanged();
     PopupLayer = PopupLayer.GetPopupLayer(this);
 }