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 147053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:42:48+00:00 2026-05-11T08:42:48+00:00

The Width property of the screen doesn’t seem to update to the fully maximized

  • 0

The Width property of the screen doesn’t seem to update to the fully maximized width when maximizing a window. If I resize it everything works fine, but not when maximizing.

The code I have is as follows:

private void Window_SizeChanged(object sender, SizeChangedEventArgs e) {     UpdateColumns(); }  private void button1_Click(object sender, RoutedEventArgs e) {     UpdateColumns(); }  private void UpdateColumns() {     ColumnCount = Math.Round(Width/150);     statusBarItemColumnCount.Content = ColumnCount;     button1.Content = ColumnCount + ' ' + Width; }  private void Window_StateChanged(object sender, EventArgs e) {     UpdateColumns(); } 
  • 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. 2026-05-11T08:42:48+00:00Added an answer on May 11, 2026 at 8:42 am

    Take a look at ActualWidth, rather than Width.

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

Sidebar

Related Questions

I use the javascript property screen.width to know which CSS to use... But with
Is the CSS 'width' property applicable to a <textarea> ? In practice, people say
I need to bind width property of the GridView column that is created dynamically
Does anyone know how to set the TextBox.Width property to fill up the remainder
I'm trying to bind System.Windows.SystemParameters.PrimaryScreenWidth to a ColumnDefinition's (From within a 'Grid') Width property,
1) If textbox element ( <input type=text /> ) has its width property set
I'm trying to set the width & height property of an image element i've
I can't seem to rotate properly an image on the entire screen. The problem
Update: The multiple device screen dimensions is a red herring - the problem is
I have a class with property type of Point ( struct in .NET Framework).

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.