.net - WPF window squeezes at runtime -
i've designed wpf window in visual studio 2010 several controls in it. window set default program startup. size of window sufficient controls fit properly.
when execute program, reason window starts smaller size shown in designer, , controls not fit. how troubleshoot problem?
the window opening code follows:
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid" xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" title="main" mc:ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:designheight="548" d:designwidth="924" sizetocontent="widthandheight" xmlns:my="clr-namespace:elancetracker" windowstartuplocation="centerscreen" xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" xmlns:lc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol" xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon" xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars" xmlns:dxn="http://schemas.devexpress.com/winfx/2008/xaml/navbar" xmlns:dxca="http://schemas.devexpress.com/winfx/2008/xaml/carousel" xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/charts">
try changing designheight , designwidth height , width respectively, , also, set sizetocontent none.
Comments
Post a Comment