C3.02 One column Features. (Xamarin) - chempkovsky/CS2WPF-and-CS2XAMARIN GitHub Wiki

Please compare two pictures below

  • "Two columns" Feature

picture

  • "One column" Feature

picture

By default any Feature is generated to have two columns rows. Here is how to make "One column" Feature.

The first approach is to modify XAML-file

  • Open generated XAML-file
  • Remove all the lines like below
gridflex:GridFlex.HorizontalFlex="{Binding BindingContext.FlexOn, Mode=OneWay, Source={x:Reference ...}}"
  • Here is an example

picture

The second approach is to modify gererator's script

  • go to "%appdata%"
  • go to "Local\Microsoft\VisualStudio\XXXX\Extensions\YYYY\Templates\FeatureScriptsTmplst\30102-FtrUserControl.xaml"-subfolder
    • "XXXX" and "YYYY" on each computer will be different

picture

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

picture