Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
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);
        }
Ejemplo n.º 5
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);
        }
Ejemplo n.º 6
0
        public static style textblock()
        {
            style dv = new style(typeof(TextBlock));

            dv.add(FrameworkElement.MarginProperty, new Thickness(4));
            return(dv);
        }