Esempio n. 1
0
        private void PopupWindowControlOnCustomizePopupControl(object sender, CustomizePopupControlEventArgs e)
        {
            var popupWindowControl = ((XafPopupWindowControl)sender);

            popupWindowControl.CustomizePopupControl -= PopupWindowControlOnCustomizePopupControl;
            ((IModelModelMap)View?.Model.GetNode(PopupControlMapName))?.BindTo(e.PopupControl);
//                new ObjectModelSynchronizer(e.PopupControl, ((IModelViewPopup) View.Model).PopupControl).ApplyModel();
        }
Esempio n. 2
0
        private void PopupWindowControlOnCustomizePopupControl(object sender, CustomizePopupControlEventArgs e)
        {
            var popupWindowControl = ((XafPopupWindowControl)sender);

            popupWindowControl.CustomizePopupControl -= PopupWindowControlOnCustomizePopupControl;
            if (View != null)
            {
                new ObjectModelSynchronizer(e.PopupControl, ((IModelViewPopup)View.Model).PopupControl).ApplyModel();
            }
        }
Esempio n. 3
0
 void PopupWindowControl_CustomizePopupControl(object sender, CustomizePopupControlEventArgs e)
 {
     e.PopupControl.AllowResize = true;
 }