Method wpfBuilder.AddOkCancel(+ 1 overload)
Overload
Adds OK and/or Cancel and/or Apply buttons.
public wpfBuilder AddOkCancel(string ok = "OK", string cancel = "Cancel", string apply = null, bool? stackPanel = null)
Parameters
|
ok (string)
Text of OK button. If |
|
cancel (string)
Text of Cancel button. If |
|
apply (string)
Text of Apply button. If |
|
stackPanel (bool?)
Add a right-bottom aligned System.Windows.Controls.StackPanel that contains the buttons. See wpfBuilder.StartOkCancel. If |
Returns
Remarks
Sets properties of OK/Cancel buttons so that click and Enter/Esc close the window; then wpfBuilder.ShowDialog returns true on OK, false on Cancel.
See also event wpfBuilder.OkApply.
Overload(top)
Adds OK and/or Cancel and/or Apply buttons.
public wpfBuilder AddOkCancel(out Button bOK, out Button bCancel, out Button bApply, string ok = "OK", string cancel = "Cancel", string apply = null, bool? stackPanel = null)
Parameters
|
bOK (Button)
Variable of OK button. |
|
bCancel (Button)
Variable of Cancel button. |
|
bApply (Button)
Variable of Apply button. |
|
ok (string)
Text of OK button. If |
|
cancel (string)
Text of Cancel button. If |
|
apply (string)
Text of Apply button. If |
|
stackPanel (bool?)
Add a right-bottom aligned System.Windows.Controls.StackPanel that contains the buttons. See wpfBuilder.StartOkCancel. If |
Returns
Remarks
Sets properties of OK/Cancel buttons so that click and Enter/Esc close the window; then wpfBuilder.ShowDialog returns true on OK, false on Cancel.
See also event wpfBuilder.OkApply.