Hi,
I have a problem with bindning command (which is in parent ViewModel) to RadRibbonBackstageItem.
<UserControl x:Class="Project.TelerikEditor"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:telerikViewModel ="clr-namespace:Project.Modules.TelerikEditor.ViewModel"
xmlns:optionsViewModel="clr-namespace:Project.Modules.Options.ViewModel"
d:DesignHeight="300"
d:DesignWidth="900"
mc:Ignorable="d" >
<UserControl.DataContext>
<telerikViewModel:TelerikEditorViewModel/>
</UserControl.DataContext>
...........
...........
...........
<telerik:RadRibbonBackstageItem Header="Options"
Icon="{telerik:IconResource IconRelativePath=16/new.png,
IconSources={StaticResource IconSources}}"
DataContext="{Binding DataContext, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Mode=TwoWay}"
Command="{Binding OptionsWindowCommand }""
IsSelectable="false"
>
The Command don't pass to ViewModel.
Any suggestion?