Example #1
0
 static PlotControl()
 {
     var registator = new DependencyPropertyRegistator<PlotControl>();
     StrokesProperty = registator.Register("Strokes", new StrokeCollection());
     BoxSizeProperty = registator.Register("BoxSize", 30d, ParametersChanged);
     ScaleOfBoxProperty = registator.Register("ScaleOfBox", 1d, ParametersChanged);
 }
Example #2
0
 static StylePicker()
 {
     DefaultStyleKeyProperty.OverrideMetadata(typeof (StylePicker),
         new FrameworkPropertyMetadata(typeof (StylePicker)));
     var registrator = new DependencyPropertyRegistator<StylePicker>();
     NewTextStyleProperty = registrator.Register("NewTextStyle", new TextStyleImpl());
     AddNewStyleCommandProperty = registrator.Register<ICommand>("AddNewStyleCommand");
 }
Example #3
0
 static StylePickerItem()
 {
     DefaultStyleKeyProperty.OverrideMetadata(typeof(StylePickerItem),
       new FrameworkPropertyMetadata(typeof(StylePickerItem)));
     var registrator = new DependencyPropertyRegistator<StylePickerItem>();
     ChangeStyleCommandProperty = registrator.Register<ICommand>("ChangeStyleCommand", null);
     TextStyleProperty = registrator.Register<ITextStyle>("TextStyle", null);
 }
Example #4
0
        static PlotControl()
        {
            var registator = new DependencyPropertyRegistator <PlotControl>();

            StrokesProperty    = registator.Register("Strokes", new StrokeCollection());
            BoxSizeProperty    = registator.Register("BoxSize", 30d, ParametersChanged);
            ScaleOfBoxProperty = registator.Register("ScaleOfBox", 1d, ParametersChanged);
        }
Example #5
0
 static FormulaControl()
 {
     var registator = new DependencyPropertyRegistator<FormulaControl>();
     FormulaProperty = registator.Register<string>("Formula", propertyChanged:FormulaChanged, coerceValueCallback:OnFormulaCoerceCallback);
     FormulaVisualPropertyKey = registator.RegisterReadOnly<DrawingVisual>("FormulaVisual");
     EditableNowPropertyKey = registator.RegisterReadOnly<bool>("EditableNow");
     FormulaVisualProperty = FormulaVisualPropertyKey.DependencyProperty;
     EditableNowProperty = EditableNowPropertyKey.DependencyProperty;
 }
Example #6
0
        static StylePickerItem()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(StylePickerItem),
                                                     new FrameworkPropertyMetadata(typeof(StylePickerItem)));
            var registrator = new DependencyPropertyRegistator <StylePickerItem>();

            ChangeStyleCommandProperty = registrator.Register <ICommand>("ChangeStyleCommand", null);
            TextStyleProperty          = registrator.Register <ITextStyle>("TextStyle", null);
        }
Example #7
0
        static StylePicker()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(StylePicker),
                                                     new FrameworkPropertyMetadata(typeof(StylePicker)));
            var registrator = new DependencyPropertyRegistator <StylePicker>();

            NewTextStyleProperty       = registrator.Register("NewTextStyle", new TextStyleImpl());
            AddNewStyleCommandProperty = registrator.Register <ICommand>("AddNewStyleCommand");
        }
Example #8
0
        static FormulaControl()
        {
            var registator = new DependencyPropertyRegistator <FormulaControl>();

            FormulaProperty          = registator.Register <string>("Formula", propertyChanged: FormulaChanged, coerceValueCallback: OnFormulaCoerceCallback);
            FormulaVisualPropertyKey = registator.RegisterReadOnly <DrawingVisual>("FormulaVisual");
            EditableNowPropertyKey   = registator.RegisterReadOnly <bool>("EditableNow");
            FormulaVisualProperty    = FormulaVisualPropertyKey.DependencyProperty;
            EditableNowProperty      = EditableNowPropertyKey.DependencyProperty;
        }
        static VisualContainerElement()
        {
            var registator = new DependencyPropertyRegistator <VisualContainerElement>();

            VisualProperty = registator.Register <Visual>("Visual", propertyChanged: VisualChanged);
        }
Example #10
0
 static DrawerControl()
 {
     var registator = new DependencyPropertyRegistator<DrawerControl>();
     StrokesProperty = registator.Register("Strokes", new StrokeCollection());
 }
Example #11
0
        static DrawerControl()
        {
            var registator = new DependencyPropertyRegistator <DrawerControl>();

            StrokesProperty = registator.Register("Strokes", new StrokeCollection());
        }
 static VisualContainerElement()
 {
     var registator = new DependencyPropertyRegistator<VisualContainerElement>();
     VisualProperty = registator.Register<Visual>("Visual", propertyChanged: VisualChanged);
 }