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

RadPane Pin and unpin using MultiDataTriggerConditions not working

1 Answer 90 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Dharmavaram
Top achievements
Rank 1
Dharmavaram asked on 05 Oct 2017, 08:00 AM

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>

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 09 Oct 2017, 03:41 PM
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 you to write beautiful native mobile apps using a single shared C# codebase.
Tags
Docking
Asked by
Dharmavaram
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or