Questions tagged [maui-windows]

148 questions
1
vote
1 answer

Does MAUI has collection controls like the GridView in UWP that can auto move the position of item?

How UWP's GridView auto performace The data source: IEnumerable. In PC, when the window's width is 1000,the column is 10; when the window's width is 500,the column will be 5; MAUI's CollectionView CollectionView uses the ItemsLayout property to set…
1
vote
2 answers

How do I change app shell selected tab colour, MAUI?

I am building a windows app using .NET MAUI and I have a flyout shell with some tabs. I would like to change the colour of the selected item, specifically the little blue bar that shows at the left side of a selected item. shown here I can not find…
Andrew
  • 15
  • 4
1
vote
1 answer

.NET MAUI How to set CollectionView items Padding to 0

I can't set padding to 0 in items of CollectionView in MAUI. In this example, I use Data and Data[i].Color as follow:
lsyanling
  • 11
  • 3
1
vote
1 answer

How can I add an extra label/slide button to a FlyoutItem in MAUI?

I encountered an UI issue when developing an app using MAUI flyoutItem. According to the official doc, it looks like I can only define the flyoutItem appearance by setting two…
Chaoran
  • 11
  • 1
1
vote
2 answers

Share.RequestAsync() doesn't work on .Net MAUI in Windows 10

On my .Net MAUI app, I need to use Microsoft.Maui.ApplicationModel.DataTransfer.Share to share some text. I followed this documentation: https://learn.microsoft.com/en-us/dotnet/maui/platform-integration/data/share?view=net-maui-7.0&tabs=windows And…
David Shochet
  • 5,035
  • 11
  • 57
  • 105
1
vote
1 answer

Is there a way to have a Window object be always on top of another Window object? (Modal Dialog)

public void ShowDialog() { Window dialogWindow = new Window(new SampleDialog()); Application.Current.OpenWindow(dialogWindow); // dialogWindow should always be on top of MainPage Window } I will be needing a modal dialog to be on top…
1
vote
1 answer

Right to left issue in .Net Maui when assigning the current culture to arabic

I'm facing a strange issue when I assign the Arabic language as a culture by writing this line, the close, minimize and maximize buttons appear on the right corner but you can't click on them because they are actually on the left…
Shehab
  • 431
  • 2
  • 10
1
vote
1 answer

Problem with AppWindow.Title and Unicode from a Maui application

I am trying to set the Window title of a Maui application to be a value containing Unicode (say Japanese) characters. The Japanese characters (and other unicode characters) appear as '?' I set the title as follows protected override Window…
mlg
  • 101
  • 2
  • 8
1
vote
1 answer

Not able to Resize an IImage in .NET MaUI, "System.ObjectDisposedException: Cannot access a disposed object. Object name: Android.Graphics.Bitmap"

Purpose: I am capturing an image with camera using MediaPicker, and then trying to resize the image to reduce it's size. Then converting this resized image to base64 string and storing it in mongodb finally. Issue: While converting to base64 using…
Arup
  • 155
  • 11
1
vote
1 answer

How to make MAUI app run on windows startup

I'm new to MAUI and I'm making an application where I need to make the app run on startup on windows. I did this before on Winform/WPF using things like registry records, adding a shortcut to shell:startup, or even from the installer file (like Inno…
1
vote
1 answer

How to use WebView.Reload() within SizeChanged event in .NET MAUI?

I need to refresh webView control when the ui size changed. I used SizeChanged event in some controls like Border, WebView, etc SizeChanged event. But I got this system.invalidoperationexception 'a method was called at an unexpected time error. I…
shalom
  • 191
  • 1
  • 1
  • 10
1
vote
1 answer

How to show PDF from .net maui app on Windows

I am just trying to show a PDF file from my .NET MAUI application on Windows and it is giving me the error below. "System.ComponentModel.Win32Exception: 'An error occurred trying to start process 'C:\Users\Documents\helpfile.pdf' with…
CFos
  • 33
  • 5
1
vote
1 answer

set FlyoutLayoutBehavior to FlyoutLayoutBehavior.SplitOnLandscape on Shell page

I am trying to create a desktop application using .net MAUI. I am planning to Shell class for my main page. When I am trying to add flyout behavior to FlyoutLayoutBehavior.SplitOnLandscape, I cannot find any setting for that in Shell class. I can…
1
vote
1 answer

.NET MAUI Custom SearchHandler not applying ItemTemplate

I've been trying to create a custom DataTemplate for ItemSource with the help of .NET MAUI Shell search documentation, but nor the XAML and C# code are not applying the custom template. I am running the code on winUI. The code I've been trying to…
1
vote
0 answers

PushAsync kills SizeChanged event on ContentPage

The problem I find is that the push/pop navigation pattern seems to destroy my page’s SizeChanged event. Let’s go over the details. The following are the important bits of my example TesterPage which is the one with SizeChanged event. THIS ONLY…
John Mc
  • 212
  • 2
  • 16