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

Problem With Panelbar Orientation

2 Answers 85 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Srinivas
Top achievements
Rank 1
Srinivas asked on 30 Aug 2010, 12:32 PM

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 =

 

 

 

DependencyProperty.Register(

 

 

 

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

 

 

 

new FrameworkPropertyMetadata

 

{

PropertyChangedCallback = (obj, e) =>

{

(obj

 

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 Answers, 1 is accepted

Sort by
0
Srinivas
Top achievements
Rank 1
answered on 31 Aug 2010, 08:49 AM


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)

Regards,
Srinivas
0
Kiril Stanoev
Telerik team
answered on 02 Sep 2010, 09:37 AM
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.

Regards,
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
Tags
PanelBar
Asked by
Srinivas
Top achievements
Rank 1
Answers by
Srinivas
Top achievements
Rank 1
Kiril Stanoev
Telerik team
Share this question
or