Change the foreground of the MessageBoxButtons

4 posts, 0 answers
  1. Alex
    Alex avatar
    3 posts
    Member since:
    Nov 2011

    Posted 30 Sep 2013 Link to this post

    Hi,

    I want to modify the buttons template from the main template of the rad message box.
    All I want to do is to keep the white color of the foreground and BorderBrush, even if the phone's theme is dark or light.

    I tried to create 2 buttons with styles inside this stackPanel, but it doesn't replace the existing buttons:

    <StackPanel x:Name="PART_ButtonsPanel" Orientation="Horizontal"></StackPanel>

    The question is: How and what should I style? This stackPanel or something else?

    Thanks,
    Alex

  2. MasterChiefMasterChef
    MasterChiefMasterChef avatar
    152 posts
    Member since:
    Jan 2013

    Posted 30 Sep 2013 Link to this post

    Hi Alex,

    I believe this is the answer to your question on the forums here:
    http://www.telerik.com/community/forums/windows-phone/message-box/change-the-style-of-the-generated-buttons.aspx


    Hopefully this helps,
    Master Chief
  3. DevCraft banner
  4. Todor
    Admin
    Todor avatar
    778 posts

    Posted 02 Oct 2013 Link to this post

    Hi Alex,

    Yes, you can use the suggestion in the link provided by Master Chief or you can use the suggestion provided here.
     
    Regards,
    Todor
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  5. Alex
    Alex avatar
    3 posts
    Member since:
    Nov 2011

    Posted 02 Oct 2013 Link to this post

    Done it! Thank you Tudor.
Back to Top
DevCraft banner