skip to Main Content

Visual Studio Code – .NET MAUI How to make a proper Gridlayout in Collectionview with Header?

I'm trying to build a table in .NET MAUI based on a Grid Layout. This is the code: <CollectionView ItemsSource="{Binding digitalInputs}"> <CollectionView.Header> <Grid ColumnDefinitions="*,*,*,*"> <Label Text="Name" Grid.Column="0"/> <Label Text="Typ" Grid.Column="1"/> <Label Text="Status" Grid.Column="2"/> <Label Text="Aktiv" Grid.Column="3"/> </Grid> </CollectionView.Header> <CollectionView.ItemTemplate> <DataTemplate…

VIEW QUESTION

Visual Studio Code – C# MAUI Async function catches for Windows but not for Android

I have the following code: public partial class MetricsPage : ContentPage { public MetricsPage() { InitializeComponent(); using var client = new HttpClient(); client.BaseAddress = new Uri("http://example.com"); client.Timeout = new TimeSpan(0, 0, 3); client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Api-Key", "<my_key>"); client.DefaultRequestHeaders.Accept.Add( new MediaTypeWithQualityHeaderValue("application/json"));…

VIEW QUESTION

Visual Studio Code – MAUI Unable to use string resource file (resx) in XAML

I'm using Visual Studio 17.4.4 on Windows. Everything I've read says this should be working, but I get: XamlC error XFC0000: Cannot resolve type "MyApp.Resources.Localization:AppStrings" What am I missing? Here's the xaml: <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="MyApp.Resources.Localization" xmlns:views="clr-namespace:Jetty_Mobile.Views" x:Name="thisPage" x:Class="MyApp.MainPage"> <VerticalStackLayout…

VIEW QUESTION
Back To Top
Search