Example #1
0
        /// <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);
        }
Example #2
0
 set => SetValue(SpacingProperty, value);
Example #3
0
 set => this.SetValue(SpacingProperty, value);
Example #4
0
 static StackPanelEx()
 {
     OrientationProperty.OverrideMetadata(typeof(StackPanelEx), new FrameworkPropertyMetadata(OnOrientationPropertyChanged));
     SpacingProperty.OverrideMetadata(typeof(StackPanelEx), new FrameworkPropertyMetadata(OnSpacingPropertyChanged));
 }
Example #5
0
 set => SetValue(SpacingProperty, Boxes.Box(value));