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