in Education by
So I created a WPF application on my monitor which has bigger height (1280 vs 1024) resolution. It is working fine on my monitor. But when I take it to a monitor of different resolution the whole application extends beyond the monitor and as a result is not usable. Any idea how we can rectify this. All the height of my controls and window height is fixed JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
This is easy. Reduce the height of your window. Why are you using a large fixed height window? Obviously I don't know the design of your application, but as you have quickly found out, fixed heights (and widths) tend not to be portable across different pieces of hardware. The real solution for you is probably to use a WPF Grid control. All of your controls should be in the grid, which fills the entire window. Depending on how you set up your grid rows and columns, your controls will scale in size as the size of your window changes. Say you have four controls you want evenly stacked in your grid. You could do this: Now each control takes 25% of the available space, and WPF handles everything as your window size changes. You can do much more complicated layouts than this, but hopefully this gets you started.

Related questions

0 votes
    Just found this out the hard way. I wanted to pop up a FontDialog to allow the user to choose a ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 13, 2022 in Education by JackTerrance
0 votes
    I want my WPF application to be skinnable, by applying a certain XAML template, and the changes to be ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 17, 2022 in Education by JackTerrance
0 votes
    I am creating a WPF Application that uses Fluent library. On my computer with Windows 7, 2GB RAM and ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    I am investigating the design of a work queue processor where the QueueProcessor retrieves a Command Pattern object ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 19, 2022 in Education by JackTerrance
0 votes
    I am trying to set the position of caret in richtextbox based on index position of a word. Even ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 2, 2022 in Education by JackTerrance
0 votes
    I'm stuck with displaying a React component named "home" that take 100% of the height of my screen ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 26, 2022 in Education by JackTerrance
0 votes
    I want to calculate browser height without considering browser address bar and bottom navigation bar height. The ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    I want to calculate browser height without considering browser address bar and bottom navigation bar height. The ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 24, 2022 in Education by JackTerrance
0 votes
    I'm having some trouble recently. On a WebForm I declare a static object, like this : public static ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 27, 2022 in Education by JackTerrance
0 votes
    I'm having some trouble recently. On a WebForm I declare a static object, like this : public static ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 27, 2022 in Education by JackTerrance
0 votes
    I'm having some trouble recently. On a WebForm I declare a static object, like this : public static ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 27, 2022 in Education by JackTerrance
0 votes
    A ______ is used in computing as a simple maeans of expressing binary quantities Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    what is used in computing as a simple means of expressing binary quantities? Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    When expressing Strategic Themes as objectives and key results what are the the key results?...
asked Nov 28, 2020 in Technology by JackTerrance
0 votes
    How do I parse a string eg. "01/21 - 02/20" which is represented as month/day to month/day. ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 14, 2022 in Education by JackTerrance
...