Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ResourceDictionary Source and Prism #66

Open
matteopiccioni opened this issue Oct 25, 2018 · 1 comment
Open

ResourceDictionary Source and Prism #66

matteopiccioni opened this issue Oct 25, 2018 · 1 comment

Comments

@matteopiccioni
Copy link

Hello,
I have a Prism xamarin.form project
My App.xaml is
<?xml version="1.0" encoding="utf-8"?> <prism:PrismApplication xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:prism="clr-namespace:Prism.Unity;assembly=Prism.Unity.Forms" x:Class="blablabla.bla"> <Application.Resources> <ResourceDictionary Source="Styles/Global.xaml" /> </Application.Resources> </prism:PrismApplication>

My Global.xaml is located in the right directory (without LiveXAML all is working great),
but when I install LiveXAML (2.1.44) I have the following error while compiling:
Error: Position 4:25. Resource 'Styles/Global.xaml' not found. (blablabla app)

Thanks

@matteopiccioni
Copy link
Author

Ok, following the other ticket I solve using:

`
xmlns:styles="clr-namespace:blablabla.Styles"
...
...

 <Application.Resources>
    <ResourceDictionary MergedWith="styles:Global">   
</ResourceDictionary>
</Application.Resources>

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant