enisn / UraniumUI

Uranium is a Free & Open-Source UI Kit for MAUI.
Apache License 2.0
1.05k stars 121 forks source link

When adding a TabView getting an error #686

Open amnk2015 opened 1 week ago

amnk2015 commented 1 week ago

I am trying to add a tab inside my page. this is my code. I am getting this error. Please help me to fix this.

Error : System.Reflection.TargetInvocationException: 'Exception has been thrown by the target of an invocation.'

`<?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="DriveMeSL.View.HomePage" xmlns:material="http://schemas.enisn-projects.io/dotnet/maui/uraniumui/material" xmlns:input="clr-namespace:InputKit.Shared.Controls;assembly=InputKit.Maui" xmlns:validation="clr-namespace:InputKit.Shared.Validations;assembly=InputKit.Maui" xmlns:m="clr-namespace:UraniumUI.Icons.MaterialSymbols;assembly=UraniumUI.Icons.MaterialSymbols">

enisn commented 1 week ago

Hi, have you configured UseUraniumUI() and UseUraniumUIMaterial() in the MauiProgram.cs ?

BTW, do you add tabs dynamically at runtime? If yes can you share how do you add?