开发者

WindowsFormsHost doesn't resize panel

Hi I am trying to host a Panel in a WindowsformsHost control as follows:

    <DockPanel LastChildFill="true" Grid.Column="1" Grid.ColumnSpan="2">
       <WindowsFormsHost Name="FormsHost" Background="Aqua" Height="{Binding ElementName=RootWindow, Path=ActualHeight}" Width="{Binding ElementName=RootWindow, Path=ActualWidth}">
            <wf:Panel Dock="Fill" x:N开发者_如何学Pythoname="basePanel" AutoSize="True" />
        </WindowsFormsHost>
    </DockPanel>

for some reason the panel doesn't resize when the application does. Has anyone got any ideas?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜