2011-04-16 27 views

回答

4

你想如何佈置控件?你想要他們垂直放置,像這樣:

<UserControl Name="MyHostControl"> 
    <Grid> 
     <Grid.ColumnDefintions> 
      <ColumnDefinition/> 
      <ColumnDefinition/> 
     </Grid.ColumnDefintions> 

     <local:MyControl1 Grid.Column="0"/> 
     <local:MyControl2 Grid.Column="1"/> 
    </Grid> 
</UserControl> 

你是否在尋找別的?您正在使用WPF,靈活性比任何體操運動員都要好。您可以讓用戶控制您想要的任何其他WPF控件的內容。

相關問題