Problem With Panelbar Orientation

3 posts, 0 answers
  1. Srinivas
    Srinivas avatar
    32 posts
    Member since:
    Aug 2010

    Posted 30 Aug 2010 Link to this post

    Hi Teleriks,

    I have a strange prolem with the panelbar orientation property.

    I have wrapped the orientation property of the RadPanelbar to my own  like,



    public Orientation Orientation





    get { return (Orientation)PanelBar.GetValue(RadPanelBar.OrientationProperty); }




    set { PanelBar.SetValue(RadPanelBar.OrientationProperty, value); }







    public static readonly DependencyProperty OrientationProperty =








    "Orientation", typeof(Orientation), typeof(TngPanelBar),




    new FrameworkPropertyMetadata



    PropertyChangedCallback = (obj, e) =>




    as TngPanelBar).UpdateOrientation((Orientation)e.NewValue);






    private void UpdateOrientation(Orientation sel)



    PanelBar.Orientation = sel;


    Case 1)

    Iam able to access the property at the xaml , but the what ever value i set at the design mode( horizontal or vertical) by defalut it takes vertical.means the designer shows vertical and xaml (Orentation='Horizontal'). when i run the application it shows the 'horizantal' at runtime. when i stop debegging it shows the same problem like 'showing vertical at design time and horizontal at xaml). please refer the image panelbar_orientation

    Please suggest me how to get rid of this .

    Case 2)
    in the next run,
    When i change the value of orientation to 'vertical' from 'horizontal' at execute ,at runtime it showing the 'horizontal' allignment.
     Please refer to 'image panel_orientation_2 '

     IS this a  cache problem ?
    Please suggest .

    Thanks in advance,

    Srinivas J

    Thanks in advance,
    Srinivas J

  2. Srinivas
    Srinivas avatar
    32 posts
    Member since:
    Aug 2010

    Posted 31 Aug 2010 Link to this post

    Hello Team,

    Did you have any solution to my problem stated below ?

    Is this related to setting the attribute like ,



    TemplatePart(Name = "transformationRoot", Type = typeof(LayoutTransformControl))]


    at my wrapper controls definition level ?

    please help me on this.

    (For your info : the control that i wrapped for silverlight version is working fine.( reflects the values set at xaml for the Orientation property to the designer and at the rumtime as well)

  3. Kiril Stanoev
    Kiril Stanoev avatar
    1512 posts

    Posted 02 Sep 2010 Link to this post

    Hi Srinivas,

    I was not able to reproduce the issue you were describing. In my test project, the VS designer responded as expected whenever I changed the Orientation property. Also, I changed the Orientation property during runtime and it behaved as expected. However, I don't know to what extent you have extended RadPanelBar. If you have edited the ControlTemplate, please make sure that the LayoutTransformControl is present since it is responsible for the orientation change of RadPanelBar. I'm attaching my test project as well as a video demonstrating interaction with the VS designer. Have a look at them and let me know if I am missing something. I'd be glad to further assist you.

    Kiril Stanoev
    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
Back to Top