Questions tagged [maui-windows]

148 questions
1
vote
0 answers

Handling payment page redirects in a Windows Blazor Maui application

My Blazor maui application calls an Api and gets a redirect url to a payment page. Once the payment is complete, the payment page will redirect to testapp://payment-success . The issue is that I am unsure how to re-open the same instance of the…
03v
  • 11
  • 2
1
vote
1 answer

Maximize does not expand content to the top of the window [Windows MAUI]

I am trying to get a totally maximized Window with .NET Maui 8.0.0preview4, but an empty bar remains where the title-bar used to be. For the example, I've ammended the Maui template by making the "Click me" button toggle the window's maximized…
1
vote
1 answer

What is the process to create a .exe file for a .NET MAUI Blazor application?

I have made a .NET MAUI application using Blazor. And I want to export my application to share with my client. So I want to give them an .exe file with the app to run in windows. How can I do it? I'm using VS 22 I tried to publish the app but the…
Tincho-dev
  • 13
  • 3
1
vote
0 answers

Add ContextMenu on right click for tray icon

I have implemented system tray icon in Windows using examples provided here. However this example is missing implementation of context menu on mouse right click. Is there some way to add features mentioned above to existing example? Here is system…
10101
  • 2,232
  • 3
  • 26
  • 66
1
vote
0 answers

Launch MAUI application from another application with response

I am trying to launch MAUI app-A from MAUI app-B in Windows. After launching app-A, I want that app-A will send in response some API-Object to control app-A from app-B. I need to control more than one instance of App-A from App-B, so that each…
YChabany
  • 11
  • 1
1
vote
1 answer

How to register views in a multi-window MAUI application?

How do I correctly register a view that is used multiple times to open multiple windows? Currently, I can only open a window that uses a view once. The second time I attempt to open another window using the same view, I get this…
1
vote
1 answer

.NET MAUI FilePicker not working when requestedExecutionLevel set to requireAdministrator

I am trying to build a .NET MAUI App for Windows platform which requires admin permissions for working. For launching the app in admin, I added the following lines to the app.manifest
Shantanu Shinde
  • 932
  • 3
  • 23
  • 48
1
vote
2 answers

Saving files in MAUI

I'm writing a text editor in MAUI and encountered a problem that when executing this code (on Windows 10), the error "Exception raised: "System.UnauthorizedAccessException" in System.Private.CoreLib.dll". Tried googling how to allow the application…
1
vote
1 answer

MAUI - Calculate collection view grid columns using available width

I, i am exploring .NET MAUI, and trying to sample some things, and one thing i came across was, how can i calculate a collection view grid column number, to fit the available space. I managed to get it working on some way, but only discovered how to…
1
vote
0 answers

MAUI: How to draw image from byte[] on MAUI

I'm try to use maui develop an application now, but I meet a problem: MAUI document just offers the way to draw the image from a file, link is here:…
Cade Huang
  • 31
  • 2
1
vote
1 answer

Binding IsVisible in Xaml Maui not working

I am trying to make a picker be visible on condition from viewmodel and binding in xaml instead of hard code on the code behind. But it is not working. The code for xaml is:
Muheeb
  • 21
  • 4
1
vote
1 answer

Get the mouse cursor coordinates in .NET Maui on Image click

I'm developing a software in which I need to be able to get the x and y coordinates of the mouse cursor when the user clicks on an image. I know you could do this in visual forms with pictureBoxes, but is it possible in Maui? I'm actively looking…
1
vote
0 answers

How add fonts in MauiAppBuilder Function without adding in ConfigureFonts in the App MauiProgram class

I'm creating a custom Toolkit with some custom controls and similar. But some controls use instead images icons from Fonts like "materialdesignicons-webfont.ttf". This fonts works if I add in ConfigureFont the alias of the font and the name as I…
1
vote
1 answer

MAUI on Windows: Hide or cover the grey fake title bar

While looking for ways to solve the problem of MAUI applications having a grey title bar on Windows, I managed to make the actual, accent-color-respecting title bar reappear by adding a Win32 subclass that intercepts WM_NCCALCIZE and passes it to…
Medinoc
  • 6,577
  • 20
  • 42
1
vote
0 answers

Maui.Devices.DeviceDisplay.MainDisplayInfo

I need to list all the screens on my Windows PC, not only the main display or current screen. The reason; I would like my user to be able to display a message window on a screen of their choice and not only on the main screen. The below code works,…
user251395
  • 73
  • 7
1 2
3
9 10