开发者

WindowsFormsHost doesn't resize panel

开发者 https://www.devze.com 2023-03-03 23:06 出处:网络
Hi I am trying to host a Panel in a WindowsformsHost control as follows: <DockPanel LastChildFill=\"true\" Grid.Column=\"1\" Grid.ColumnSpan=\"2\">

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

精彩评论

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