using ruibarbo.core.ElementFactory;
using ruibarbo.core.Wpf.Invoker;

namespace ruibarbo.core.Wpf.Base
{
    public class WpfWindowBase<TNativeElement> : WpfFrameworkElementBase<TNativeElement>
        where TNativeElement : System.Windows.Window
    {
        public WpfWindowBase(ISearchSourceElement searchParent, TNativeElement frameworkElement)
            : base(searchParent, frameworkElement)
        {
        }

        public void MakeSureWindowIsTopmost()
        {
            OnUiThread.Invoke(this, fe => fe.Activate());
        }
    }
}
using ruibarbo.core.ElementFactory;
using ruibarbo.core.Wpf.Invoker;

namespace ruibarbo.core.Wpf.Base
{
    public class WpfWindowBase<TNativeElement> : WpfFrameworkElementBase<TNativeElement>
        where TNativeElement : System.Windows.Window
    {
        public WpfWindowBase(ISearchSourceElement searchParent, TNativeElement frameworkElement)
            : base(searchParent, frameworkElement)
        {
        }

        public void MakeSureWindowIsTopmost()
        {
            OnUiThread.Invoke(this, frameworkElement => frameworkElement.Activate());
        }

        public string Title
        {
            get { return OnUiThread.Get(this, frameworkElement => frameworkElement.Title); }
        }
    }
}
Support for Title on Windows.
Support for Title on Windows.
