UIElement[] CreateUIElements(ISimpleAppOptionUserContent option)
            {
                var uiContent = option.UIContent;

                Debug.Assert(uiContent != null);
                if (uiContent == null)
                {
                    return(null);
                }
                var uiel = uiContent as UIElement;

                if (uiel == null)
                {
                    uiel = new ContentPresenter {
                        Content = uiContent
                    }
                }
                ;
                return(new UIElement[] { uiel });
            }
 UIElement[] CreateUIElements(ISimpleAppOptionUserContent option)
 {
     var uiContent = option.UIContent;
     Debug.Assert(uiContent != null);
     if (uiContent == null)
         return null;
     var uiel = uiContent as UIElement;
     if (uiel == null)
         uiel = new ContentPresenter { Content = uiContent };
     return new UIElement[] { uiel };
 }