locked
how to get height and width of emulator through programming using c# in windows mobiles? RRS feed

  • Question

  • hi

    how to get height and width of emulators in windows mobile through programming using c#?

     

    Wednesday, September 15, 2010 8:29 AM

Answers

  • hi

    how to get height and width of emulators in windows mobile through programming using c#?

     

    Hi,

    To get the Height and Width you have to use below API.

     

    int Width = Screen.PrimaryScreen.Bounds.Width;

    int Height =  Screen.PrimaryScreen.Bounds.Height;

     

    Hope it Helps.


    If you find my post is helpful for you then mark as a answer.
    Wednesday, September 15, 2010 8:56 AM

All replies

  • hi

    how to get height and width of emulators in windows mobile through programming using c#?

     

    Hi,

    To get the Height and Width you have to use below API.

     

    int Width = Screen.PrimaryScreen.Bounds.Width;

    int Height =  Screen.PrimaryScreen.Bounds.Height;

     

    Hope it Helps.


    If you find my post is helpful for you then mark as a answer.
    Wednesday, September 15, 2010 8:56 AM
  • string ScreenWidth = Application.Current.Host.Content.ActualWidth.ToString();  
    string ScreenHeight = Application.Current.Host.Content.ActualHeight.ToString();
    Sunday, March 9, 2014 12:26 PM