Hello
I have UserControl1 which is a FormatButtonBar with format buttons AND I have UserControl2 which is a DataGrid with RichTextBoxes as cell editors.
I want to reuse UserControl1 at different places of my application.
This is what I want to achieve with pseudo code:
<UserControl1>
<ToggleButton Content="bold" IsChecked="{Binding IsTextBold}" Command="EditingCommands.ToggleBold" CommandTarget="{Binding ElementName=UserControl2.MyRichTextBox}" />
</UserControl1>
<UserControl2>
<DataGrid>
<DataGridCell x:Name="MyRichTextBox" />
</DataGrid>
</UserControl2>
Do you know how the binding must look like?