CustomMessageBox leftbutton color

Arezki Saba

New member
Jan 18, 2014
9
0
0
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.
 
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.
 
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 ?
 
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

No members online now.

Forum statistics

Threads
341,203
Messages
2,264,268
Members
428,831
Latest member
Wiseguy