I\'m using wpf on C# to design GUI, and I want to get screen size (The value of Width and Height) from xaml code.
I knew how to get them from C# code as
Say your parent container in the XAML is grid, name it as grdForm
In the code behind can get the dimensions as
double width=grdForm.ActualWidth
double height=grdForm.ActualHeight