Dock a control in WPF?

Posted by Peermohamedmydeen under WPF on 10/28/2010 | Points: 10 | Views : 27057 | Status : [Member] | Replies : 6
Hi All,

Nice Day,

I am new to WPF. I worked with WinForms. I tried to dock a tab control in WPF. I could not able to find any such property like Dock, Anchor.

Is it possible to Dock the TabControl in WPF? Please suggest me..




Responses

Posted by: Lalji_mer on: 10/28/2010 [Member] Bronze | Points: 25
Posted by: T.saravanan on: 10/28/2010 [Member] [MVP] Silver | Points: 25

Up
0
Down
Hi Mydeen,

Refer the below link..

http://www.wpftutorial.net/DockPanel.html

http://msdn.microsoft.com/en-us/library/bb384314.aspx

Cheers :)

Thanks,
T.Saravanan

Peermohamedmydeen, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Peermohamedmydeen on: 10/28/2010 [Member] Bronze | Points: 25

Up
0
Down
Hi,

The links are explaining about the Left, Right, Top and Bottom Docking... I want to fill a tabcontrol into the full form.

How do I ?



Peermohamedmydeen, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Peermohamedmydeen on: 10/28/2010 [Member] Bronze | Points: 25

Up
0
Down
Hello All,

I got Idea. The last control in the Dock Panel will get filled when LastChildFill="True"

Thanks All.

Peermohamedmydeen, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Netartist on: 5/16/2011 [Member] Starter | Points: 25

Up
0
Down
Hi,
The correct answer is to set the Width and Height of the tab control to Auto. To get the actual values use ActualHeight and ActualWidth.
Greetings

Peermohamedmydeen, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Susanthampy on: 5/19/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Refer this,

http://www.devcomponents.com/dotnetbar-wpf/wpf-dock/

Regards,
Susan

Peermohamedmydeen, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response