locked
How to change color of message dialog button?

    Question

  • when ever a message dilaog is popped it contains buttons such as "cancel" , "ok" , is there a way to change color of those buttons?
    Sunday, April 26, 2015 2:04 PM

Answers

All replies

  • <SolidColorBrush x:Key="ButtonBackgroundThemeBrush" Color="Transparent" />
    <SolidColorBrush x:Key="ButtonBorderThemeBrush" Color="#FFFFFFFF" />
    <SolidColorBrush x:Key="ButtonForegroundThemeBrush" Color="#FFFFFFFF" />

    Add the above code in app.xaml 

    For more details please refer the following link.

    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/jj709909.aspx

    If my reply meet your answer. Please mark this reply as answer


    Sunday, April 26, 2015 2:29 PM
  • No. The MessageDialog is not customizable. Its button will always show the app's theme color as set in its manifest.
    Sunday, April 26, 2015 3:05 PM
    Owner