Border on Content Dialog UWP

Anderson Cavalcante 21 Reputation points
2022-07-02T02:02:43.767+00:00

Hello,
I want put a border in ContentDialog, but is Incorrect.
I'd like as the CornerRadius.
216989-image.png

Universal Windows Platform (UWP)
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,279 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 81,746 Reputation points
    2022-07-02T07:36:47.413+00:00

    You can derive a control from ContentDialog and copy the default style (in <ContentDialog.Resources>) from generic.xaml (inside <Style TargetType="ContentDialog">)
    Then you can change <Border x:Name="BackgrounElement" (Background, bug in this editor...)
    for example with :

                  BorderThickness="5"  
                  BorderBrush="Red"                                          
                  CornerRadius="15"  
    

    I get :

    216945-contentdialog-border.gif

    0 comments No comments