Is there a way to set a global contentloader?

Feb 24, 2014 at 2:31 PM
I have a NinjectLoader that I want to use as the default instead of the DefaultContentLoader.
Guess I can always do:
<mui:ModernTab Layout="List" ContentLoader="{x:Static common:NinjectLoader.Loader}">
But it is !nice
Feb 24, 2014 at 3:29 PM
Edited Feb 24, 2014 at 3:39 PM
Set a default style. Do this in your app.xaml (taken from the MEF sample)
<Style TargetType="mui:ModernFrame">
    <Setter Property="ContentLoader" Value="{DynamicResource MEFContentLoader}" />
</Style>
<Style TargetType="mui:ModernTab">
    <Setter Property="ContentLoader" Value="{DynamicResource MEFContentLoader}" />
</Style>
<Style TargetType="v:MainWindow">
    <Setter Property="ContentLoader" Value="{DynamicResource MEFContentLoader}" />
</Style>
Marked as answer by Johan20D on 2/25/2014 at 3:30 PM
Feb 24, 2014 at 4:08 PM
Nice, ty sir!