public static style textblock(FlowDirection direction = FlowDirection.RightToLeft) { style dv = new style(typeof(TextBlock)); dv.add(FrameworkElement.MarginProperty, new Thickness(4)); dv.add(FrameworkElement.FlowDirectionProperty, direction); return(dv); }
public static style combobox(bool isreadonly = true) { style dv = new style(typeof(ComboBox)); dv.add(FrameworkElement.MarginProperty, new Thickness(4)); dv.add(ComboBox.IsEnabledProperty, isreadonly); return(dv); }
public static style textbox(bool isreadonly = true) { style dv = new style(typeof(TextBox)); dv.add(FrameworkElement.MarginProperty, new Thickness(4)); dv.add(TextBoxBase.IsReadOnlyProperty, isreadonly); return(dv); }
public static style textbox(FlowDirection direction = FlowDirection.RightToLeft, bool isreadonly = true) { style dv = new style(typeof(TextBox)); dv.add(FrameworkElement.MarginProperty, new Thickness(4)); dv.add(FrameworkElement.FlowDirectionProperty, direction); dv.add(TextBoxBase.IsReadOnlyProperty, isreadonly); return(dv); }
public static style checkbox(string value = default) { style dv = new style(typeof(CheckBox)); dv.add(FrameworkElement.MarginProperty, new Thickness(4)); dv.add(ContentControl.ContentProperty, value); dv.add(FrameworkElement.HorizontalAlignmentProperty, HorizontalAlignment.Center); return(dv); }
public static style textblock() { style dv = new style(typeof(TextBlock)); dv.add(FrameworkElement.MarginProperty, new Thickness(4)); return(dv); }