Hi Bill,
Unfortunately, this isn't yet supported. Until now, we needed to do a class-based approach to support the MergedWith approach. With the more traditional XAML Source approach, you need a path to the XAML file itself, which we have not yet exposed through the DLLs (or in the product distribution).
As of the latest Xamarin.Forms 3.1 release, MergedWith still works and I have attached a demo to verify. If you have any trouble,
open a support ticket and we'll investigate further.
Here's the relevant code:
App.xaml:
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
xmlns:dataGrid
=
"clr-namespace:Telerik.XamarinForms.DataGrid;assembly=Telerik.XamarinForms.DataGrid"
xmlns:dataControls
=
"clr-namespace:Telerik.XamarinForms.DataControls;assembly=Telerik.XamarinForms.DataControls"
xmlns:chart
=
"clr-namespace:Telerik.XamarinForms.Chart;assembly=Telerik.XamarinForms.Chart"
xmlns:primitives
=
"clr-namespace:Telerik.XamarinForms.Primitives;assembly=Telerik.XamarinForms.Primitives"
xmlns:input
=
"clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
xmlns:conversationalUi
=
"clr-namespace:Telerik.XamarinForms.ConversationalUI;assembly=Telerik.XamarinForms.ConversationalUI"
xmlns:common
=
"clr-namespace:Telerik.XamarinForms.Common;assembly=Telerik.XamarinForms.Common"
x:Class
=
"ResourceMergingTest.Portable.App"
>
<
Application.Resources
>
<
ResourceDictionary
>
<
ResourceDictionary.MergedDictionaries
>
<
ResourceDictionary
MergedWith
=
"common:BlueResources"
/>
<
ResourceDictionary
MergedWith
=
"input:TelerikThemeStyles"
/>
<
ResourceDictionary
MergedWith
=
"primitives:TelerikThemeStyles"
/>
<
ResourceDictionary
MergedWith
=
"chart:TelerikThemeStyles"
/>
<
ResourceDictionary
MergedWith
=
"dataControls:TelerikThemeStyles"
/>
<
ResourceDictionary
MergedWith
=
"dataGrid:TelerikThemeStyles"
/>
<
ResourceDictionary
MergedWith
=
"conversationalUi:TelerikThemeStyles"
/>
</
ResourceDictionary.MergedDictionaries
>
</
ResourceDictionary
>
</
Application.Resources
>
</
Application
>
MainPage:
Feature Request
However, to prepare for when they do remove the API from the product I have submitted a feature request to the developers.
Theming: MergedWith is deprecated, provide Source path for ResourceDictionaries (
if you'd like to be notified when the status changes, click the "Follow" button).
Thank you for your feedback.
Regards,
Lance | Tech Support Engineer, Sr.
Progress Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items