ResourceDictionary MergedWith does not propagate when used in App.xaml

Hi!

When I use MergedWith in App.xaml, imported values are only available in this (App.xaml) file, but they aren't propagated to all ContentPages. This means I have to apply MergedWith to ResoruceDictionaries on all pages... Is it intentional or a bug?

For example:

<?xml version="1.0" encoding="utf-8" ?>
<Application xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:shared="clr-namespace:NameASpace;assembly=NameASpace"
             x:Class="NameASpace.App">
  <Application.Resources>
    <ResourceDictionary MergedWith="shared:SharedDictionary">
            <Style x:Key="BaseLabel" TargetType="Label">
                <Setter Property="TextColor" Value="{StaticResource SharedColor}" /> <!-- SharedColor is visible only in this file -->
         </Style>   
    </ResourceDictionary>
...
Sign In or Register to comment.