Silverlight: Docking of controls

 ̄綄美尐妖づ 提交于 2019-12-08 05:28:18

问题


Is it possible to dock Silverlight based controls like Windows Forms control ? For example I want to use a tab control, which I want to use as a control for page navigation ! Unfortunately I don't find a "Dock" property :-( !


回答1:


The Silverlight Toolkit found on Codeplex contains a DockPanel control, you will want to use that.




回答2:


I am not sure that i understand your question, but you can consider using one of the various WPF layout techniques.

Example:

<DockPanel LastChildFill="False">
    <Button DockPanel.Dock="Bottom">Bottom</Button>
    <Button DockPanel.Dock="Left">Left</Button>        
    <Button DockPanel.Dock="Right">Right</Button>
    <Button DockPanel.Dock="Top">Top</Button>
    <Button>Fill</Button>
</DockPanel>



回答3:


DockPanel might be helpful.



来源:https://stackoverflow.com/questions/2266185/silverlight-docking-of-controls

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!