コード例 #1
0
        /// <summary>
        /// 创建窗口
        /// </summary>
        public static IContentWindow Create(UIElement content, string title)
        {
            var win = new ContentWindow();

            win.Content = content;
            win.Title   = title;
            return(win);
        }
コード例 #2
0
        /// <summary>
        /// 创建窗口
        /// </summary>
        public static IContentWindow Create(UIElement content, string title, bool isAllowsTransparency)
        {
            var win = new ContentWindow();

            win.Content            = content;
            win.Title              = title;
            win.AllowsTransparency = isAllowsTransparency;
            return(win);
        }