示例#1
0
        public override void ReadXml(System.Xml.XmlReader reader)
        {
            reader.ReadAttrAsString("Action", ref this.Action);
            reader.ReadAttrAsString("MoveAction", ref this.MoveAction);
            reader.ReadAttrAsString("ReleaseAction", ref this.ReleaseAction);

            var newEvent = reader["Event"];

            if (newEvent != null)
            {
                this.Event = newEvent;
            }

            base.ReadXml(reader);
        }
示例#2
0
        public override void ReadXml(System.Xml.XmlReader reader)
        {
            reader.ReadAttrAsString("Value", ref this.Value);
            reader.ReadAttrAsEnum <XValueComparison>("Compare", ref this.Compare);

            base.ReadXml(reader);
        }
示例#3
0
        public override void ReadXml(System.Xml.XmlReader reader)
        {
            reader.ReadAttrAsString("TextureId", ref this.TextureId);
            reader.ReadAttrAsEnum <XImageStretchMode>("StretchMode", ref this.StretchMode);
            reader.ReadAttrAsEnum <XFlipEffects>("FlipEffects", ref this.FlipEffects);

            base.ReadXml(reader);
        }