Hi,
If you look at MessageBox.OnApplyTemplate() method, there is a call to "ChangeVisualState( _button.ToString(), true );".
This will set the VisualState to use (to good sets of buttons).
In XAML, the MessageBoxTemplate contains the VisualStates for each sets of buttons, modifying their visibility to show them according to the current visualState.
The VisalStates are :
OK
OKCancel
YesNo
YesNoCancel
If you look at MessageBox.OnApplyTemplate() method, there is a call to "ChangeVisualState( _button.ToString(), true );".
This will set the VisualState to use (to good sets of buttons).
In XAML, the MessageBoxTemplate contains the VisualStates for each sets of buttons, modifying their visibility to show them according to the current visualState.
The VisalStates are :
OK
OKCancel
YesNo
YesNoCancel