This question is locked. New answers and comments are not allowed.
Hi folks!
I'm following the example with Menu & DataBinding:
It works fine for Header, for CommandParameter but not for Command.
When I step into the sources of ContainerBinding, I can see that the Apply(FrameworkElement container) is called, the container.SetBinding is executed, this.Binding is alright, property is not null, container is my RadMenuItem. But altough everything looks correct, when it's done on Command property, the property stays at null after whereas on CommandParameter, it's successfull!
Am I missing something?
Best regards,
I'm following the example with Menu & DataBinding:
<
telerik:ContainerBinding
PropertyName
=
"Header"
Binding
=
"{Binding Converter={StaticResource PnlWorkflowStatusToLabelConverter}}"
/>
<
telerik:ContainerBinding
PropertyName
=
"Command"
Binding
=
"{Binding ElementName=LayoutRoot, Path=DataContext.GoToStep, Converter={StaticResource DebugConverter}, Mode=OneWay}"
/>
<
telerik:ContainerBinding
PropertyName
=
"CommandParameter"
Binding
=
"{Binding Converter={StaticResource DebugConverter}}"
/>
<
telerik:RadMenuItem
Header
=
"Go to step:"
ItemsSource
=
"{Binding Path=AvailableStatus}"
>
<
telerik:RadMenuItem.ItemTemplate
>
<
telerik:HierarchicalDataTemplate
telerik:ContainerBinding.ContainerBindings
=
"{StaticResource StatusContainerBindings}"
>
<
TextBlock
Text
=
"{Binding}"
/>
</
telerik:HierarchicalDataTemplate
>
</
telerik:RadMenuItem.ItemTemplate
>
</
telerik:RadMenuItem
>
When I step into the sources of ContainerBinding, I can see that the Apply(FrameworkElement container) is called, the container.SetBinding is executed, this.Binding is alright, property is not null, container is my RadMenuItem. But altough everything looks correct, when it's done on Command property, the property stays at null after whereas on CommandParameter, it's successfull!
Am I missing something?
Best regards,