This community has moved to Discord. More details here: https://platform.uno/blog/uno-platform-online-community-move-to-stackoverflow-and-discord/
MartinZikmund on mazi
chore: Adjust nullability (compare)
MartinZikmund on mazi
chore: VisualTree managed weak … (compare)
ebariche on eb
ci: Add XAML trimming template … (compare)
jeromelaban on jela
chore: Adjust Skottie reference… chore: Fix indeterminate playba… (compare)
viewmodel.cs
Task MyMethodAsync() => Task.CompletedTask;
page.xaml:
Click="{x:Bind ViewModel.MyMethodAsync}"
page.g.cs
case 7:
this.obj7 = target.As<Microsoft.UI.Xaml.Controls.Button>();
this.obj7Click = (global::System.Object p0, global::Microsoft.UI.Xaml.RoutedEventArgs p1) =>
{
this.dataRoot.ViewModel.MyMethodAsync(); // warning CS4014
};
(target.As<Microsoft.UI.Xaml.Controls.Button>()).Click += obj7Click;
break;
result: warning CS4014: Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call.
Anyone knows what's the appropiate thing to do in this case?
@xperiandri, I know plenty of apps that are configured this way. On my windows machine I have Spotify, MSI Afterburner, Logitech G Hub, and Mouse Without Borders which all use this approach.
The app I'm developing will not require a GUI 99% of the time. Only when configuration is needed, so I don't want it hogging up space as a window in the taskbar.
The main functionality of the app checks to see if a user defined keyboard combination is being held down, then communicates that to other connected clients which then simulate a completely different (or same) user defined keyboard combination being held down.
I'm developing the app to work with Windows first (I'm most familiar with it and have all the keyboard stuff already working), but would like to add Mac support later and possibly Linux support.
Since most of the keyboard functionality already requires low level OS specific code, I'm trying to minimize having to redo the UI for each platform as well.
Also I don't want to use WinUI because I don't want to limit my user base just to Windows 10 on Windows platforms.
I'm side loading my WINUI3 app into another machine and when I run it its telling me to install the ".NET5 Desktop Runtime" which makes sense.
Now I'm planning to upload it to the Microsoft Store and I'm wondering if the user will have to manually install it as well or if the msix installer will take care of this dependency