[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2009-04-16
3
Medium Priority
?
231 Views
Last Modified: 2013-11-12
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
Comment
Question by:MSFanboy
  • 2
3 Comments
 
LVL 16

Expert Comment

by:CuteBug
ID: 24164497
Instead of 0.054* give Height="40"

* specifies the proportion. So in this case it means 0.054 x total height.
0
 
LVL 16

Accepted Solution

by:
CuteBug earned 2000 total points
ID: 24164499
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
 

Author Closing Comment

by:MSFanboy
ID: 31571204
now I found it out too after some logical thinking ;-)
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question