Giter Club home page Giter Club logo

uno.samples's Introduction

Uno Platform Samples

This repository provides simple, to-the-point code samples for the Uno Platform.

Pixel-Perfect. Multi-Platform. C# & Windows XAML. Today.

Twitter Followers PRs Welcome

What is the Uno Platform?

The Uno Platform is an Open-source platform for building single codebase native mobile, web, desktop, and embedded apps quickly.

It allows C# and WinUI XAML and/or C# code to run on all target platforms while allowing you control of every pixel. It comes with support for Fluent, Material, and Cupertino design systems out of the box. Uno Platform implements a growing number of the WinRT and WinUI APIs, such as Microsoft.UI.Xaml, to enable WinUI applications to run on all platforms with native performance.

Use the WinUI tooling from Windows in Visual Studio, such as XAML Hot Reload and C# Hot Reload, build your application as much as possible on Windows, then validate that your application runs on iOS, Android, macOS, WebAssembly and Desktop.

Visit our documentation for more details.

Samples

See a complete list of code samples here. Some of the samples have accompanying step-by-step workshops or tutorials in the official Uno Platform documentation.

Uno Platform Samples - Issues

If you encounter any issues with these samples above, please open an issue here.

Have other questions? Feature requests? Issues?

Make sure to visit our FAQ, create an issue, open a GitHub Discussion or visit our Discord Server - where our engineering team and community will be able to help you.

Contributors

Thanks go to these wonderful people (List made with contrib.rocks):

Uno.Samples Contributors

๐Ÿ’– Thank you.

uno.samples's People

Contributors

aesteves900 avatar agaldanaw2 avatar agneszitte avatar carldebilly avatar carlh98 avatar darenm avatar davidjohnoliver avatar dr1rrb avatar ebariche avatar eriklimakc avatar ibebbs avatar inforithmics avatar iurycarlos avatar jeromelaban avatar kaki104 avatar kazo0 avatar marc-antoine-soucy avatar martinzikmund avatar massimo37 avatar mikeirvingweb avatar morning4coffe-dev avatar nickrandolph avatar onotseike avatar peterfoot avatar pictos avatar rajamatt avatar vatsashah45 avatar weitzhandler avatar xiaoy312 avatar youssef1313 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

uno.samples's Issues

Merge CI build fails

CI fails on merge build (see https://dev.azure.com/uno-platform/Uno%20Platform/_build/results?buildId=60707&view=logs&j=b0e9e703-bc7b-5b6a-2ec3-61742e5311eb&t=e4987f70-9797-5667-3e14-6d3b01ce7da1&l=292)

DEBUG: 8+ foreach ($SolutionName in >>>> $SolutionsToBuild) {
DEBUG: 8+ foreach ( >>>> $SolutionName in $SolutionsToBuild) {
DEBUG: 10+ >>>> $solutionPath=[System.IO.Path]::GetDirectoryName($SolutionName);
DEBUG: 12+ >>>> git diff --quiet HEAD "origin/$(System.PullRequest.TargetBranch)" -- "$solutionPath"
DEBUG: 12+ git diff --quiet HEAD "origin/$( >>>> System.PullRequest.TargetBranch)" -- "$solutionPath"
System.PullRequest.TargetBranch : The term 'System.PullRequest.TargetBranch' is not recognized as the name of a
cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify
that the path is correct and try again.
At D:\a_temp\0c4ff241-78cd-458d-93d6-406e1a9a0de5.ps1:12 char:38

  • ... t diff --quiet HEAD "origin/$(System.PullRequest.TargetBranch)" -- "$ ...
  •                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (System.PullRequest.TargetBranch:String) [], ParentContainsErrorRecordEx
      ception
    • FullyQualifiedErrorId : CommandNotFoundException

UnoMaterialSample needs to be updated with the Material Toolkit

UnoMaterialSample is no longer a valid sample as the most up-to-date packages for Uno.Material no longer contain the Card, Chip, ChipGroup, or Divider controls.

We either need to make a new UnoMaterialToolkitSample for those scenarios or include the Uno.Toolkit.UI.Material package within the UnoMaterialSample project.

[Commerce App] Build failure after updating to latest uno.extensions

After updating to the latest uno.extensions (v2.2.0-dev.127) there is an issue with the reactive generated code:

1>C:\source\github\unoplatform\Uno.Samples\reference\Uno.Extensions.Commerce\Commerce\Uno.Extensions.Reactive.Generator\Uno.Extensions.Reactive.Generator.FeedsGenerator\Commerce.ViewModels.DealsViewModel.cs(69,37,69,44): error CS1503: Argument 1: cannot convert from '(Commerce.Business.Models.Product, System.Threading.CancellationToken)' to 'Commerce.Business.Models.Product'
1>C:\source\github\unoplatform\Uno.Samples\reference\Uno.Extensions.Commerce\Commerce\Uno.Extensions.Reactive.Generator\Uno.Extensions.Reactive.Generator.FeedsGenerator\Commerce.ViewModels.DealsViewModel.cs(138,37,138,44): error CS1503: Argument 1: cannot convert from '(Commerce.Business.Models.Product, System.Threading.CancellationToken)' to 'Commerce.Business.Models.Product'
1>C:\source\github\unoplatform\Uno.Samples\reference\Uno.Extensions.Commerce\Commerce\Uno.Extensions.Reactive.Generator\Uno.Extensions.Reactive.Generator.FeedsGenerator\Commerce.ViewModels.CartViewModel.cs(62,25,62,29): error CS1503: Argument 1: cannot convert from '(Commerce.Business.Models.CartItem, System.Threading.CancellationToken)' to 'Commerce.Business.Models.CartItem'
1>C:\source\github\unoplatform\Uno.Samples\reference\Uno.Extensions.Commerce\Commerce\Uno.Extensions.Reactive.Generator\Uno.Extensions.Reactive.Generator.FeedsGenerator\Commerce.ViewModels.CartViewModel.cs(116,23,116,27): error CS1503: Argument 1: cannot convert from '(Commerce.Business.Models.CartItem, System.Threading.CancellationToken)' to 'Commerce.Business.Models.CartItem'
1>C:\source\github\unoplatform\Uno.Samples\reference\Uno.Extensions.Commerce\Commerce\Uno.Extensions.Reactive.Generator\Uno.Extensions.Reactive.Generator.FeedsGenerator\Commerce.ViewModels.CartViewModel.cs(170,23,170,27): error CS1503: Argument 1: cannot convert from '(Commerce.Business.Models.CartItem, System.Threading.CancellationToken)' to 'Commerce.Business.Models.CartItem'
1>C:\source\github\unoplatform\Uno.Samples\reference\Uno.Extensions.Commerce\Commerce\Uno.Extensions.Reactive.Generator\Uno.Extensions.Reactive.Generator.FeedsGenerator\Commerce.ViewModels.CartViewModel.cs(232,25,232,29): error CS1503: Argument 1: cannot convert from '(Commerce.Business.Models.CartItem, System.Threading.CancellationToken)' to 'Commerce.Business.Models.CartItem'
1>C:\source\github\unoplatform\Uno.Samples\reference\Uno.Extensions.Commerce\Commerce\Uno.Extensions.Reactive.Generator\Uno.Extensions.Reactive.Generator.FeedsGenerator\Commerce.ViewModels.CartViewModel.cs(286,23,286,27): error CS1503: Argument 1: cannot convert from '(Commerce.Business.Models.CartItem, System.Threading.CancellationToken)' to 'Commerce.Business.Models.CartItem'
1>C:\source\github\unoplatform\Uno.Samples\reference\Uno.Extensions.Commerce\Commerce\Uno.Extensions.Reactive.Generator\Uno.Extensions.Reactive.Generator.FeedsGenerator\Commerce.ViewModels.CartViewModel.cs(340,23,340,27): error CS1503: Argument 1: cannot convert from '(Commerce.Business.Models.CartItem, System.Threading.CancellationToken)' to 'Commerce.Business.Models.CartItem'

[Contoso Sample] Review required

The Contoso sample needs to be reviewed:

  • Multiple areas commented out with TODO
  • Wasm and Mobile builds have been removed from build configuration due to being broken

Follow on from #293

New templates cause blurred / low-res look on Windows when using other than 100% display scaling settings

Current behavior

When using unoapp template from Uno.Templates or Visual Studio template wizard resulting Windows app is blurred / low-res looking if system display scaling is other than 100%.

(screenshot showing Uno.Templates unoapp window in the background, and native looking, not blurred window in the foreground)
image

Expected behavior

App correctly scaling with display scaling

How to reproduce it (as minimally and precisely as possible)

Follow getting started guide (for example https://platform.uno/docs/articles/get-started-vs-2022.html) and set display scaling to 150% or 200%. App should be blurry.

Workaround

Use Rider Getting Started guide (https://platform.uno/docs/articles/get-started-rider.html?tabs=windows). App won't be blury in legacy template used in this guide.

EDIT:
Changing <Manifest Include="$(ApplicationManifest)" /> to <Manifest Include="app.manifest" />, <WindowsAppSDKSelfContained> to true and deleting UnoApp.Windows/obj directory also works.
(See comment #330)

Works on UWP/WinUI

Yes

Environment

Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia

NuGet package version(s)

Uno.WinUI: 4.8.24

Affected platforms

Windows

IDE

Visual Studio 2022

IDE version

17.5.4

Relevant plugins

No response

Anything else we need to know?

Windows 11 22H2
AMD 23.4.2 driver

Missing sample and docs for SkiaSharp.Uno.Wasm

Hi, there are 2 separate repositories that mention using SkiaSharp in a WebAssembly app but none of them seems to work because none of them has any pages to display, which expectedly gives appropriate exception saying that "there is nothing to display because the default page was not defined".

Uno.SkiaSharp
Uno.Samples

Could somebody point me to working sample of Uno + SkiaSharp for web apps please?
The main goal is to migrate this charting tool to Uno or some sort of web assembly that could be displayed in the browser.

SqLiteSample does not work when adding EF Core

The sample breaks when adding

See below stack trace:

Failed to raise 'PointerReleasedEvent': System.TypeInitializationException: TypeInitialization_Type, SQLite.SQLiteConnection
dotnet.js:2373        ---> System.TypeLoadException: VTable setup of type SQLitePCL.SQLite3Provider_sqlite3 failed
dotnet.js:2373          at SQLite.SQLiteConnection..cctor()
dotnet.js:2373          Exception_EndOfInnerExceptionStack
dotnet.js:2373          at SQLiteSample.MainPage.TryCreateDatabase() in C:\Users\Greg\Desktop\Uno.Samples\UI\SQLiteSample\SQLiteSample\SQLiteSample\SQLiteSample.Shared\MainPage.xaml.cs:line 61
dotnet.js:2373          at SQLiteSample.MainPage.<InitializeDatabase>d__1.MoveNext() in C:\Users\Greg\Desktop\Uno.Samples\UI\SQLiteSample\SQLiteSample\SQLiteSample\SQLiteSample.Shared\MainPage.xaml.cs:line 38
dotnet.js:2373          at SQLiteSample.MainPage.TryCreateDatabase() in C:\Users\Greg\Desktop\Uno.Samples\UI\SQLiteSample\SQLiteSample\SQLiteSample\SQLiteSample.Shared\MainPage.xaml.cs:line 61
dotnet.js:2373          at SQLiteSample.MainPage.OnClickMe() in C:\Users\Greg\Desktop\Uno.Samples\UI\SQLiteSample\SQLiteSample\SQLiteSample\SQLiteSample.Shared\MainPage.xaml.cs:line 46
dotnet.js:2373          at SQLiteSample.MainPage.<>c__DisplayClass6_2.<InitializeComponent>b__9(Object _sender, RoutedEventArgs _e) in C:\Users\Greg\Desktop\Uno.Samples\UI\SQLiteSample\SQLiteSample\SQLiteSample\SQLiteSample.Wasm\Uno.UI.SourceGenerators\Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator\MainPage_e02ddde003dafe62614502781685a19d.cs:line 109

I have been working on this for several hours and cannot get Sqlite to work with EFCore.

Apply vsmac workaround to all samples

Apply the unoplatform/uno.toolkit.ui#359 workaround on all macos samples.

Fixes this issue:

  D:\a\1\s\reference\Uno.Extensions.Commerce\Commerce.UI\App.xaml.cs(4,35): error CS0012: The type 'NSApplicationDelegate' is defined in an assembly that is not referenced. You must add a reference to assembly 'Xamarin.Mac, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. [D:\a\1\s\reference\Uno.Extensions.Commerce\Commerce.macOS\Commerce.macOS.csproj]
  D:\a\1\s\reference\Uno.Extensions.Commerce\Commerce.UI\App.xaml.cs(7,9): error CS0012: The type 'NSApplicationDelegate' is defined in an assembly that is not referenced. You must add a reference to assembly 'Xamarin.Mac, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. [D:\a\1\s\reference\Uno.Extensions.Commerce\Commerce.macOS\Commerce.macOS.csproj]
  D:\a\1\s\reference\Uno.Extensions.Commerce\Commerce.UI\App.xaml.cs(19,43): error CS0012: The type 'NSApplicationDelegate' is defined in an assembly that is not referenced. You must add a reference to assembly 'Xamarin.Mac, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. [D:\a\1\s\reference\Uno.Extensions.Commerce\Commerce.macOS\Commerce.macOS.csproj]
  D:\a\1\s\reference\Uno.Extensions.Commerce\Commerce.UI\App.xaml.cs(50,43): error CS0012: The type 'NSApplicationDelegate' is defined in an assembly that is not referenced. You must add a reference to assembly 'Xamarin.Mac, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. [D:\a\1\s\reference\Uno.Extensions.Commerce\Commerce.macOS\Commerce.macOS.csproj]
  D:\a\1\s\reference\Uno.Extensions.Commerce\Commerce.UI\App.xaml.host.cs(10,17): error CS0012: The type 'NSApplicationDelegate' is defined in an assembly that is not referenced. You must add a reference to assembly 'Xamarin.Mac, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. [D:\a\1\s\reference\Uno.Extensions.Commerce\Commerce.macOS\Commerce.macOS.csproj]
  D:\a\1\s\reference\Uno.Extensions.Commerce\Commerce.UI\App.xaml.host.cs(76,37): error CS0012: The type 'NSApplicationDelegate' is defined in an assembly that is not referenced. You must add a reference to assembly 'Xamarin.Mac, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. [D:\a\1\s\reference\Uno.Extensions.Commerce\Commerce.macOS\Commerce.macOS.csproj]
  D:\a\1\s\reference\Uno.Extensions.Commerce\Commerce.UI\App.xaml.host.cs(76,58): error CS0012: The type 'NSApplicationDelegate' is defined in an assembly that is not referenced. You must add a reference to assembly 'Xamarin.Mac, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. [D:\a\1\s\reference\Uno.Extensions.Commerce\Commerce.macOS\Commerce.macOS.csproj]
  D:\a\1\s\reference\Uno.Extensions.Commerce\Commerce.UI\App.xaml.cs(6,10): error CS0012: The type 'NSApplicationDelegate' is defined in an assembly that is not referenced. You must add a reference to assembly 'Xamarin.Mac, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. [D:\a\1\s\reference\Uno.Extensions.Commerce\Commerce.macOS\Commerce.macOS.csproj]
  D:\a\1\s\reference\Uno.Extensions.Commerce\Commerce.UI\App.xaml.host.cs(8,19): error CS0012: The type 'NSApplicationDelegate' is defined in an assembly that is not referenced. You must add a reference to assembly 'Xamarin.Mac, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. [D:\a\1\s\reference\Uno.Extensions.Commerce\Commerce.macOS\Commerce.macOS.csproj]
  D:\a\1\s\reference\Uno.Extensions.Commerce\Commerce.UI\Views\CartPage.xaml.cs(5,40): error CS0012: The type 'NSView' is defined in an assembly that is not referenced. You must add a reference to assembly 'Xamarin.Mac, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. [D:\a\1\s\reference\Uno.Extensions.Commerce\Commerce.macOS\Commerce.macOS.csproj]
  D:\a\1\s\reference\Uno.Extensions.Commerce\Commerce.UI\Views\CheckoutPage.xaml.cs(3,44): error CS0012: The type 'NSView' is defined in an assembly that is not referenced. You must add a reference to assembly 'Xamarin.Mac, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. [D:\a\1\s\reference\Uno.Extensions.Commerce\Commerce.macOS\Commerce.macOS.csproj]
  D:\a\1\s\reference\Uno.Extensions.Commerce\Commerce.UI\Views\FilterPage.xaml.cs(3,42): error CS0012: The type 'NSView' is defined in an assembly that is not referenced. You must add a reference to assembly 'Xamarin.Mac, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. [D:\a\1\s\reference\Uno.Extensions.Commerce\Commerce.macOS\Commerce.macOS.csproj]

Upgrade all samples to run with latest uno and latest VS 2022.

The last update in VS 2022 caused some samples to stop building, causing the canary to fail. The current non-canary CI is built around partial validation, which makes other samples miss validations.

Updating projects one by one to uno latest will force a rebuild with VS 2022, and will show which projects fail in an incremental manner.

Summary

PR #154 - To create the ArchiveProject folder and exclude projects from the CI build.
PR #153 - WebRTC.Wasm - Updated Uno to the latest packages, after the project there is a runtime error to fix
- ListViewSample - Already updated.

Commerce sample breaks on NullReference in ProductsDetailViewModel

Referring to Commerce Sample.

Issue:

  • Application breaks in ProductsDetailViewModel.
  • IListFeed is null.

Steps to recreate:

  • On the Products page select an Item so it shows in the Products Detail view.
  • Switch to the Profile page.
  • Switch back to Products page.
  • IListFeed is now null and application breaks.

Note:

  • Only one product has an actual review, so for the others it's an empty collection. but that's fine, it's not null.

commerce

Error running CameraCaptureUISample.Wasm Unhandled Exception: System.Security.SecurityException: ECall methods must be packaged into a system module.

Hi I did a fork of the samples
I want to run the camera on wasm but when I try to do it I got the following exception

Unhandled Exception: System.Security.SecurityException: ECall methods must be packaged into a system module.
at WebAssembly.Runtime.InvokeJS(String str)
at Uno.Foundation.WebAssemblyRuntime.InnerInvokeJS(String str)
at Uno.Foundation.WebAssemblyRuntime.InvokeJS(String str)
at Uno.UI.Xaml.WindowManagerInterop.Init(Boolean isHostedMode, Boolean isLoadEventsEnabled)
at Windows.UI.Xaml.Application.StartPartial(ApplicationInitializationCallback callback)
at CameraCaptureUISample.Wasm.Program.Main(String[] args) in C:\Users\Joche\Source\Repos\Uno.Samples\UI\CameraCaptureUI\CameraCaptureUISample\CameraCaptureUISample.Wasm\Program.cs:line 12

C:\Users\Joche\Source\Repos\Uno.Samples\UI\CameraCaptureUI\CameraCaptureUISample\CameraCaptureUISample.Wasm\bin\Debug\netstandard2.0\CameraCaptureUISample.Wasm.dll (process 7276) exited with code -532462766.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .

Upgraded WebRTC sample's TS package - PeerConnection broken

After upgrading WebRTC demo's Microsoft.TypeScript.MSBuild package reference from 4.2.3 to 4.6.2, I got the following error:
[...]\WebRTC\WebRTC.Wasm\ts\PeerConnection.ts(32,39): error TS2304: Build:Cannot find name 'RTCErrorEvent'

That's because the corresponding interface got removed with TypeScript 4.4 as was announced here: microsoft/TypeScript-DOM-lib-generator/#1029

Please fix the sample by first updating it to the latest packages available & then adapt PeerConnection's onChannelError method.

[Windows] Hot Reload Not Working in Commerce Sample App

Current behavior

Hot Reload doesn't work in the Uno Extensions Commerce Sample App using Visual Studio latest release and preview release. But Hot Reload does work if we create a sample application with the Uno Extensions Template.

Visual Studio 2022 Current:
Animation_47

Visual Studio 2022 Preview:
Animation_48

Visual Studio 2022 Current:
Can't be launched.

Visual Studio 2022 Preview:
Animation_49

Expected behavior

Hot Reload should be working on Windows when using the Uno Extensions Commerce Sample App.

How to reproduce it (as minimally and precisely as possible)

  1. Clone Uno Extensions Commerce Sample App
  2. Make sure that Hot Reload is enabled in Visual Studio
  3. Open LoginPage.xaml
  4. Remove the x:Uid at line 60
  5. Start the application on Windows
  6. Update the Text at line 59-60
  7. Save your change
  8. Notice that the text in application did not change

Environment

Nuget Package: Required Uno.Extensions packages.

Package Version(s): 2.1.0-dev.173.

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • WebAssembly renders for Xamarin.Forms
  • Windows
  • Build tasks

Visual Studio:

  • 2017 (version: )
  • 2019 (version: )
  • 2022 (version: 17.2.5)
  • 2022 (version: 17.3.0 Preview 2.0)
  • for Mac (version: )

Relevant plugins:

  • Resharper (version: )

Anything else we need to know?

By following this it made the Hot Reload working without having to save my file changes.

Error when building Wasm project from sqlite sample solution.

Hi

The error message that appears when building is as follows. UWP and Android projects run normally.

Severity Code Description Project File Line Suppression State
Error [00:00:00.8932914] /bin/bash: mono: command not found SQLiteSample.Wasm C:\Users\kaki1.nuget\packages\uno.wasm.bootstrap\1.3.0-dev.44\build\Uno.Wasm.Bootstrap.targets 125

Severity Code Description Project File Line Suppression State
Error System.Exception: Failed to generate wasm layout (More details are available in diagnostics mode or using the MSBuild /bl switch)
at Uno.Wasm.Bootstrap.ShellTask_vf2f21c9fe5dfda9f4f03ca4a0a082bf6c8fdbbaf.RunPackager() in D:\a\1\s\src\Uno.Wasm.Bootstrap\ShellTask.cs:line 573
at Uno.Wasm.Bootstrap.ShellTask_vf2f21c9fe5dfda9f4f03ca4a0a082bf6c8fdbbaf.Execute() in D:\a\1\s\src\Uno.Wasm.Bootstrap\ShellTask.cs:line 182 SQLiteSample.Wasm C:\Users\kaki1.nuget\packages\uno.wasm.bootstrap\1.3.0-dev.44\build\Uno.Wasm.Bootstrap.targets 125

Environment

  • Windows 10 version 2004
  • Visual Studio 2019 version 16.7.3
  • WSL 2
  • .Net SDK (3.1.402, 5.0.100)

SKSwapChainPanel Wasm

Software rendering is working but not Hardware.

I am not sure now where to put the issue. Here or https://github.com/mono/SkiaSharp?

I updated SkiaSharpTest.Wasm to the latest Skia and Uno nuggets (Uno.Samples\UI\SkiaSharpTest). As soon I remove sk:SKSwapChainPanel.. from MainPage.xaml the sample is working. So only Software rendering.

image

ControlLibrary Sample for Uno.WinUI

https://github.com/unoplatform/Uno.Samples/tree/master/UI/ControlLibrary

Was hoping there'd also be another sample for Uno.WinUI and the new project setup for control libraries for those. Want to ensure we have our setup correct in WCT Labs to support both Uno.UI and Uno.WinUI. Would be nice to be able to look at both and compare them side-by-side in a simple minimal setup like the samples here.

Or maybe can link to where the templates from the VS extension are instead of having in samples from the docs? https://platform.uno/docs/articles/guides/how-to-create-control-libraries.html

Thanks!

Also see #6 (not sure if that's still a problem?)

Commerce app: unable to login

Running the Commerce app, the login page (LoginPage) appears, but no viewmodel il bound to the view.

Solution:
Make LoginViewModel public, so that it can be injected and bound to the LoginPage; see: #390

Refactor Samples Build to use Matrix

Currently the build process for Samples iterates over the solutions and determines which should be built for each PR. For most PRs this is fine as they only touch one sample. However, for large updates (eg bumping uno version across repo) this breaks the build as it takes 6+hours to run. This is also causing the canary to fail since it tries to build all solutions

A better solution is use matrix job strategy to break the build into jobs based on which solutions need to be built: https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/jobs-job-strategy?view=azure-pipelines

Upgrade all samples to net6

We need to upgrade all Wasm, Gtk and WPF samples to net6. For WPF, we'll need to merge the WPF and WPF.Host project, as is in the latest uno templates.

Samples cleanup

  • Fix build error - #389
  • Fix build error - #390
  • Resolve conflict - #341
    Blocked waiting for rebase - commit moved to #293
  • Authentication.Oidc.Demo - #290
  • UnoChat - #275
  • UnoContoso - #293
  • UnoPharmaSupply (UnoEthereumBlockChain)
  • UnoSQLiteOneDriveInvoiceSample - #219
  • Demo (UnoSQListOneDriveInvoiceSample)
  • MapControlSample -> Add direct reference to skiapsharp.skottie to gtk project and framebuffer
  • SkottieSample -> Update to preview of Skiasharp
  • UnoIslandsSampleApp -can't find Uno.UI.HostingIXamlRootHost
  • UnoMaterialSample & UnoMaterialToolkitSample - InitializeComponent not accessible
  • WCTDataTreeTabSample - XamlRoot not accessible
  • FilePickerIos - #246
  • ControlLibrary - #253

[CameraCaptureUI] Fails on Android with path related exception

Testing Android throws exception when attempting to capture photo:
at System.Uri.get_LocalPath()
at Windows.Media.Capture.CameraCaptureUI.CaptureFile(CancellationToken ct, CameraCaptureUIMode mode) in C:\a\1\s\src\Uno.UWP\Media\Capture\CameraCaptureUI.Android.cs:line 56
at Windows.Foundation.AsyncOperation1.d__5[[Windows.Storage.StorageFile, Uno, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null]].MoveNext() in C:\a\1\s\src\Uno.Foundation\AsyncOperation.TResult.cs:line 47 at System.WindowsRuntimeSystemExtensions.d__111[[Windows.Storage.StorageFile, Uno, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null]].MoveNext() in C:\a\1\s\src\Uno.UWP\System.Runtime\WindowsRuntimeSystemExtensions.cs:line 66
at CameraCaptureUISample.MainPage.button_Click(Object sender, RoutedEventArgs e) in C:\source\github\unoplatform\Uno.Samples\UI\CameraCaptureUI\CameraCaptureUISample\CameraCaptureUISample.Shared\MainPage.xaml.cs:line 41

Create sample for chat-like ListView conversation experience

We need a sample to highlight how someone could utilize the ListView in order to create a conversation history for something like a chat experience. This is really a matter of styling a ListView and making it work in a "reverse scrolling" way. Attached is an initial POC that we should build upon to fix up and make a good looking sample app out of:

Image

There are some outstanding issues such as the mouse-wheel scrolling this isn't working currently. This will be fixed by @dr1rrb

Eventually, we will take the recipe and place it somewhere in the Toolkit library as a re-useable style/component for people needing a chat experience

POC app:
ReversedScrolling.zip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.