This question is locked. New answers and comments are not allowed.
Hi,
i'm trying to completely restyle the messageBox using the ControlTemplate (ImageTemplate in examples) as a starting point.
What i'm trying to achieve is to change, other than the style of the box and the other elements inside, also the design of the generated buttons. (the ones that are inside the stackpanel "PART_ButtonsPanel").
I need to do that because the background that i'm now using for the MessageBox is almost white, and the buttons are barely visible.
How can i do that?
This is the actual Template portion related to the ButtonsContainer:
Many thanks in advance
Marcello
i'm trying to completely restyle the messageBox using the ControlTemplate (ImageTemplate in examples) as a starting point.
What i'm trying to achieve is to change, other than the style of the box and the other elements inside, also the design of the generated buttons. (the ones that are inside the stackpanel "PART_ButtonsPanel").
I need to do that because the background that i'm now using for the MessageBox is almost white, and the buttons are barely visible.
How can i do that?
This is the actual Template portion related to the ButtonsContainer:
<
ContentControl
Grid.Row
=
"3"
x:Name
=
"PART_ButtonsContainer"
HorizontalContentAlignment
=
"Stretch"
Foreground
=
"#FF0D375A"
Grid.ColumnSpan
=
"2"
>
<
ContentControl.ContentTemplate
>
<
DataTemplate
>
<
StackPanel
x:Name
=
"PART_ButtonsPanel"
Orientation
=
"Horizontal"
></
StackPanel
>
</
DataTemplate
>
</
ContentControl.ContentTemplate
>
</
ContentControl
>
Marcello