ScaleTransform on TabItemContentPresenter

2 posts, 0 answers
  1. Jonas Hero
    Jonas Hero avatar
    9 posts
    Member since:
    Jul 2009

    Posted 15 Mar 2010 Link to this post


    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?


  2. Miroslav
    Miroslav avatar
    922 posts

    Posted 18 Mar 2010 Link to this post

    Hi Jonas Hero,

    I am sorry for the delayed reply.

    I have three suggestions:

    In versions prior to Q1 2010:
    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,
    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.
  3. DevCraft banner
Back to Top