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);
 }
Beispiel #2
0
 public static IFormBuilder <TControl> AddDrawer <TControl>(this IFormBuilder <TControl> builder)
     where TControl : BaseControl
 {
     builder.Configure(control => control.ParentForm.Drawer = true);
     return(builder);
 }
Beispiel #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);
 }