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