Esempio n. 1
0
        private void openScanInformation(object sender, object dc)
        {
            setOAMScanInformationClosingPopupProperties(sender, sender, dc);
            OAMScanInformationClosingPopup.SetCurrentValue(System.Windows.Controls.Primitives.Popup.IsOpenProperty, true);

            Binding editBinding = new Binding("IsEditEnabled");

            editBinding.Source = dc;
            OAMScanInformationClosingPopup.SetBinding(ClosingPopup.StaysOpenProperty, editBinding);
        }
Esempio n. 2
0
 private void setOAMScanInformationClosingPopupProperties(object controlToggleButton, object placementTarget, object dataContext)
 {
     OAMScanInformationClosingPopup.SetCurrentValue(ClosingPopup.ControlToggleButtonProperty, controlToggleButton);
     OAMScanInformationClosingPopup.SetCurrentValue(System.Windows.Controls.Primitives.Popup.PlacementTargetProperty, placementTarget);
     OAMScanInformationClosingPopup.SetCurrentValue(System.Windows.Controls.Primitives.Popup.DataContextProperty, dataContext);
 }
Esempio n. 3
0
 private void closeScanInformation()
 {
     setOAMScanInformationClosingPopupProperties(null, null, null);
     OAMScanInformationClosingPopup.SetCurrentValue(System.Windows.Controls.Primitives.Popup.IsOpenProperty, false);
 }