コード例 #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);
        }
コード例 #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);
 }
コード例 #3
0
 private void closeScanInformation()
 {
     setOAMScanInformationClosingPopupProperties(null, null, null);
     OAMScanInformationClosingPopup.SetCurrentValue(System.Windows.Controls.Primitives.Popup.IsOpenProperty, false);
 }