Questions tagged [maui-windows]

148 questions
1
vote
1 answer

Custom Maui Handler control creates handler when used in xaml but when created with c# does not create the handler

The repro is a small example based on the maui template. I created a button called MyButtonView and changed the MainPage to consume that control. The button is created and shows correctly on the page, but when I try to create just the control as…
Curtis-C
  • 133
  • 8
1
vote
1 answer

Frame size not applying? - XAML MAUI

I am trying to make a frame a specific size but the frame seems to only match the size with components inside of the frame. I tried finding solutions but couldn't find anything, perhaps I am searching for the wrong things. The XAML:
DeLuxe
  • 41
  • 6
1
vote
2 answers

Horizontal Scroll is not working in MAUI. What am I missing or is this a bug?

If I make a brand new MAUI desktop app (using Visual Studio Version 17.3.0 Preview 4.0 or previous), I am unable to get horizontalscrollbar to show in ScrollView. If you've messed with MAUI, you know that when you make a new project, you get some…
mattica
  • 357
  • 3
  • 8
1
vote
1 answer

Maui media picker on Windows Platform error

I have created a very basic MauiApp because I wanted to try the MediaPicker on the Windows Platform. Thus I copied the code from the official documentation and tried to run my application However if I add to the…
Tajinder Singh
  • 1,361
  • 2
  • 14
  • 26
1
vote
2 answers

.net maui custom control handlers, how to convert Content between virtualview and platformview

I am trying to create a custom Maui Handler for WinUI3 NavigationView. I have defined the mapping from the virtualView to the PlatformView but i cant seem to convert the Virtual view Content to the PlatformView Content, An example would be I have a…
Curtis-C
  • 133
  • 8
1
vote
1 answer

how to have the color of the windows theme MAUI

I want the main button to be of a color derived from the windows theme. for example if the windows theme is red my buttons are the same color Thank you
Emma
  • 431
  • 6
  • 19
1
vote
1 answer

How to start a MAUI Windows (desktop) app from e.g. explorer?

I am new to MAUI (who aren't?). Built the template app which works fine when launched by F5 from VS2022 (17.2.0 Preview 3.0 with MAUI 6.0.300-rc.1). How to launch from explorer like any other .exe? (I don't find much on web yet, related to…
EuroEager
  • 167
  • 1
  • 2
  • 11
1
vote
0 answers

ControlTemplate Content Not Resizing

I am trying to achieve a templated view on my pages which displays a standard header and footer where my content goes in the middle. To achieve this I decided to use a ControlTemplate and reference this on each page. In my resource dictionary I have…
Chris Boot
  • 97
  • 1
  • 10
1
vote
1 answer

Changing visibility of VisualElement element doesn't cause Maui Windows app to redraw immediately

I am trying to set the visibility of a Frame after performing an async Task. bool condition = await DoWorkAsync(); if (condition) { Dispatcher.Dispatch(() => { myFrame.IsVisible = true; }); } When I run my app, the debugger tells…
Dave
  • 3,676
  • 4
  • 28
  • 39
0
votes
1 answer

.NET MAUI msbuild fails when there is a library dependency

If i run the regular MSbuild msbuild /restore SmartcardMAUITest.csproj /restore /t:Publish /p:TargetFramework=net7.0-windows10.0.19041.0 /p:configuration=release (I have to use msbuild instead of dotnet publish due to legacy references). it works…
Igal Flegmann
  • 582
  • 1
  • 8
  • 19
0
votes
2 answers

How to style a property of a custom control in .net MAUI which derives a button?

I created a simple custom control by deriving a button. The aim was to add a hover functionality when the user hover the mouse over the button, And yes - I realize this won't work with touch devices which I'm ok with it. Next I wanted to style my…
G.Y
  • 6,042
  • 2
  • 37
  • 54
0
votes
0 answers

ZXing qr code scanner on windows platform

How can we implement the qr code scanner on windows platform in .net maui. I've implemented it and it is working well on Ios and Android but on windows platform when we press the scan button it says it is not supported. Any solution?
0
votes
0 answers

MAUI: Telerik RadEntry Style for Disabled is Not Working

I'm trying to apply styles to a disabled RadEntry in my current project but the styles a not working. Is anyone here experiencing this? Below is my code.