CustomMessageBox leftbutton color

Arezki Saba

New member
Jan 18, 2014
9
0
0
Visit site
Hello everybody !

I've a problem regarding to the Windows Phone Toolkit CustomMessageBox, i've two buttons inside the CustomMessageBox("OK" and "Cancel") and i'd to know how to modify the background color of the "OK" button only.

Thanks in advance.

Best regards.
 

despertador

New member
Dec 26, 2012
837
0
0
Visit site
What have you tried? Can you show us a screenshot? Have you tried setting the background color brush through XAML/Properties Window?

Also, you should move this thread to one of the Developers forums.
 

Arezki Saba

New member
Jan 18, 2014
9
0
0
Visit site
That's a CustomMessageBox from the Windows Phone Toolkit, there's no XAML, just C#, we call it like that :

var customMessageBox = new CustomMessageBox()
{
Caption = "title",
Message = "text",
LeftButtonContent = "OK",
RightButtonContent = "Cancel"
};
customMessageBox.Show();

Buttons are using the "PhoneAccentBrush" default resource as background color, but it seems that there's no access to each button separately and i want to change the background color for the "OK" button only.

Are there any Windows Phone Toolkit users ?
 

despertador

New member
Dec 26, 2012
837
0
0
Visit site
It doesn't seem like there's any way to change the button's color. You can try modifying and recompiling the WPT by yourself.

You could also create your own "CustomMessageBox," it wouldn't be too hard...
 

Members online

Forum statistics

Threads
323,276
Messages
2,243,561
Members
428,053
Latest member
JoshRos