コード例 #1
0
 protected void ParseKnownAttributes(XElement node, AttributesHelper attributes, ParseResult result, string baseUri, bool addImageQuery)
 {
     if (Context != NotificationType.Toast)
     {
         // hint-textStacking is optional
         HintTextStacking hintTextStacking;
         if (TryParseEnum(result, attributes, ATTR_TEXT_STACKING, out hintTextStacking))
         {
             this.HintTextStacking = hintTextStacking;
         }
     }
 }
コード例 #2
0
        internal virtual void ParseKnownAttributes(AttributesHelper attributes, ParseResult result, string baseUri, bool addImageQuery)
        {
            // hint-weight
            ParseHintWeight(attributes, result);

            // hint-textStacking is optional
            HintTextStacking hintTextStacking;

            if (TryParseEnum(result, attributes, ATTR_SUBGROUP_HINT_TEXT_STACKING, out hintTextStacking))
            {
                this.HintTextStacking = hintTextStacking;
            }

            if (Context != NotificationType.Tile && Context != NotificationType.Toast)
            {
                // actionId is optional
                var attrActionId = attributes.PopAttribute(ATTR_ACTIONID);
                if (attrActionId != null)
                {
                    this.ActionId = attrActionId.Value;
                }
            }
        }