Button의 재밌는 두 속성


IsCancel
When IsCancel is true, this button is designated as the cancel button for a window. If you press the Esc key while positioned anywhere on the current window, this button is triggered.

IsDefault
When IsDefault is true, this button is designated as the default button (also known as the accept button). Its behavior depends on your current location in the window. If you’re positioned on a non-Button control (such as a TextBox, RadioButton, CheckBox, and so on), the default button is given a blue shading, almost as though it has focus. If you press Enter, this button is triggered. However, if you’re positioned on another Button control, the current button gets the blue shading, and pressing Enter triggers that button, not the default button.

댓글

이 블로그의 인기 게시물

Oracle NLS_DATE_FORMAT 변경

Stop console process using Ctrl+C.

Alternative to IValueConvert, QuickConverter