Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. WindowState.Maximized -- How to get the proper size of the window? [modified]

WindowState.Maximized -- How to get the proper size of the window? [modified]

Scheduled Pinned Locked Moved WPF
questioncsharpwpftutorial
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cristoff
    wrote on last edited by
    #1

    I have a borderless window. A double click on it maximizes it - WindowState.Maximized and WindowStyle set to None. Now I'm trying to get the proper size of that window so that I resize the internal controls. My screen resolution is: 1280 x 800 SystemParameters.MaximizedPrimaryScreenWidth 1288.0 double SystemParameters.MaximizedPrimaryScreenHeight 778.0 double What are these two properties supposed to return actually? Why the width is larger than my screen and the other one smaller? (on my screen visually the windows is OK) ---> Gets a value that indicates the height, in pixels, of a maximized top-level window on the primary display monitor. ---> Gets a value that indicates the width, in pixels, of a maximized top-level window on the primary display monitor. ??? Or SystemParameters.FullPrimaryScreenWidth - 1280 SystemParameters.FullPrimaryScreenHeight - 744 What is the proper way to get the system metrics in WPF? Or there isn't one? SystemParameters.VirtualScreenWidth SystemParameters.VirtualScreenHeight

    modified on Friday, August 14, 2009 7:15 AM

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups