开发者

Silverlight: Docking of controls

开发者 https://www.devze.com 2022-12-20 17:34 出处:网络
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开发者_运维百

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 :-( !


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>


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


DockPanel might be helpful.

0

精彩评论

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