double Width = System.Windows.Application.Current.Host.Content.ActualWidth; double Height = System.Windows.Application.Current.Host.Content.ActualHeight;