i did not found the control’s property called dock and anchor. if it is not there then how we can have the flavor of dock and anchor property of every control. here how could i set a controls dock property to Top. please discuss.
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
‘Docking’ in WPF can be done by Setting the HorizontalAllignment and the VerticalAllignment properties of a child control.
An alternative is nesting the control in a DockPanel and setting the DockPanel.Dock to e.g. Top on the control.l:
‘Anchoring’ in WPF can be done by setting the Margin on the child and/or the Padding on the container.