Hi
I am trying to move a tab control on a wpf around dynamically. The tab control is hooked to a timer and basically if you press a button the size is shrunk so it looks and behaves like an expandable panel. However, when I 'shrink' the tab control the width is adjusted centrally, whereas I want the control to stay where it was positioned in the X axis, how do I do that (why they couldn't do control.location(x,y) I don't know!)?
GeneralTransform myTrans = this.tabcontrol1.TransformToAncestor(this);
Point p1 = myTrans.Transform(new Point(0, 0));
I am using the two lines above to get the position, this can be done either via GeneralTransform or visualTreeHelper (which returns a vector) and how do I apply this to the tabcontrol to get it to move?
Thanks, R.