Example #1
0
 public static IFormBuilder <TControl> SetTitleBar <TControl>(this IFormBuilder <TControl> builder,
                                                              bool showTitle, bool showClose)
     where TControl : BaseControl
 {
     builder.Configure(control => control.ParentForm.ShowTitle = showTitle);
     builder.Configure(control => control.ParentForm.ShowClose = showClose);
     return(builder);
 }
Example #2
0
 public static IFormBuilder <TControl> AddDrawer <TControl>(this IFormBuilder <TControl> builder)
     where TControl : BaseControl
 {
     builder.Configure(control => control.ParentForm.Drawer = true);
     return(builder);
 }
Example #3
0
 public static IFormBuilder <TControl> ApplyTheme <TControl>(this IFormBuilder <TControl> builder, ITheme theme)
     where TControl : BaseControl
 {
     builder.Configure(bf => bf.ParentForm.ApplyTheme(theme));
     return(builder);
 }