Questions tagged [uno-platform]
Uno is an open-source WinUI/UWP Bridge for iOS, Android, WebAssembly, macOS and Linux
386
questions
0
votes
0
answers
30
views
Platform specific XAML not working for wasm
Included wasm in the page namespaces like this:
xmlns:wasm="http://uno.ui/wasm"
and in the ignorable like this:
mc:Ignorable="d wasm"
then included an image that I only want ...
0
votes
1
answer
29
views
How do I navigate to a web url from Uno?
I have a MenuFlyoutItem that calls a command. From the OnCommand method I would like to open a browser window based on a provided URL. How do I do that?
0
votes
1
answer
50
views
Multiple Windows with UNO platform
I am trying to create application with multiple windows using UNO platform. Does UNO support multiple windows? If so, can someone please point me to webpage showing how to do that?
0
votes
0
answers
31
views
How to wire up MSAL with the newest Uno platform
trying out the newest uno platform 4.1 and I wanted to use the MSAL extensions.
In the startup the template added
.UseAuthentication(auth =>
auth.AddMsal(name: "MsalAuthentication")
...
0
votes
0
answers
45
views
setLSActiveProject failed: Error: Starting server failed
Building an app for Android using MAUI for my app Conference Live Captioning. So I decided to try the Uno Platform VS Code extension. It gave me a few errors that I was able to resolve by googling ...
-1
votes
2
answers
184
views
How to migrate my WPF application to linux based application through UNO Platform?
I want to port my existing WPF application to the Uno Platform for the Linux operating system. What are the step-by-step processes I need to follow for this? Which APIs are incompatible, and how can I ...
0
votes
2
answers
83
views
How do I navigate to a page within a TabViewItem using Uno Platform's NavigateViewAsync?
I have a NavigationView that displays a dynamically generated tree of items, and when an item is clicked, it's supposed to open a new tab. However, instead of navigating inside the TabViewItem's ...
2
votes
2
answers
246
views
WinUi MVVM, handle events from model on UI thread
To start with I'm from a WPF world where I'm used to using MVVM, however my knowledge isn't up to date with regards to the new .net API and WinUI.
I'm currently trying to create a new POC using UNO ...
0
votes
0
answers
23
views
Can't use setHtmlAttribute with Uno.Winui
I am needing to use this.setHtmlAttribute. I have installed Uno.WinUi.Runtime.Webassembly as it said at this link: Embedding Existing JavaScript Components Into Uno-WASM, but when I try to ...
0
votes
0
answers
95
views
Uno Binding programmatically in c#
Does anyone know how to do binding for Uno programmatically in c#?
I found some sample code from:
(https://platform.uno/docs/articles/uno-development/Uno-UI-xBind-architecture.html)
which has:
c18....
0
votes
0
answers
247
views
How to display gpkg(geopackage) in c#/ .net?
I am wanting to display a geopackage file in a .net uno platform project. (Because it's uno platform, nuget packages might work differently, that's the way it seems according to this: How to add third ...
0
votes
1
answer
96
views
Windows Community Toolkit AttachedCardShadow and AttachedDropShadow is not working
When using the attachedDropShadow, it builds and runs with no errors, but the shadows dont work.
When using the AttachedCardShadow, it doesnt build and complains about the type being not found.
The ...
0
votes
1
answer
120
views
Uno Platform RemoteControl - The Uno.WinUI.RemoteControl or Uno.UI.RemoteControl package has not been restored yet
I have been struggling to get the RemoteControl to consistently work for my WebAssembly head. I created the project using the built-in Uno project wizard. I am running on the following platforms:
...
0
votes
1
answer
98
views
How to scale the spacing between controls in a stack panel to fit a window?
I am wanting to create a horizontal stackpanel (or something similar) that will scale the spacing of different sized controls so that the spacing between them is the same but they span the entire ...
1
vote
0
answers
370
views
Getting an error on Nuget Pack when updating to latest Uno Platform
I'm updating my library to the latest Uno version. When executing a nuget pack command, I get the following:
NU1012: Some included files are included under TFMs which are missing a platform version: ...
2
votes
1
answer
166
views
Does uno-platform convert xaml to html or to c# when building for web with wasm?
Uno platform is able to create web apps using c# and xaml. I was wondering how the platform is able to render xaml on the web.
In their documentation (at https://platform.uno/docs/articles/how-uno-...
-3
votes
1
answer
151
views
Gold-standard Uno + ReactiveUI starter project on NET 7.0 that works
This is day 2 and I am trying to get a working starter app with Reactive UI and the Uno platform.
I have been struggling with myriads of compatibility issues, runtime issues, and installation issues. ...
1
vote
1
answer
138
views
Is there a Uno-Platform head for a WinUI(xaml) and net7.0 desktop linux based app?
These are all the heads created when you run the following general command to create a new uno app "MyApp":
dotnet new unoapp -o MyApp --vscode
MyApp
MyApp.Base
MyApp.Mobile
MyApp.Server
...
0
votes
0
answers
51
views
Visual Studio Blend for Uno 4.x Projects
When I launch Visual Studio Blend 17.4.3 and open a just-created Uno project (.NET 7) then open a XAML document that's in the solution (MainPage.xaml), I see XAML in an editor--but I do not see any ...
0
votes
1
answer
98
views
Mouse Lag in UNO Wpf/Windows
Im trying to build a high performance app on UNO platform (WPF/Windows/Wasm) that allows the user to draw primitive shapes (lines, rectanges, etc) Since it will have snapping to points, and showing ...
0
votes
0
answers
66
views
Adding "Uno.Cupertino" or "Uno.Material" to an Uno-Platform project make the project not compile. Even a blank project
After adding "Uno.Cupertino" or "Uno.Material" to any Uno-Platform project even a newly created blank project, the project no longer builds and throws tons of build errors.
Here ...
0
votes
0
answers
48
views
Trying to run a published Uno Hosted WASM app gives a 404 when running it
I just tried out the Uno platform and I have come across a roadblock: When I create a project with a Hosted head, i.e., hosting the Wasm app in Asp.net Core, when I run the Server application and open ...
1
vote
0
answers
85
views
Sharing platform specific code - Uno platform
I'm studying Uno platform, and I would like to write my platform specific code in separate assemblies without using #if statements. I googled this link where they suggest using partial classes. Works ...
0
votes
1
answer
102
views
Uno Platform C# Create Material Card
I am using the Uno Platform and trying to create a Material Card through C#. I have been able to find a number of examples of a Card created in XAML but nothing in C#.
My current code is below to ...
0
votes
1
answer
199
views
Difference between oauth2/v2 vs oidc Spotify API
i'm currently trying to connect via UNO-Plattform sample to the Spotify API.
https://github.com/unoplatform/Uno.Samples/blob/master/UI/Authentication.OidcDemo/Authentication.OidcDemo/Authentication....
0
votes
0
answers
223
views
UWP Application deployment and package signing for distribution
We have a UWP application developed using winui3/winappsdk build on top of Uno Platform which needs to be packaged and distributed to customers. while publishing from visual studio it requires a ...
0
votes
1
answer
305
views
Extending BindableBase to be UI thread safe for WinUI3/Uno Platform
I'm currently using the BindableBase implementation from the quiz game example recommended in the "Databinding in depth" MSDN article. Since I needed to be able to update the properties from ...
1
vote
0
answers
59
views
Uno Platform: Error building UWP project when .Net Native toolchain is enabled
I'm trying to create a release build for my UWP project with .net native toolchain enabled and I get the following error
1> Process execution statistics (all times in milliseconds) (TaskId:226)
1&...
0
votes
1
answer
139
views
Is TreeView supported on Uno Platform?
I have a WinUI3 app running on Uno Platform and I'm trying to implement a TreeView.
I've tried several examples that I've found on the internet but no one has worked well. The only one that has ...
1
vote
1
answer
1k
views
Visual Studio 2022 17.3.6 Xaml Designer not showing up for UNO platform
I've followed Get Started on Visual Studio 2022 UNO platform guide. Then I've created new app with the following platforms:
When I try to open Xaml designer for MainPage.xaml - is is not appearing:
...
0
votes
0
answers
212
views
How to use TreeView in WinUI Uno Platform app
I'm struggling to implement a WinUI3 TreeView in a WinUI3 Uno Platform app.
The problem is that despite using the code provided by the Uno Platform playground or the winui3 gallery apps, the frame ...
0
votes
1
answer
263
views
WMC9999 This member 'Resources' has more than one item, use the Items property
Well, this is my first project with WinUI and Uno platform. I'm working on a Desktop app with WinUI and want to grant it backwards compatibility with Uno, so this is why I'm sticking to Uno project ...
1
vote
1
answer
116
views
WINUI3 Uno Platform Microsoft Store runFullTrust warning
I have been in the process of migrating one of my project from a standard UWP project to an Uno platform based project to allow me a wider variety of devices to publish to. After overcoming a number ...
0
votes
2
answers
151
views
Uno Platform Remove Right Spacing from NavigationView
I'm having an issue with NavigationView control, where it doesn't align with the center and keeps weird spacing at the right.
My code for NavigationView is:
<NavigationView
...
0
votes
1
answer
111
views
Uno Platform Windows TextBox treats Tab key as Text instead of giving focus to next control
I'm an absolute nebie in Uno Platform and did first steps to refresh my XAML knowledge.
Based on the default multiplatform Uno template I built a page where I bound a TextBox to a string property.
The ...
2
votes
0
answers
273
views
UNO platform Skia+GTK doesn't start
I've an app made with uno platform, that works without problems when building for UWP.
But when building for Skia+GTK and running it on Windows it shows the following in the console log.
fail: Windows....
0
votes
1
answer
49
views
UnoPlatoform Desktop App DataGrid Template Column with HyperlinkButton Command Binding issue using MVVM
We are developing Desktop application using UnoPlatform in which we are using DataGrid from CommunityToolkit.WinUI.UI.Controls for displaying some data.
So, my requirement is to have HyperlinkButton ...
0
votes
0
answers
87
views
Uno Platform Winui3: Unathorized Error when calling External API using user token generated by MSAL in Uno Platform Desktop APP(UWP),
we are developing a Uno Platform desktop application with Winui3, we have a requirement to call one of the api hosted in Azure App service.
we have client App registered in AAD [Multitenant enabled] ...
0
votes
1
answer
121
views
Uno Platform Missing emulator list in debug targets for SDK style projects
Having
latest Uno templates,
all green uno-check,
latest VS 2022 preview (17.4.0 Preview 1.0).
Creating new Uno app (either via commandline or selecting from the new project wizard) including ...
2
votes
0
answers
311
views
How to get XAML hot reload working on Uno Platform?
I've started a new Uno Platform project with the dotnet new unoapp template and have run into issues with hot reload - where XAML/C# changes are meant to be reflected in the application without ...
0
votes
1
answer
187
views
Uno platform: How to implement custom control on Webassembly
Having multi-target project in Uno Platform, I would like to create Wasm specific control (HtmlView). I have found some hints this is just <div> HTML content on Wasm and I should derive from ...
0
votes
1
answer
276
views
Uno Platform UI not updating Loader when Observable property is updated ViewModel
I am developing a client using Uno Platform and WINUI3. I have small requirement to show the loader when some external API call is being made asynchronously for getting data. In fact i need this ...
1
vote
1
answer
986
views
Are `Interaction.Behaviors` supposed to wok in WinUI 3 DataTemplated objects?
On Uno Platform project, using several data templates for TabViewItem, TreeViewItem and ListViewItem, trying to fire commands via various events, like ItemInvoked (TreeView), DoubleTapped (ListView), ...
1
vote
1
answer
258
views
Uno Platform WASM URL routing
I'm trying to write a simple blog engine in Uno WASM. I'd need to retrive the URL string to process it and route the request to a page or a method, but cannot find any documentation on this topic.
I'm ...
0
votes
1
answer
92
views
Uno Plaform - WebAssembly-specific sources
Are the WebAssembly platform specific sources available somewhere?
Having some weird exceptions/behavior on wasm head when using HttpClient/HttpHandler (correctly working on standard implemenations on ...
1
vote
2
answers
99
views
Uno Platform: Shared Assets on Android vs iOS - issues with Android
I am working on creating cross-platform apps (iOS and Android) that will functionally match a web application that I have in production at https://www.hatchpedia.com.
The application allows users to ...
1
vote
1
answer
225
views
Cannot create GrpcChannel in Uno Platform WebAssembly (System.NullReferenceException)
I am trying to do a sample of Uno Platform using gRPC-Web.
Therefore I got inspired by the content provided by this article. I followed the instructions of the article and created a BlazorApp which ...
2
votes
0
answers
365
views
Exception from HRESULT: 0x80040904
While working with UNO Plataform, at XAML mainpage, got the error "Exception from HRESULT: 0x80040904".
No restart VS, rebuild solution or other things worked.
Solution:
Was because of ...
-3
votes
1
answer
73
views
How to add an additional Uno head to an existing Uno solution?
I can only find commands how to create and build Uno solutions from scratch but nowhere how to add - for example an additional mobile head ? Neither Visual Studio templates offer it on such ...
1
vote
0
answers
76
views
DataGrid not showing in .Droid (Uno-platform)
I made DataGrid that correctly displays data in .Wasm and .UWP, but on .Droid app it doesn't show anything (header or body). The calling to my API works and data is correctly sent to .Droid. I store ...