Пример #1
0
        /// <summary>
        /// Shows the shadow style editor for the specified styleable node
        /// </summary>
        /// <param name="styleable"></param>
        protected void ShowShadowStyleEditor(INStyleable styleable)
        {
            if (styleable == null)
            {
                return;
            }

            NShadowStyle shadowStyle    = styleable.ComposeShadowStyle();
            NShadowStyle newShadowStyle = null;

            if (NShadowStyleTypeEditor.Edit(shadowStyle, out newShadowStyle))
            {
                NStyle.SetShadowStyle(styleable, newShadowStyle);
                document.RefreshAllViews();
            }
        }