RadPane Pin and unpin using MultiDataTriggerConditions not working

2 posts, 0 answers
  1. Dharmavaram
    Dharmavaram avatar
    102 posts
    Member since:
    Jun 2013

    Posted 05 Oct 2017 Link to this post


     I want to pin and unpin one of the Radpane based on Object selected and Active Tabitem in our application.It is not working as expected,Even though I set

    <telerik:RadPane Header="Input Parameters">
      <Style TargetType="telerik:RadPane" BasedOn="{StaticResource {x:Type telerik:RadPane}}" >
                       <Setter Property="Visibility" Value="Hidden"/>                                                                     <Style.Triggers>
                                        <Condition Binding="{Binding Path=SelectedSharedComponentItem, Converter={uxt:ObjectToBoolConverter}}" Value="True"/>                                                      
    <Condition Binding="{Binding IsSharedComponentsTabActive}" Value="True"/>                                                            </MultiDataTrigger.Conditions>                                                           
                           <Setter Property="Visibility" Value="Visible"/>
                           <Setter Property="IsPinned Value="True"/>                                                           
  2. Dilyan Traykov
    Dilyan Traykov avatar
    1068 posts

    Posted 09 Oct 2017 Link to this post

    Hello Dharmavaram,

    The reason why the IsPinned property is not respected in this scenario is that with the current implementation, the local value of the property which is set in code-behind takes precedence over the value provided in the style.

    To solve this, you can either use the approach suggested in this thread or set up a multi-binding for the IsPinned property.

    Please let me know if you find any of these approaches applicable.

    Dilyan Traykov
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top