ContentDialog max width

前端 未结 3 983
既然无缘
既然无缘 2021-01-21 05:15

I\'m trying to create a settings menu in my app like this

I know how to do it but I have a problem with the width on content dialog, apparently there is a limi

相关标签:
3条回答
  • 2021-01-21 05:27

    In your App.xaml, try setting the ContentDialogMaxWidth to say, 800. The default is 548. You might want to increase the height too.

    <Application.Resources>
        <x:Double x:Key="ContentDialogMaxWidth">800</x:Double>
        <x:Double x:Key="ContentDialogMaxHeight">756</x:Double>
    </Application.Resources>
    
    0 讨论(0)
  • 2021-01-21 05:34

    All that I Have to do is just add this code after the initialize component

    this.width = Window.Current.Bounds.Width;
    

    and the content dialog will get your screen width.. thanks everyone hope this will help anyone search for it !

    0 讨论(0)
  • 2021-01-21 05:40

    just add this code after the initialize component

    this.width = Window.Current.Bounds.Width;
    

    and the content dialog will get your screen width

    0 讨论(0)
提交回复
热议问题