コード例 #1
0
        public bool?ShowDialog(Window owner = null)
        {
            DevWindowBox window = new DevWindowBox();

            if (owner != null)
            {
                window.Owner = owner;
            }
            window.Content = this;
            if (!string.IsNullOrEmpty(_title))
            {
                window.Title = _title;
            }
            ParentWindow = window;

            return(window.ShowDialog());
        }
コード例 #2
0
        public bool?ShowPanel(Window owner = null)
        {
            DevWindowBox window = new DevWindowBox();

            window.WindowStyle     = WindowStyle.None;
            window.Background      = null;
            window.BorderThickness = new Thickness(0, 0, 0, 0);
            window.Topmost         = true;
            if (owner != null)
            {
                window.Owner = owner;
            }
            window.Content = this;
            if (!string.IsNullOrEmpty(_title))
            {
                window.Title = _title;
            }
            ParentWindow = window;

            return(window.ShowDialog());
        }