C# 将用户控件绑定到父窗口
如何将用户控件绑定到窗口底部的父窗口?如果要将其固定到窗口底部,应在其周围使用DockPanel:C# 将用户控件绑定到父窗口,c#,.net,wpf,user-controls,C#,.net,Wpf,User Controls,如何将用户控件绑定到窗口底部的父窗口?如果要将其固定到窗口底部,应在其周围使用DockPanel: <DockPanel> <Label DockPanel.Dock="Bottom" Content="I will be docked to the bottom of the window."/> </DockPanel> 我想你指的是停靠而不是绑定。
<DockPanel>
<Label
DockPanel.Dock="Bottom"
Content="I will be docked to the bottom of the window."/>
</DockPanel>
我想你指的是停靠而不是绑定。