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); }
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"); }
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); }
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); }
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 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); }
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"); }
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); }
static DrawerControl() { var registator = new DependencyPropertyRegistator<DrawerControl>(); StrokesProperty = registator.Register("Strokes", new StrokeCollection()); }
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); }