Beispiel #1
0
        public static style textblock()
        {
            style dv = new style(typeof(TextBlock));

            dv.add(FrameworkElement.MarginProperty, new Thickness(4));
            return(dv);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
        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);
        }
Beispiel #5
0
        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);
        }
Beispiel #6
0
        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);
        }
Beispiel #7
0
        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;
        }
Beispiel #8
0
        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;
        }
Beispiel #9
0
 public columntext(string Binding, style style, style editstyle)
 {
     this.Binding        = new Binding(Binding);
     ElementStyle        = style;
     EditingElementStyle = editstyle;
 }