问题
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