xaml 中 引用嵌套类的对象

 public class MotorType1
    {
        public class MotorType2
        {
            public class MotorType3
            {
                /// <summary>
                /// 电机类型
                /// </summary>
                public enum MotorType4: byte
                {
                    X轴 = 0x01,
                    Y轴 = 0x02,
                    Z1轴 = 0x03,
                    Z2轴 = 0x06,
                }
            }
        }
    }
//xaml
x:Static enums:MotorType1+MotorType2+MotorType3+MotorType4.X轴

猜你喜欢

转载自www.cnblogs.com/dyfisgod/p/11989517.html