• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 236
  • Last Modified:

Why does my titlebar + statusbar gets resized when I resize my whole custom window?

Hello,

look at my screenshot. There you see a squeezed titlebar + statusbar. This happens when I resize my custom window:

The titlebar is in the first Row with height 0.054. Even when I set the Height to a fix value like 40 pixel the titlebar still gets resized when the window gets resized, but why? I want the titlebar+statusbar having a fix HEIGHT value whatever I do with the window.

<Grid x:Name="MainGrid">
				<Grid.RowDefinitions>
					<RowDefinition Height="0.054*"/>
					<RowDefinition Height="0.121*"/>
					<RowDefinition Height="0.791*"/>
					<RowDefinition Height="0.034*"/>
				</Grid.RowDefinitions>
....

Open in new window

test.png
0
MSFanboy
Asked:
MSFanboy
  • 2
1 Solution
 
CuteBugCommented:
Instead of 0.054* give Height="40"

* specifies the proportion. So in this case it means 0.054 x total height.
0
 
CuteBugCommented:
This will solve your problem
<Grid x:Name="MainGrid">
                                <Grid.RowDefinitions>
                                        <RowDefinition Height="40"/>
                                        <RowDefinition Height="0.121*"/>
                                        <RowDefinition Height="0.791*"/>
                                        <RowDefinition Height="40"/>
                                </Grid.RowDefinitions>

Open in new window

0
 
MSFanboyAuthor Commented:
now I found it out too after some logical thinking ;-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now