C4.02 Prism dialog height. (Xamarin) - chempkovsky/CS2WPF-and-CS2XAMARIN GitHub Wiki

By default any generated "EdlgUserControl" has 'prism:DialogLayout.RelativeHeightRequest="0.99"'

  • Here is an example:

picture

  • As a result, the dialogue will take up extra space.

picture

  • Please, compare without 'prism:DialogLayout.RelativeHeightRequest="0.99"' - line.

picture

Why this line is inserted in the generated code?

  • Open the dialog without 'prism:DialogLayout.RelativeHeightRequest="0.99"'-line for the Book.
    • no scrollers are available!!!

picture

  • Here is the same dialog with 'prism:DialogLayout.RelativeHeightRequest="0.99"' - line.

picture

How to change the generator script.

  • goto "%appdata%"-folder
  • then goto "Local\Microsoft\VisualStudio\XXXX\Extensions\YYYY\Templates\WpfScriptsTmplst\01518-EdlgUserControl.xaml"
    • "XXXX" and "YYYY" on each computer will be different

picture

  • modify "EdlgUserControl.Xamarin.xaml.t4"-file (or add a file with a different name)
  • Here is how to change the script:

picture