i get this error if i try to inovke my ResourceDictionary from a Class Libary. I follow this Post but its dont works for me. I dont know what i do wrong.
Invalid URI: Invalid port specified.
My App.xaml:
<Application xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="JoinApp.App"> <Application.Resources> <ResourceDictionary Source="pack://application:,,,/App_Libary;component/9.Resource/test.xaml"/> </Application.Resources> </Application> My XAML:
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" NavigationPage.HasNavigationBar="false" ControlTemplate="{StaticResource BaseTemplate}" x:Class="App_Libary.Profile_Page"> <ContentView ControlTemplate="{StaticResource testcontrol}"/> </ContentPage> My ResourceDictionary:
<ResourceDictionary xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="App_Libary._9.Resource.test"> <ControlTemplate x:Key="testcontrol"> <Label Text="this is a test"/> </ControlTemplate> </ResourceDictionary> https://stackoverflow.com/questions/66616306/resourcedictionary-in-a-separate-assembly-dont-works-error-invalid-uri March 14, 2021 at 01:11AM
没有评论:
发表评论