This is a migrated thread and some comments may be shown as answers.

ScaleTransform on TabItemContentPresenter

1 Answer 46 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Jonas Hero
Top achievements
Rank 1
Jonas Hero asked on 15 Mar 2010, 06:05 PM
Hello!

I wrote a ControlTemplate for the TabItem in which the Telerik.Windows.Controls.Primitives.TabItemContentPresenter is used to display data. Now im trying to add a RenderTransform (a ScaleTransform), but it has no effect at all. Neither get any error nor a visual change. Is that possible actually?

Thanks!

Jonas

1 Answer, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 18 Mar 2010, 02:07 PM
Hi Jonas Hero,

I am sorry for the delayed reply.

I have three suggestions:

In versions prior to Q1 2010:
1.
The TabControl supports orientation and we apply a transformation to one of its template parts. Quite possibly we override your transformation in code.

If you apply the transformation on a wrapper element (or anywhere else actually), it should work.

2. The TabItem has four templates - Top / Left / Right / Bottom - one for each position of the TabStripPlacement of the TabControl.

When you create a custom template, it should be assigned to the orientation-specific template or it may get overriden.

In versions after Q1 2010:
3. All transformations to elements in the control template are applied with VisualStates and just one template is used (the control.Template). IMO the new template will be easier to edit.

Does this work for you?

Sincerely yours,
Miroslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
TabControl
Asked by
Jonas Hero
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or