コード例 #1
0
        public static InfoBox Show(Window owner, string text)
        {
            var dlg = new InfoBox();
            dlg.textBlock.Text = text;
            dlg.Owner = owner;
            if (owner != null)
            {
                dlg.wasEnabled = owner.IsEnabled;
                owner.IsEnabled = false;
            }

            dlg.Show();
            return dlg;
        }