RadPane Pin and unpin using MultiDataTriggerConditions not working

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

    Posted 05 Oct Link to this post

    Hi,

     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">
              <telerik:RadPane.Style>
      <Style TargetType="telerik:RadPane" BasedOn="{StaticResource {x:Type telerik:RadPane}}" >
                       <Setter Property="Visibility" Value="Hidden"/>                                                                     <Style.Triggers>
                                 <MultiDataTrigger>
                                     <MultiDataTrigger.Conditions>
                                        <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"/>                                                           
                                                            </MultiDataTrigger>                                                       
                                                        </Style.Triggers>
                                                    </Style>
                                                </telerik:RadPane.Style>
                                            </telerik:RadPane>
  2. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    602 posts

    Posted 09 Oct 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.

    Regards,
    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