public static style textblock() { style dv = new style(typeof(TextBlock)); dv.add(FrameworkElement.MarginProperty, new Thickness(4)); return(dv); }
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 columncheck(string binding, style style, style editstyle) { Binding b = new Binding(binding); b.UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged; b.Mode = BindingMode.TwoWay; b.Mode = BindingMode.TwoWay; Binding = b; ElementStyle = style; EditingElementStyle = editstyle; }
public columncombo(string binding, comboadapter comboadapter, style style, style editstyle) { Binding b = new Binding(binding); b.UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged; b.Mode = BindingMode.TwoWay; b.Converter = comboadapter; SelectedItemBinding = b; ItemsSource = comboadapter.itemsource; ElementStyle = style; EditingElementStyle = editstyle; }
public columntext(string Binding, style style, style editstyle) { this.Binding = new Binding(Binding); ElementStyle = style; EditingElementStyle = editstyle; }