/// <summary> /// Static constructor. /// </summary> static NExampleTile() { NExampleTileSchema = NSchema.Create(typeof(NExampleTile), NPairBox.NPairBoxSchema); // Properties StatusProperty = NExampleTileSchema.AddMember("Status", NDomType.String, defaultStatus, delegate(NNode o) { return(((NExampleTile)o).m_Status); }, delegate(NNode o, object v) { ((NExampleTile)o).m_Status = (string)v; }); // Modify some default values SpacingProperty.SetDefaultValue(NExampleTileSchema, 5.0); }
set => SetValue(SpacingProperty, value);
set => this.SetValue(SpacingProperty, value);
static StackPanelEx() { OrientationProperty.OverrideMetadata(typeof(StackPanelEx), new FrameworkPropertyMetadata(OnOrientationPropertyChanged)); SpacingProperty.OverrideMetadata(typeof(StackPanelEx), new FrameworkPropertyMetadata(OnSpacingPropertyChanged)); }
set => SetValue(SpacingProperty, Boxes.Box(value));