0

I have a view:

<ad:DockingManager x:Class="Proj.UI.View.DockingManagerView"
                           ... a lot of xmlns ...
                           ActiveContent="{Binding Path=ActiveDocument, Mode=TwoWay, Converter={StaticResource ActiveDocumentConverter}}">
    <ad:DockingManager.Resources>
        <ad:BoolToVisibilityConverter x:Key="ActiveDocumentConverter"/>
    </ad:DockingManager.Resources>
</ad:DockingManager>

This will not work.

Where should I move the resource to be available in the root element's attribute?

vinczemarton
  • 7,756
  • 6
  • 54
  • 86

1 Answers1

0

Move the converter(s) to the App.xaml - resource, so that you can have central repository of resource.

Take a look at the below link for some other aspect of sharing converters.

Should I declare converters in App.xaml or as a per-file resource?

Community
  • 1
  • 1
Kishore Kumar
  • 21,449
  • 13
  • 81
  • 113