Hi,
I'm having trouble with the IsHidden binding of my RadPanes. If I have 2 or more RadPanes within a RadPaneGroup and have their IsHidden properties bound to a static class boolean property, only 1 of the multiple panes within the RadPane group hides when I toggle the property from false to true.
All IsHidden bindings are working, there appears to be a bug when toggling the binding on more than one RadPane within a RadPaneGroup.
I'm using library 2013.1.220.40.
XAML Example:
Static Class
Has anyone else noticed such behaviour?
Many thanks,
Rob
I'm having trouble with the IsHidden binding of my RadPanes. If I have 2 or more RadPanes within a RadPaneGroup and have their IsHidden properties bound to a static class boolean property, only 1 of the multiple panes within the RadPane group hides when I toggle the property from false to true.
All IsHidden bindings are working, there appears to be a bug when toggling the binding on more than one RadPane within a RadPaneGroup.
I'm using library 2013.1.220.40.
XAML Example:
<
telerikDocking:RadSplitContainer
Orientation
=
"Horizontal"
InitialPosition
=
"DockedBottom"
>
<
telerikDocking:RadPaneGroup
>
<!-- Modification Pane -->
<
TAS2DockingPanes:ModificationsPane
x:Name
=
"radPaneModifications"
CanUserClose
=
"False"
CanDockInDocumentHost
=
"False"
IsHidden
=
"{Binding Source={x:Static TAS2DockingPanes:VisibilitySettings.Instance}, Path=CanViewModificationsPane, Converter={StaticResource boolToReverseConverter}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
/>
<!-- Pricing Pane -->
<
TAS2DockingPanes:ExtrasPricingPane
x:Name
=
"radPanePricingExtras"
CanUserClose
=
"False"
CanDockInDocumentHost
=
"False"
IsHidden
=
"{Binding Source={x:Static TAS2DockingPanes:VisibilitySettings.Instance}, Path=CanViewExtrasPricingPane, Converter={StaticResource boolToReverseConverter}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
/>
</
telerikDocking:RadPaneGroup
>
</
telerikDocking:RadSplitContainer
>
Static Class
public class VisibilitySettings : INotifyPropertyChanged
{
private static readonly VisibilitySettings instance = new VisibilitySettings();
private VisibilitySettings() { }
public static VisibilitySettings Instance
{
get
{
return instance;
}
}
private static bool m_canViewExtrasPricingPane;
private static bool m_canViewModificationsPane;
public static void SetVisibilitySettings(bool canViewExtrasPricingPane, bool canViewModificationsPane)
{
Instance.CanViewExtrasPricingPane = canViewExtrasPricingPane;
Instance.CanViewModificationsPane = canViewModificationsPane;
}
public bool CanViewExtrasPricingPane
{
get
{
return m_canViewExtrasPricingPane;
}
set
{
m_canViewExtrasPricingPane = value;
OnPropertyChanged(new PropertyChangedEventArgs("CanViewExtrasPricingPane"));
}
}
public bool CanViewModificationsPane
{
get
{
return m_canViewModificationsPane;
}
set
{
m_canViewModificationsPane = value;
OnPropertyChanged(new PropertyChangedEventArgs("CanViewModificationsPane"));
}
}
//INotifyPropertyChanged Event
public event PropertyChangedEventHandler PropertyChanged;
public void OnPropertyChanged(PropertyChangedEventArgs e)
{
if (PropertyChanged != null)
PropertyChanged(this, e);
}
}
Has anyone else noticed such behaviour?
Many thanks,
Rob