Link to home
Start Free TrialLog in
Avatar of MSFanboy
MSFanboyFlag for Germany

asked on

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
Avatar of CuteBug
CuteBug
Flag of India image

Instead of 0.054* give Height="40"

* specifies the proportion. So in this case it means 0.054 x total height.
ASKER CERTIFIED SOLUTION
Avatar of CuteBug
CuteBug
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MSFanboy

ASKER

now I found it out too after some logical thinking ;-)