This project is read-only.

Child pages fit parent window

Jul 9, 2013 at 10:54 AM
How can I make my child pages fit the parent window, rather than being of a fixed size? Especially if I have resized my MainWindow?
Oct 14, 2013 at 9:20 PM
How is this not answered? I am having the same problems. My child pages are not filling up the parent window, and it's super annoying.
Oct 14, 2013 at 9:43 PM
A panel such as a Grid in a child page does size automatically, unless you set an explicit width/height. Could you otherwise post a XAML snippet?
Sep 11, 2014 at 2:35 PM
Same problem.

MgrEditCtl is a user control containing a three column grid, that I would like to expand to the windows columns, but it gets to a fixed size and doesnt stretch when the window is maximized.

I suppose I could write it as a fixed size, and manually expand it, but as Kill Nine says, its "Super Annoying."
    <mui:LinkGroup DisplayName="Manager Performance Calculator" >
        <mui:LinkGroup.Links >
            <mui:Link DisplayName="Managers" Source="/Pages/MgrEditCtl.xaml" />
            <mui:Link DisplayName="Funds" Source="/Pages/FundEditCtl.xaml" />
    <mui:LinkGroup DisplayName="settings" GroupKey="settings">
            <mui:Link DisplayName="software" Source="/Pages/SettingsPage.xaml" />

    <mui:Link DisplayName="settings" Source="/Pages/SettingsPage.xaml" />
    <mui:Link DisplayName="help" Source="" />

<Grid  Margin="0,0,0,0" Name="grdWindow" Background="Blue">
        <ColumnDefinition Width="50*"/>
        <ColumnDefinition Width="6"/>
        <ColumnDefinition Width="50*"/>
    <DataGrid Margin="10,10,10,0" Name="dgManagerList"/>
        <GridSplitter Grid.Column="1" Name="grdSplitter"/>
        <GroupBox Header="Manager Detail" Margin="0"                   Name="gbManagerDetail" Grid.Column="2"/>
Jan 3, 2015 at 1:15 AM
Con respecto a este problema, vemos que el codigo XAML, las propiedades d:DesignHeight y d:DesignWidth se encargan de redimensionar automáticamente el frame.

  Verifica que en tu codigo XAML tienes estas propiedades d:DesignHeight y  d:DesignWidth, en lugar de Height y  Width.
Espero les ayude.