Example #1
0
        /// <summary>
        /// 添加listbox的子
        /// </summary>
        /// <param name="listBoxPart"></param>
        /// <param name="styleEle"></param>
        private void AddListBoxPartChildrenParts(ListBoxPart listBoxPart, StyleXmlElement styleEle)
        {
            SnipPartsXmlElement partsEle = styleEle.GetPartsElement();

            listBoxPart.ChildParts.Clear();
            GetParts(listBoxPart.ChildParts, partsEle, listBoxPart.Designer);
        }
Example #2
0
        /// <summary>
        /// 根据样式名显示当前的样式
        /// </summary>
        /// <param name="p"></param>
        private void DisplayStyle()
        {
            if (_currenDoc == null)
            {
                return;
            }
            StyleXmlElement styleEle = _currenDoc.StyleElement;

            if (styleEle == null)
            {
                _designerIsNull = true;
                return;
            }
            Designer.Load(styleEle);
            _designerIsNull = false;
        }