gridview - WPF layout with several fixed height parts and certain parts relative to window size -


Right now my main layout has vertically oriented stack panels and it looks like this:

root StackPlan StackPanel - Fixed height 150 (horizontal orientation)

  • StackPanel - Relative height should be on behalf of the space left on the screen (but at least 150 pixels). The teleic grid is used by visual control, if I do not specify height or maxhight teleic gridview height then it gets very big and does not fit in my window.

  • StackPainel - Fixed height 100 (horizontal orientation)

  • StackPanel - Relative height should be half of free space left on screen (but At least 150 pixels). The teleic grid is used by visual control, if I do not specify height or maxhight teleic gridview height then it gets very big and does not fit in my window.

  • StackPainel - Fixed height 100 (horizontal orientation)

  • This view should fit perfectly screen sizes available.

    The problem is that I do not understand how to shape some areas of the size of my scene based on the available screen size.

    Is this an easy way to solve, or should I be the height of the window height and binding mathematics?

    Thanks a lot!

    I have no hands-on telerelic control to test, so it is far from the top of my head Is - Can not you use a grid such as the base of your control instead of a stackpanel? - If this is still a problem then post some code and we are trying to achieve it.

      & lt; Grid & gt; & Lt; Grid.RowDefinitions & gt; & Lt; RowDefinition Height = "150" /> & Lt; Roadfinion height = "*" /> & Lt; RowDefinition Height = "100" /> & Lt; Roadfinion height = "*" /> & Lt; RowDefinition Height = "100" /> & Lt; /Grid.RowDefinitions> & Lt; Stackpaneel grid Rau = "0" /> & Lt; Stackpaneel grid Rows = "1" horizontal alignment = "statch" vertical alignment = "stretch" /> & Lt; Stackpaneel grid Rau = "2" /> & Lt; Stackpaneel grid Raw = "3" horizontal align = "statch" vertical alignment = "stretch" /> & Lt; Stackpaneel grid Rau = "4" /> & Lt; / Grid & gt;  

    Comments

    Popular posts from this blog

    windows - Heroku throws SQLITE3 Read only exception -

    lex - Building a lexical Analyzer in Java -

    python - rename keys in a dictionary -