Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3284314
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:08:27+00:00 2026-05-17T20:08:27+00:00

I have a custom styled transparent window and i’ve seen a lot of issues

  • 0

I have a custom styled transparent window and i’ve seen a lot of issues handling min/max/resize behavior when you use transparency and “WindowStyle=None”.

When I tell my window to change it’s windowstate to maximized it doesn’t get it right so I want to override the logic there. It gets the width right but the height is all messed up and it doesn’t know to add padding to account for a outerglow effect.

Without using win32 functions is there a SOMEWHAT EASY way for me to determine the “max viewport” or “max bounds” of the display that the application is running on top of? I think the short answer to this question is probably no but I figured I would ask anyways. I have my min/max width and height set up for the application and I figured if there was some function I could call to bring me back a x/y max bound then I could just set the window height and width to those values after I subtract the padding. My intention is to have supported resolution from 1024×768 – 1920×1080 so that this application can be displayed multiple places without reconfiguration.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T20:08:27+00:00Added an answer on May 17, 2026 at 8:08 pm

    Take a look at the Screen.PrimaryScreen Property. It has a method called GetWorkingArea which I think is what you want.

    If there is more than one display, then there are methods to enumerate through the displays and find out which display the application is on.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a custom styled drop-down selection box created with CSS/Javascript, which is meant
Cause I have a custom styled / positioned button. Currently, our set up is:
I have built a custom <button> , which is styled completely using CSS and
I have a custom styled ListBoxItem with a Border surrounding a ContentPresenter . (Code
am trying to use javascript for custom styled select boxes from www.gerrendesign.com/entry_images/selectboxdemo.zip and as
I have custom styled input submit buttons. I have a background image and then
I have created a custom style sheet that overrides the original CSS for my
I have created a custom style and template for MenuItem and ContextMenu, and for
I have a custom list menu style but I am unsure how to align
I'm using the Silverlight 3 datagrid and have a number of custom styles applied

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.