Exemplo n.º 1
0
        protected override string GetNameCore()
        {
            string name = base.GetNameCore();

            if (name == string.Empty)
            {
                MetroWindow window = (MetroWindow)this.Owner;

                name = window.GetWindowText();
                if (name == null)
                {
                    name = string.Empty;
                }
            }

            return(name);
        }