Silverlight: Docking of controls
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.
精彩评论