Coder Social home page Coder Social logo

unoplatform / uno.windowscommunitytoolkit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from communitytoolkit/windowscommunitytoolkit

62.0 17.0 11.0 446.31 MB

The Windows Community Toolkit is a collection of helper functions, custom controls, and app services. It simplifies and demonstrates common developer tasks building UWP apps for Windows 10. The toolkit is part of the .NET Foundation.

Home Page: https://docs.microsoft.com/windows/uwpcommunitytoolkit/

License: Other

C# 99.62% PowerShell 0.34% Batchfile 0.01% JavaScript 0.03% TypeScript 0.01%
xaml uwp uno-platform ios android webassembly wasm csharp windows

uno.windowscommunitytoolkit's Introduction

Uno Platform port of Windows Community Toolkit

This port allows for Uno Platform based apps to use Windows Community Toolkit for WinUI 3 on Windows, iOS, macOS, Android, WebAssembly and Linux.

See below on this page for information about UWP.

The following packages are available:

  • Uno.CommunityToolkit.Common NuGet
  • Uno.CommunityToolkit.WinUI NuGet
  • Uno.CommunityToolkit.WinUI.Connectivity NuGet
  • Uno.CommunityToolkit.WinUI.DeveloperTools NuGet
  • Uno.CommunityToolkit.WinUI.UI NuGet
  • Uno.CommunityToolkit.WinUI.UI.Animations NuGet
  • Uno.CommunityToolkit.WinUI.UI.Behaviors NuGet
  • Uno.CommunityToolkit.WinUI.UI.Controls NuGet
  • Uno.CommunityToolkit.WinUI.UI.Controls.Core NuGet
  • Uno.CommunityToolkit.WinUI.UI.Controls.DataGrid NuGet
  • Uno.CommunityToolkit.WinUI.UI.Controls.Input NuGet
  • Uno.CommunityToolkit.WinUI.UI.Controls.Layout NuGet
  • Uno.CommunityToolkit.WinUI.UI.Controls.Markdown NuGet
  • Uno.CommunityToolkit.WinUI.UI.Controls.Media NuGet
  • Uno.CommunityToolkit.WinUI.UI.Controls.Primitives NuGet
  • Uno.CommunityToolkit.WinUI.UI.Media NuGet

Using the Uno Platform Windows Community Toolkit packages

These packages are providing support for the Uno Platform supported targets (iOS, Android, macOS, WebAssembly and Skia GTK/WPF/Tizen).

On Windows projects (the WinUI 3 Desktop head), please install the official Windows Community Toolkit packages for WinUI 3.

If you are building a library, use the following to conditionally include the toolkit builds:

<ItemGroup Condition="$(TargetFramework.Contains('windows10'))">
	<PackageReference Include="CommunityToolkit.WinUI.Controls" Version="7.1.2" />
</ItemGroup>
<ItemGroup Condition="!$(TargetFramework.Contains('windows10'))">
	<PackageReference Include="Uno.CommunityToolkit.WinUI.Controls" Version="7.1.200" />
</ItemGroup>

For example, using the default Uno template, you only need to add the following lines (as needed) to the class library <AppName>.csproj. No changes are needed in each target separately (<AppName>.Wasm.csproj, <AppName>.Windows.csproj, etc.)

<ItemGroup Condition="$(TargetFramework.Contains('windows10'))">
  <PackageReference Include="CommunityToolkit.Common" />
  <PackageReference Include="CommunityToolkit.WinUI" />
  <PackageReference Include="CommunityToolkit.WinUI.Connectivity" />
  <PackageReference Include="CommunityToolkit.WinUI.DeveloperTools" />
  <PackageReference Include="CommunityToolkit.WinUI.UI" />
  <PackageReference Include="CommunityToolkit.WinUI.UI.Animations" />
  <PackageReference Include="CommunityToolkit.WinUI.UI.Behaviors" />
  <PackageReference Include="CommunityToolkit.WinUI.UI.Controls" />
  <PackageReference Include="CommunityToolkit.WinUI.UI.Controls.Core" />
  <PackageReference Include="CommunityToolkit.WinUI.UI.Controls.DataGrid" />
  <PackageReference Include="CommunityToolkit.WinUI.UI.Controls.Input" />
  <PackageReference Include="CommunityToolkit.WinUI.UI.Controls.Layout" />
  <PackageReference Include="CommunityToolkit.WinUI.UI.Controls.Markdown" />
  <PackageReference Include="CommunityToolkit.WinUI.UI.Controls.Media" />
  <PackageReference Include="CommunityToolkit.WinUI.UI.Controls.Primitives" />
  <PackageReference Include="CommunityToolkit.WinUI.UI.Media" />
</ItemGroup>
<ItemGroup Condition="!$(TargetFramework.Contains('windows10'))">
  <PackageReference Include="Uno.CommunityToolkit.Common" />
  <PackageReference Include="Uno.CommunityToolkit.WinUI" />
  <PackageReference Include="Uno.CommunityToolkit.WinUI.Connectivity" />
  <PackageReference Include="Uno.CommunityToolkit.WinUI.DeveloperTools" />
  <PackageReference Include="Uno.CommunityToolkit.WinUI.UI" />
  <PackageReference Include="Uno.CommunityToolkit.WinUI.UI.Animations" />
  <PackageReference Include="Uno.CommunityToolkit.WinUI.UI.Behaviors" />
  <PackageReference Include="Uno.CommunityToolkit.WinUI.UI.Controls" />
  <PackageReference Include="Uno.CommunityToolkit.WinUI.UI.Controls.Core" />
  <PackageReference Include="Uno.CommunityToolkit.WinUI.UI.Controls.DataGrid" />
  <PackageReference Include="Uno.CommunityToolkit.WinUI.UI.Controls.Input" />
  <PackageReference Include="Uno.CommunityToolkit.WinUI.UI.Controls.Layout" />
  <PackageReference Include="Uno.CommunityToolkit.WinUI.UI.Controls.Markdown" />
  <PackageReference Include="Uno.CommunityToolkit.WinUI.UI.Controls.Media" />
  <PackageReference Include="Uno.CommunityToolkit.WinUI.UI.Controls.Primitives" />
  <PackageReference Include="Uno.CommunityToolkit.WinUI.UI.Media" />
</ItemGroup>

Also, don't forget to add the corresponding package versions in Directory.Packages.props:

<PackageVersion Include="Uno.CommunityToolkit.Common" Version="7.1.200" />
<PackageVersion Include="Uno.CommunityToolkit.WinUI" Version="7.1.200" />
<PackageVersion Include="Uno.CommunityToolkit.WinUI.Connectivity" Version="7.1.200" />
<PackageVersion Include="Uno.CommunityToolkit.WinUI.DeveloperTools" Version="7.1.200" />
<PackageVersion Include="Uno.CommunityToolkit.WinUI.UI" Version="7.1.200" />
<PackageVersion Include="Uno.CommunityToolkit.WinUI.UI.Animations" Version="7.1.200" />
<PackageVersion Include="Uno.CommunityToolkit.WinUI.UI.Behaviors" Version="7.1.200" />
<PackageVersion Include="Uno.CommunityToolkit.WinUI.UI.Controls" Version="7.1.200" />
<PackageVersion Include="Uno.CommunityToolkit.WinUI.UI.Controls.Core" Version="7.1.200" />
<PackageVersion Include="Uno.CommunityToolkit.WinUI.UI.Controls.DataGrid" Version="7.1.200" />
<PackageVersion Include="Uno.CommunityToolkit.WinUI.UI.Controls.Input" Version="7.1.200" />
<PackageVersion Include="Uno.CommunityToolkit.WinUI.UI.Controls.Layout" Version="7.1.200" />
<PackageVersion Include="Uno.CommunityToolkit.WinUI.UI.Controls.Markdown" Version="7.1.200" />
<PackageVersion Include="Uno.CommunityToolkit.WinUI.UI.Controls.Media" Version="7.1.200" />
<PackageVersion Include="Uno.CommunityToolkit.WinUI.UI.Controls.Primitives" Version="7.1.200" />
<PackageVersion Include="Uno.CommunityToolkit.WinUI.UI.Media" Version="7.1.200" />

<PackageVersion Include="CommunityToolkit.Common" Version="8.2.2" />
<PackageVersion Include="CommunityToolkit.WinUI" Version="7.1.2" />
<PackageVersion Include="CommunityToolkit.WinUI.Connectivity" Version="7.1.2" />
<PackageVersion Include="CommunityToolkit.WinUI.DeveloperTools" Version="7.1.2" />
<PackageVersion Include="CommunityToolkit.WinUI.UI" Version="7.1.2" />
<PackageVersion Include="CommunityToolkit.WinUI.UI.Animations" Version="7.1.2" />
<PackageVersion Include="CommunityToolkit.WinUI.UI.Behaviors" Version="7.1.2" />
<PackageVersion Include="CommunityToolkit.WinUI.UI.Controls" Version="7.1.2" />
<PackageVersion Include="CommunityToolkit.WinUI.UI.Controls.Core" Version="7.1.2" />
<PackageVersion Include="CommunityToolkit.WinUI.UI.Controls.DataGrid" Version="7.1.2" />
<PackageVersion Include="CommunityToolkit.WinUI.UI.Controls.Input" Version="7.1.2" />
<PackageVersion Include="CommunityToolkit.WinUI.UI.Controls.Layout" Version="7.1.2" />
<PackageVersion Include="CommunityToolkit.WinUI.UI.Controls.Markdown" Version="7.1.2" />
<PackageVersion Include="CommunityToolkit.WinUI.UI.Controls.Media" Version="7.1.2" />
<PackageVersion Include="CommunityToolkit.WinUI.UI.Controls.Primitives" Version="7.1.2" />
<PackageVersion Include="CommunityToolkit.WinUI.UI.Media" Version="7.1.2" />

Support for UWP

As the original Community Toolkit does, this fork also provides binaries for UWP, and the branch unorel/7.1 is used to provide this support.

The following packages are available from this branch:

  • Uno.Microsoft.Toolkit NuGet
  • Uno.Microsoft.Toolkit.Uwp NuGet
  • Uno.Microsoft.Toolkit.Uwp.Connectivity NuGet
  • Uno.Microsoft.Toolkit.Uwp.DeveloperTools NuGet
  • Uno.Microsoft.Toolkit.Uwp.UI NuGet
  • Uno.Microsoft.Toolkit.Uwp.UI.Animations NuGet
  • Uno.Microsoft.Toolkit.Uwp.UI.Behaviors NuGet
  • Uno.Microsoft.Toolkit.Uwp.UI.Controls NuGet
  • Uno.Microsoft.Toolkit.Uwp.UI.Controls.Core NuGet
  • Uno.Microsoft.Toolkit.Uwp.UI.Controls.DataGrid NuGet
  • Uno.Microsoft.Toolkit.Uwp.UI.Controls.Input NuGet
  • Uno.Microsoft.Toolkit.Uwp.UI.Controls.Layout NuGet
  • Uno.Microsoft.Toolkit.Uwp.UI.Controls.Markdown NuGet
  • Uno.Microsoft.Toolkit.Uwp.UI.Controls.Media NuGet
  • Uno.Microsoft.Toolkit.Uwp.UI.Controls.Primitives NuGet
  • Uno.Microsoft.Toolkit.Uwp.UI.Media NuGet

Using the Uno Platform Windows Community Toolkit packages for UWP

These packages are providing support for the Uno Platform supported targets (iOS, Android, macOS, WebAssembly and Skia GTK/WPF/Tizen).

On Windows projects (the UWP head), please install the official Windows Community Toolkit packages.

If you are building a library, use the following to conditionally include the toolkit builds:

<ItemGroup Condition="'$(TargetFramework)' == 'uap10.0.17763'">
	<PackageReference Include="Microsoft.Toolkit.Uwp.Controls" Version="7.1.10" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' != 'uap10.0.17763'">
	<PackageReference Include="Uno.Microsoft.Toolkit.Uwp.Controls" Version="7.1.10" />
</ItemGroup>

uno.windowscommunitytoolkit's People

Contributors

alexchx avatar andrewleader avatar avknaidu avatar azchohfi avatar canviztheodoreshi avatar cbarkerms avatar code-scottle avatar deltakosh avatar h82258652 avatar hermitdave avatar hhchaos avatar huynhsontung avatar ibraheemosama avatar jeromelaban avatar kyaa-dost avatar michael-hawker avatar nmetulev avatar odonno avatar peteams avatar rjmurillo avatar robloo avatar rosuavio avatar scottisafool avatar sergio0694 avatar shenchauhan avatar shweaver-msft avatar skendrot avatar vgromfeld avatar vijay-nirmal avatar williamabradley 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

Watchers

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

uno.windowscommunitytoolkit's Issues

InAppNotification is broken on iOS

No content and missing icon

IMG_0003

this.Loaded += (s, e) => notification.Show("Loaded");

Expected behavior

Works as designed

Environment

NuGet Package(s):
Uno.Microsoft.Toolkit.Uwp.UI.Controls 6.1.0-build.207.gcac670e618

Device form factor:

  • Windows
  • macOS
  • iOS
  • Android
  • WebAssembly
  • WebAssembly renderers for Xamarin.Forms

Visual Studio

  • 2017 (version: )
  • 2019 (version: )
  • 2019 Preview (version: )

InAppNotification is broken on UWP

Create blank UWP app
Add NuGet
Replace MainPage with App1.zip

NuGet Package(s):
Uno.Microsoft.Toolkit.Uwp.UI.Controls 6.1.0-build.207.gcac670e618

Device form factor:

  • Windows
  • macOS
  • iOS
  • Android
  • WebAssembly
  • WebAssembly renderers for Xamarin.Forms

Visual Studio

  • 2017 (version: )
  • 2019 (version: )
  • 2019 Preview (version: )

## Additional context
Add any other context about the problem here.

[minor] nuget packages metadata contains invalid url

I'm submitting a...

  • Documentation issue or request

Current behavior

All of the packages have broken links:

Expected behavior

The links should be valid.

Minimal reproduction of the problem with instructions

Visit the links below and check the section mentioned above.
https://www.nuget.org/packages/Uno.Microsoft.Toolkit
https://www.nuget.org/packages/Uno.Microsoft.Toolkit.Parsers

Environment

n/a

TokenizingTextbox crashing on Android

Describe the bug

I've added a TokenizingTextbox to a page and it works as expected on UWP. On Android it accepts input but after a while (presumably while trying to convert my word into a token) it bring a long native stacktrace (see attachment), blocks the application and finaly crashes the application.

Steps to Reproduce

  1. Add a TokenizingTextBox to a page like this:
<Page
    x:Class="NutzMich.Pages.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:NutzMich"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"     xmlns:xamarin="http://uno.ui/xamarin"
    xmlns:toolkit="using:Uno.UI.Toolkit" xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls"
    mc:Ignorable="d">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <controls:TokenizingTextBox Grid.Row="0"></controls:TokenizingTextBox>
</Grid>
</Page>
  1. Run the application on Android
  2. Enter a word, hit space or enter
  3. Stacktrace appears and app quits after some seconds

Expected behavior

The TokenizingTextBox works on Android like expected.

Environment

NuGet Package(s): 6.1.0-build.178.gc768b0f669

- [X] Android
Did not test iOs, MacOS or WASM.

Visual Studio 
- [ ] 2017 (version: )
- [X] 2019 (version: ) 
- [ ] 2019 Preview (version: )

ExceptionStacktrace.txt

[Feature] CameraPreview

Describe the problem this feature would solve

Describe the solution

Support CameraPreview for all platform.

Describe alternatives you've considered

Additional context & Screenshots

[Android] Java.Lang.NoClassDefFoundError: 'Failed resolution of: Landroidx/arch/core/executor/ArchTaskExecutor;'

Describe the bug

When run app throwed Java.Lang.NoClassDefFoundError

  • Is this bug a regression in the toolkit? If so, what toolkit version did you last see it work:

Steps to Reproduce

  • Can this be reproduced in the Sample App? (Either in a sample as-is or with new XAML pasted in the editor.) If so, please provide custom XAML or steps to reproduce. If not, let us know why it can't be reproduced (e.g. more complex setup, environment, dependencies, etc...)

Steps to reproduce the behavior:

  1. Create new app using uno template on visual studio
  2. update Uno Platform at last prerelase
  3. install Uno.Microsoft.Toolkit.Uwp.UI.Controls
  4. Run
  5. See error

Expected behavior

error do not throw

Screenshots

If applicable, add screenshots to help explain your problem.

Environment

NuGet Package(s):  
 - Uno.U" 3.6.0-dev.478
 - Uno.UI.RemoteControl  3.6.0-dev.478
 - Uno.UniversalImageLoader 1.9.33
 - Microsoft.Extensions.Logging.Console 1.1.1
 - Microsoft.Extensions.Logging.Filter 1.1.1

Package Version(s): 
Uno.Microsoft.Toolkit.Uwp.UI.Controls 6.0.0.ge975abb046

Device form factor:
- [ ] Windows
- [ ] macOS
- [ ] iOS
- [x] Android (Oreo 8.1)
- [ ] WebAssembly
- [ ] WebAssembly renderers for Xamarin.Forms

Visual Studio 
- [ ] 2017 (version: )
- [x] 2019 (version: 18.9.1 ) 
- [ ] 2019 Preview (version: )

Additional context

if remove Uno.Microsoft.Toolkit.Uwp.UI.Controls work

Workaraund

<PackageReference Include="Xamarin.AndroidX.Arch.Core.Runtime" Version="2.1.0.8" />

DataGrid : Freezes iOS or MacCatalyst app when added to visual tree

Current behavior

CommunityToolkit.WinUI.UI.Controls.DataGrid will freeze an iOS (Simulator or Device) or MacCatalyst app when added to the visual tree of the app.

NOTES:

  • no issues with the following platforms:
    • Android
    • WASM
    • Skia.Wpf
    • Skia.Gtk
    • MacOS

Expected behavior

DataGrid can be added to Uno.WinUi app as it can on other platforms.

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

  1. Create new UnoApp
  2. Build, deploy and launch app to iOS Simulator or Device
  3. Click [Click to add DataGrid] button
  4. Notice app freezes on _grid.Children.Add(_dataGrid); in the following block of code:
        private void _button_Click(object sender, RoutedEventArgs e)
        {
            if (_dataGrid is null)
            {
                _dataGrid = new CommunityToolkit.WinUI.UI.Controls.DataGrid();

                var list = new List<string> { "apple", "butter", "cranberries", "dessert", "eggs", "fish" };
                _dataGrid.ItemsSource = list;
                _dataGrid.AutoGenerateColumns = true;

                Grid.SetRow(_dataGrid, 1);
                _grid.Children.Add(_dataGrid);
            }
        }

Workaround

Have not yet tested if the issue is present in the following scenarios:

  • Deploy to iOS Local Device from vs4win 2022 (I'm having an issue with this as well)
  • Build and manually deploy from vs4mac (I would try that later today)

Works on UWP/WinUI

Yes

Environment

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

NuGet package version(s)

  <ItemGroup>
    <PackageReference Include="Uno.CommunityToolkit.WinUI.UI.Controls.DataGrid" Version="7.1.100" />
    <PackageReference Include="Uno.WinUI" Version="4.6.19" />
    <PackageReference Include="Uno.WinUI.RemoteControl" Version="4.6.19" Condition="'$(Configuration)'=='Debug'" />
    <PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="4.6.19" />
    <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="5.0.0" />
    <PackageReference Include="Uno.WinUI.Lottie" Version="4.6.19" />
  </ItemGroup>

Affected platforms

iOS

IDE

Visual Studio 2022

IDE version

Version 17.4.1

Relevant plugins

Microsoft Visual Studio Enterprise 2022
Version 17.4.1
VisualStudio.17.Release/17.4.1+33110.190
Microsoft .NET Framework
Version 4.8.04084

Installed Version: Enterprise

Architecture Diagrams and Analysis Tools   00476-80000-00000-AA914
Microsoft Architecture Diagrams and Analysis Tools

Visual C++ 2022   00476-80000-00000-AA914
Microsoft Visual C++ 2022

ADL Tools Service Provider   1.0
This package contains services used by Data Lake tools

ASA Service Provider   1.0

ASP.NET and Web Tools   17.4.326.54890
ASP.NET and Web Tools

Azure App Service Tools v3.0.0   17.4.326.54890
Azure App Service Tools v3.0.0

Azure Data Lake Tools for Visual Studio   2.6.5000.0
Microsoft Azure Data Lake Tools for Visual Studio

Azure Functions and Web Jobs Tools   17.4.326.54890
Azure Functions and Web Jobs Tools

Azure Stream Analytics Tools for Visual Studio   2.6.5000.0
Microsoft Azure Stream Analytics Tools for Visual Studio

C# Tools   4.4.0-6.22559.4+d7e8a398ef479a908e76bded82150c39251d0c9c
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

CleanBinAndObjCommand Extension   1.2.58
CleanBinAndObjCommand Visual Studio Extension Detailed Info

Common Azure Tools   1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Extensibility Message Bus   1.4.1 (main@2ee106a)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.

IncrediBuild Build Acceleration   1.6.0.2
IncrediBuild effectively reduces compilation and development times by up to 90%.

Linux Core Dump Debugging   1.0.9.33020
Enables debugging of Linux core dumps.

Microsoft Azure Hive Query Language Service   2.6.5000.0
Language service for Hive query

Microsoft Azure Stream Analytics Language Service   2.6.5000.0
Language service for Azure Stream Analytics

Microsoft Azure Tools for Visual Studio   2.9
Support for Azure Cloud Services projects

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Mono Debugging for Visual Studio   17.4.19 (8c0a575)
Support for debugging Mono processes with Visual Studio.

NuGet Package Manager   6.4.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

Office Developer Tools for Visual Studio   17.0.32915.00
Microsoft Office Developer Tools for Visual Studio

Razor (ASP.NET Core)   17.0.0.2246202+61cc048d36a3fc9246d2f04625988b19a18ab8f0
Provides languages services for ASP.NET Core Razor.

SQL Server Data Tools   17.0.62207.28050
Microsoft SQL Server Data Tools

Syntax Visualizer   1.0
An extension for visualizing Roslyn SyntaxTrees.

Test Adapter for Boost.Test   1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test.  The use terms and Third Party Notices are available in the extension installation directory.

Test Adapter for Google Test   1.0
Enables Visual Studio's testing tools with unit tests written for Google Test.  The use terms and Third Party Notices are available in the extension installation directory.

ToolWindowHostedEditor   1.0
Hosting json editor into a tool window

TypeScript Tools   17.0.10921.2001
TypeScript Tools for Microsoft Visual Studio

UnoPlatformPackage Extension   1.0
UnoPlatformPackage Visual Studio Extension Detailed Info

Visual Basic Tools   4.4.0-6.22559.4+d7e8a398ef479a908e76bded82150c39251d0c9c
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual C++ for Cross Platform Mobile Development (Android)   17.0.33006.217
Visual C++ for Cross Platform Mobile Development (Android)

Visual C++ for Cross Platform Mobile Development (iOS)   17.0.33006.217
Visual C++ for Cross Platform Mobile Development (iOS)

Visual C++ for Linux Development   1.0.9.33020
Visual C++ for Linux Development

Visual F# Tools   17.4.0-beta.22512.4+525d5109e389341bb90b144c24e2ad1ceec91e7b
Microsoft Visual F# Tools

Visual Studio IntelliCode   2.2
AI-assisted development for Visual Studio.

VisualStudio.DeviceLog   1.0
Information about my package

VisualStudio.Mac   1.0
Mac Extension for Visual Studio

VSPackage Extension   1.0
VSPackage Visual Studio Extension Detailed Info

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin   17.4.0.301 (d17-4@96af3ae)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer   17.4.0.138 (remotes/origin/d17-4@d36bba3cc9)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates   17.4.2 (c457c97)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK   13.1.0.1 (d17-4/13ba222)
Xamarin.Android Reference Assemblies and MSBuild support.
    Mono: a96bde9
    Java.Interop: xamarin/java.interop/d17-4@fcc33ce2
    SQLite: xamarin/sqlite/3.39.3@23e1ae7
    Xamarin.Android Tools: xamarin/xamarin-android-tools/main@0be567a


Xamarin.iOS and Xamarin.Mac SDK   16.0.0.92 (3dd3dc52c)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

Anything else we need to know?

Is there a "how to build and debug" document or video (maybe an old Twitch stream) for the UNO.WCT project? A quick glance at the code made me realize it was going to be a career to get to the point where I could start debugging this.

TextBoxRegex doesn't work within a TabViewItem

this alone in a page works:

<StackPanel>
                    <TextBox Header="Nom" Text="{Binding Nom, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                         extensions:TextBoxRegex.Regex="{x:Bind NomRegex}"
                         extensions:TextBoxRegex.ValidationMode="Forced" 
                         Background="{Binding (extensions:TextBoxRegex.IsValid), RelativeSource={RelativeSource Self}, Converter={StaticResource ValidationConverter}}"
                         Style="{StaticResource InputStyle}"/>
                    <Button Content="OK"/>
                </StackPanel>

but put into a TabViewItem and the TextBoxRegex stops working:

<custom:TabView>
        <custom:TabView.Items>
            <custom:TabViewItem Header="Info">
                <StackPanel>
                    <TextBox Header="Nom" Text="{Binding Nom, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                         extensions:TextBoxRegex.Regex="{x:Bind NomRegex}"
                         extensions:TextBoxRegex.ValidationMode="Forced" 
                         Background="{Binding (extensions:TextBoxRegex.IsValid), RelativeSource={RelativeSource Self}, Converter={StaticResource ValidationConverter}}"
                         Style="{StaticResource InputStyle}"/>
                    <Button Content="OK"/>
                </StackPanel>
            </custom:TabViewItem>
        </custom:TabView.Items>
    </custom:TabView>

with:

public class ValidationConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, string language) => (bool)value ? new SolidColorBrush(Colors.PaleGreen) : new SolidColorBrush(Colors.OrangeRed);
        public object ConvertBack(object value, Type targetType, object parameter, string language) => throw new NotImplementedException();
    }

private string NomRegex { get; } ="^.{2,}$";

MasterDetailsView selection not working

Describe the bug

  • Is this bug a regression in the toolkit? If so, what toolkit version did you last see it work: 6.1.0-build.71.g38c59ea2a0

Steps to Reproduce

Steps to reproduce the behavior:

  1. Use MasterDetailsView, bind some items
  2. Click on an item and observe the view does not change to the details view

Expected behavior

Details of the item hso

Screenshots

If applicable, add screenshots to help explain your problem.

Environment

NuGet Package(s): 

Package Version(s): 

Windows 10 Build Number:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [ ] Insider Build (build number: )

App min and target version:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [ ] Insider Build (xxxxx)

Device form factor:
- [ ] Desktop
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT

Visual Studio 
- [ ] 2017 (version: )
- [ ] 2019 (version: ) 
- [ ] 2019 Preview (version: )

Additional context

Add any other context about the problem here.

HamburgerMenu doesn't work on Droid (bombs app).

I'm submitting a...

Bug report (I searched for similar issues and did not find one)

Current behavior

UWP HamburgerMenu works (from Microsoft.Toolkit...). However, Droid + Uno.Microsoft.Toolkit, compiles, deploys, but bombs immediately on display of the xaml. (logcat cannot connect). Without the HamburgerMenu, the app functions.

Expected behavior

function with HamburgerMenu

Minimal reproduction of the problem with instructions

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <controls:HamburgerMenu></controls:HamburgerMenu>

        <TextBlock Text="Hello, world !" Margin="20" FontSize="30" />
    </Grid>

Environment

Nuget Package(s): 
Uno.Microsoft.Toolkit.Uwp.UI
Uno.Microsoft.Toolkit.Uwp.UI.Controls

Package Version(s): 

Windows 10 Build Number:
- [ ] Insider Build (build number: 17134)

Visual Studio 
15.8.2

ColorPicker has issues on WASM

Describe the bug

Couple of issues with the display of the ColorPicker on WASM (not sure if only when displayed in ColorPickerButton)

  1. Color Palette grid doesn't display.
  2. Sliders don't display until manipulated:

image

image

Didn't test the square picker tab (had it disabled in my scenario).

Steps to Reproduce

                          <controls:ColorPickerButton>
                            <controls:ColorPickerButton.ColorPickerStyle>
                                <Style TargetType="controls:ColorPicker">
                                    <Setter Property="IsAlphaEnabled" Value="False" />
                                    <Setter Property="IsColorSpectrumVisible" Value="False" />
                                    <Setter Property="IsColorPaletteVisible" Value="True" />
                                    <Setter Property="IsColorChannelTextInputVisible" Value="True" />
                                </Style>
                            </controls:ColorPickerButton.ColorPickerStyle>
                        </controls:ColorPickerButton>

Expected behavior

Able to see Palette color grid:

image

Screenshots

Environment

NuGet Package(s): Uno.Microsoft.Toolkit.Uwp.UI.Controls.Input 7.1.11

Package Version(s):

Windows 10 Build Number:

  • Fall Creators Update (16299)
  • April 2018 Update (17134)
  • October 2018 Update (17763)
  • May 2019 Update (18362)
  • May 2020 Update (19041)
  • Insider Build ({build_number})

App min and target version:

  • Fall Creators Update (16299)
  • April 2018 Update (17134)
  • October 2018 Update (17763)
  • May 2019 Update (18362)
  • May 2020 Update (19041)
  • Insider Build ({build_number})

Device form factor:

  • Windows
  • macOS
  • iOS
  • Android
  • WebAssembly
  • WebAssembly renderers for Xamarin.Forms

Visual Studio version:

  • 2017 (15.{minor_version})
  • 2019 (16.{minor_version})
  • 2022 (17.{minor_version})

Additional context

[Feature] Unsigned assembiles?

Describe the problem this feature would solve

I'm using .NET Framework a Uno Platform application, that uses the DataGrid control. However, the application always crashes when initializing the DataGrid as Uno.UI is not strongly-named (a strongly-named assembly is required. (Exception from HRESULT: 0x80131044).

Describe the solution

Either:

  • Strongly Name Uno Platform assemblies (which Jรฉrรดme Laban said you won't)?
  • Release special unsigned builds for use with .NET Framework WPF applications.

Describe alternatives you've considered

Currently I'm cloning your source code and directly reference the project but it's a maintenance burden compared to nuget packages.

Additional context & Screenshots

[droid] project name is missing for the SampleApp

I'm submitting a...

  • Bug report (I searched for similar issues and did not find one)

Current behavior

SampleApp is installed as $projectname$.

Expected behavior

Should be named Microsoft.Toolkit.Uwp.SampleApp.Droid (or prefixed with "Uno."?).

Minimal reproduction of the problem with instructions

Deploy the app on android.

Environment

Device form factor:
- [ ] Desktop
- [x] Mobile: Android
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT

Missing composition API

[wasm]RSS Parser doesnt can't load feed due to CORS

I'm submitting a...

  • Bug report (I searched for similar issues and did not find one)

Current behavior

Rss Parser sample can't load feed because of CORS:

Access to fetch at 'https://visualstudiomagazine.com/rss-feeds/news.aspx' from origin 'http://localhost:49996' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Expected behavior

Feed should load without error.

Minimal reproduction of the problem with instructions

Go to Extensions -> RSS Parser.
And check console log.

Add .NET 6 Mobile support

Describe the bug

Screenshot 2022-03-07 at 18 38 11
Screenshot 2022-03-07 at 19 17 50

Steps to Reproduce

Steps to reproduce the behavior:

  1. Create app from .NET 6 template
  2. Update Uno.UI to 4.2.0-dev.223
  3. Reference Uno.Microsoft.Toolkit.Uwp.UI.Controls 7.1.*
  4. Run on iOS Simulator from Mac device

Expected behavior

Runs without exception

Environment

NuGet Package(s):
Uno.UI 4.2.0-dev.223
Uno.Microsoft.Toolkit.Uwp.UI.Controls 7.1.11

App min and target version:

  • May 2019 Update (18362)

Device form factor:

  • iOS

Visual Studio for Mac 2022 version:

7.0.7303

Additional context

Run on macOS, MAUI Preview 13.7

Android - MasterDetailsView - DetailsTemplate not working

Describe the bug

I have a MasterdetailsView bound to an ObservableCollection and set the ItemTemplate and DetailsTemplate with a DataTemplate set with x:DataType="ViewModel". The ItemTemplate works, but the DetailsTemplate is not rendered correctly. It only shows the string with the full qualified name of my ViewModel-class.

Steps to Reproduce

  1. Add a MasterDetailsView
  2. Bind it to a collection
  3. Add ItemTemplate and DetailsTemplate with x:DataType bound to your ViewModel
  4. Run the app - the DetailsTemplate is not rendered

Expected behavior

The DetailsTemplate gets rendered as it is on UWP.

Environment

NuGet Package(s): Uno.Microsoft.Toolkit.Uwp.UI-Controls v6.1.0-build.191.gc988bdd4ff

Package Version(s): 

Device form factor:
- [ ] Windows
- [ ] macOS
- [?] iOS
- [X] Android
- [ ] WebAssembly
- [ ] WebAssembly renderers for Xamarin.Forms

Visual Studio 
- [ ] 2017 (version: )
- [ ] 2019 (version: ) 
- [X] 2019 Preview (version: 16.7.0 Preview 5.0)

[DataGrid] Some columns don't render content in WASM with "property getter does not exist"

Describe the bug

When using the DataGrid control for WASM, some columns fail to render properly:

WASM:
DataGrid on WASM

UWP:
DataGrid on UWP

  • Is this bug a regression in the toolkit? If so, what toolkit version did you last see it work:

Steps to Reproduce

App code is here: https://github.com/PacktPublishing/Creating-cross-platform-applications-with-Uno/tree/main/Chapter03

Expected behavior

A clear and concise description of what you expected to happen.
Should render properly.

Screenshots

If applicable, add screenshots to help explain your problem.
See above.

Environment

NuGet Package(s): 

Package Version(s): 

Device form factor:
- [ ] Windows
- [ ] macOS
- [ ] iOS
- [ ] Android
- [x] WebAssembly
- [ ] WebAssembly renderers for Xamarin.Forms

Visual Studio 
- [ ] 2017 (version: )
- [x] 2019 (version: 16.10.0) 
- [ ] 2019 Preview (version: )

Additional context

Add any other context about the problem here.

Complete console log:

Setting UNO_BOOTSTRAP_MONO_RUNTIME_MODE=Interpreter
uno-bootstrap.js:11 Setting UNO_BOOTSTRAP_MONO_PROFILED_AOT=False
uno-bootstrap.js:11 Setting UNO_BOOTSTRAP_LINKER_ENABLED=True
uno-bootstrap.js:11 Setting UNO_BOOTSTRAP_DEBUGGER_ENABLED=True
uno-bootstrap.js:11 Setting UNO_BOOTSTRAP_MONO_RUNTIME_CONFIGURATION=release
uno-bootstrap.js:11 Setting UNO_BOOTSTRAP_APP_BASE=package_566390940c3c9619103b5d8737738989f966cd2c
uno-bootstrap.js:438 Done loading the BCL
uno-bootstrap.js:452 Loading dependency (./package_566390940c3c9619103b5d8737738989f966cd2c/WasmWebSockets)
uno-bootstrap.js:452 Loading dependency (./package_566390940c3c9619103b5d8737738989f966cd2c/jquery-pep)
uno-bootstrap.js:452 Loading dependency (./package_566390940c3c9619103b5d8737738989f966cd2c/setImmediate)
uno-bootstrap.js:452 Loading dependency (./package_566390940c3c9619103b5d8737738989f966cd2c/Uno.UI)
uno-bootstrap.js:452 Loading dependency (./package_566390940c3c9619103b5d8737738989f966cd2c/AppManifest)
uno-bootstrap.js:445 Loaded dependency (./package_566390940c3c9619103b5d8737738989f966cd2c/AppManifest) - remains 4 other(s).
uno-bootstrap.js:445 Loaded dependency (./package_566390940c3c9619103b5d8737738989f966cd2c/WasmWebSockets) - remains 3 other(s).
uno-bootstrap.js:445 Loaded dependency (./package_566390940c3c9619103b5d8737738989f966cd2c/jquery-pep) - remains 2 other(s).
uno-bootstrap.js:445 Loaded dependency (./package_566390940c3c9619103b5d8737738989f966cd2c/setImmediate) - remains 1 other(s).
uno-bootstrap.js:445 Loaded dependency (./package_566390940c3c9619103b5d8737738989f966cd2c/Uno.UI) - remains 0 other(s).
uno-bootstrap.js:526 Debugging hotkey: Shift+Alt+D (when application has focus)
โ€‹ fail: Windows.UI.Xaml.Controls.CommandBarFlyout[0]
      The member CommandBarFlyout.CommandBarFlyout() is not implemented in Uno.
eval @ unknown
โ€‹ fail: Windows.UI.Xaml.Controls.TextCommandBarFlyout[0]
      The member TextCommandBarFlyout.TextCommandBarFlyout() is not implemented in Uno.
eval @ unknown
โ€‹ fail: Windows.UI.Xaml.UIElement[0]
      The member event TypedEventHandler<UIElement, AccessKeyInvokedEventArgs> UIElement.AccessKeyInvoked is not implemented in Uno.
eval @ unknown
โ€‹ fail: Windows.UI.Xaml.Media.Animation.PointerUpThemeAnimation[0]
      The member PointerUpThemeAnimation.PointerUpThemeAnimation() is not implemented in Uno.
eval @ unknown
โ€‹ fail: Windows.UI.Xaml.Media.Animation.PointerUpThemeAnimation[0]
      The member void Begin() is not implemented in Uno.
eval @ unknown
WasmWebSockets.js:21 Mixed Content: The page at 'https://localhost:44394/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://[fe80::d422:680e:4d10:7252]:58508/rc'. This request has been blocked; this endpoint must be available over WSS.
connect @ WasmWebSockets.js:21
7Mixed Content: The page at '<URL>' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws:<URL>/rc'. This request has been blocked; this endpoint must be available over WSS.
WasmWebSockets.js:21 Mixed Content: The page at 'https://localhost:44394/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://[fe80::44f2:5734:26af:ff2f]:58508/rc'. This request has been blocked; this endpoint must be available over WSS.
connect @ WasmWebSockets.js:21
WasmWebSockets.js:21 Mixed Content: The page at 'https://localhost:44394/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://[fe80::15eb:2338:66d2:d4f]:58508/rc'. This request has been blocked; this endpoint must be available over WSS.
connect @ WasmWebSockets.js:21
WasmWebSockets.js:21 Mixed Content: The page at 'https://localhost:44394/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://[fe80::3d12:2ec4:e9ee:8e19]:58508/rc'. This request has been blocked; this endpoint must be available over WSS.
connect @ WasmWebSockets.js:21
WasmWebSockets.js:21 Mixed Content: The page at 'https://localhost:44394/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://[2001:4dd5:4934:0:6cd1:4d49:69e:d78a]:58508/rc'. This request has been blocked; this endpoint must be available over WSS.
connect @ WasmWebSockets.js:21
WasmWebSockets.js:21 Mixed Content: The page at 'https://localhost:44394/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://[2001:4dd5:4934:0:3dae:6c54:c501:d26e]:58508/rc'. This request has been blocked; this endpoint must be available over WSS.
connect @ WasmWebSockets.js:21
WasmWebSockets.js:21 Mixed Content: The page at 'https://localhost:44394/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://[fe80::6cd1:4d49:69e:d78a]:58508/rc'. This request has been blocked; this endpoint must be available over WSS.
connect @ WasmWebSockets.js:21
WasmWebSockets.js:21 Mixed Content: The page at 'https://localhost:44394/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://[2001:4dd5:4934:0:847f:26b8:3d7a:b746]:58508/rc'. This request has been blocked; this endpoint must be available over WSS.
connect @ WasmWebSockets.js:21
WasmWebSockets.js:21 Mixed Content: The page at 'https://localhost:44394/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://[2001:4dd5:4934:0:f8ee:e78a:9d9e:a9e0]:58508/rc'. This request has been blocked; this endpoint must be available over WSS.
connect @ WasmWebSockets.js:21
WasmWebSockets.js:21 Mixed Content: The page at 'https://localhost:44394/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://[fe80::f8ee:e78a:9d9e:a9e0]:58508/rc'. This request has been blocked; this endpoint must be available over WSS.
connect @ WasmWebSockets.js:21
WasmWebSockets.js:21 Mixed Content: The page at 'https://localhost:44394/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://[fe80::3462:f58a:7303:aed4]:58508/rc'. This request has been blocked; this endpoint must be available over WSS.
connect @ WasmWebSockets.js:21
โ€‹ warn: Windows.UI.Xaml.UIElement[0]
      The BorderThicknessProperty dependency property does not exist on Windows.UI.Xaml.Controls.ItemsPresenter
eval @ unknown
โ€‹ fail: Windows.UI.Xaml.Media.Animation.PointerUpThemeAnimation[0]
      The member void Deactivate() is not implemented in Uno.
eval @ unknown
โ€‹ fail: Windows.UI.Xaml.Media.Animation.PointerDownThemeAnimation[0]
      The member PointerDownThemeAnimation.PointerDownThemeAnimation() is not implemented in Uno.
eval @ unknown
โ€‹ fail: Windows.UI.Xaml.Automation.Peers.AutomationPeer[0]
      The member RaiseEventIfListener is not implemented in Uno.
eval @ unknown
โ€‹ fail: Uno.UI.DataBinding.BindingPropertyHelper[0]
      The [ScrollViewer] property getter does not exist on type [Windows.UI.Xaml.Controls.MenuFlyoutPresenter]
eval @ unknown
โ€‹ fail: Uno.UI.DataBinding.BindingPropertyHelper[0]
      The [Microsoft.UI.Xaml.Media:RevealBrush.State] property getter does not exist on type [Windows.UI.Xaml.Controls.Grid]
eval @ unknown
โ€‹ fail: Uno.UI.DataBinding.BindingPropertyHelper[0]
      The property setter for [Microsoft.UI.Xaml.Media:RevealBrush.State] does not exist on [Windows.UI.Xaml.Controls.Grid]
eval @ unknown
โ€‹ fail: Uno.UI.DataBinding.BindingPropertyHelper[0]
      The [ScrollViewer] property getter does not exist on type [Windows.UI.Xaml.Controls.TextBox]
eval @ unknown
โ€‹ fail: Windows.UI.Xaml.Controls.Primitives.ComboBoxTemplateSettings[0]
      The member ComboBoxTemplateSettings.DropDownContentMinWidth is not implemented in Uno.
eval @ unknown
โ€‹ fail: Uno.UI.DataBinding.BindingPropertyHelper[0]
      The [ScrollViewer] property getter does not exist on type [Windows.UI.Xaml.Controls.ComboBox]
eval @ unknown
โ€‹ fail: Windows.UI.Xaml.Media.Animation.SplitCloseThemeAnimation[0]
      The member SplitCloseThemeAnimation.SplitCloseThemeAnimation() is not implemented in Uno.
eval @ unknown
โ€‹ fail: Windows.UI.Xaml.Controls.Primitives.ComboBoxTemplateSettings[0]
      The member ComboBoxTemplateSettings.DropDownOffset is not implemented in Uno.
eval @ unknown
โ€‹ fail: Windows.UI.Xaml.Controls.Primitives.ComboBoxTemplateSettings[0]
      The member ComboBoxTemplateSettings.DropDownOpenedHeight is not implemented in Uno.
eval @ unknown
โ€‹ warn: Windows.UI.Xaml.UIElement[0]
      The BorderThicknessProperty dependency property does not exist on Windows.UI.Xaml.Controls.FontIcon
eval @ unknown
โ€‹ fail: Windows.UI.Xaml.UIElement[0]
      The member event TypedEventHandler<UIElement, GettingFocusEventArgs> UIElement.GettingFocus is not implemented in Uno.
eval @ unknown
โ€‹ fail: Uno.UI.DataBinding.BindingPropertyHelper[0]
      The Property [OpenedBy] Getter does not exist on [UnoBookRail.Common.Issues.Issue]
eval @ unknown
โ€‹ fail: Uno.UI.DataBinding.BindingPropertyHelper[0]
      The Property [OpenDate] Getter does not exist on [UnoBookRail.Common.Issues.Issue]
eval @ unknown
โ€‹ fail: Uno.UI.DataBinding.BindingPropertyHelper[0]
      The Property [IsOpen] Getter does not exist on [UnoBookRail.Common.Issues.Issue]
eval @ unknown
โ€‹ fail: Uno.UI.DataBinding.BindingPropertyHelper[0]
      The [ClosedBy] property getter does not exist on type [UnoBookRail.Common.Issues.Issue]
eval @ unknown
โ€‹ fail: Uno.UI.DataBinding.BindingPropertyHelper[0]
      The [CloseDateReadable] property getter does not exist on type [UnoBookRail.Common.Issues.Issue]
eval @ unknown

How can I add UNO.CommunityToolkit.WinUI to the .NET 6 project?

Hi!

I'm writing an open source app, using WinUI 3 and now trying to run it on the other platforms through the UNO Platfrom.
I've segregated the functionality on the different layers (class libraries).
I'm referencing the CommunityToolkit.WinUI library from the library project with target framework net6.0-windows10.0.22000.0
Now I want to connect such project to the .NET6.0 Linux and MacOS app. It's impossible, because of framework differences.
So I'm trying to add one more target framework - .NET 6 to the library.
And the only one conflict, that I have - is CommunityToolkit.WinUI library.

Is it possible to solve it using UNO.CommunityToolkit.WinUI?

image

Please port Microsoft.Toolkit.Uwp.UI.Extensions

I'm submitting a...

Feature request : Please port Microsoft.Toolkit.Uwp.UI.Extensions as it is used, for example, in setting attributes on NavigationView, which is already ported.

Current behavior

This xaml cannot be loaded...

<Page ...
     xmlns:extensions="using:Microsoft.Toolkit.Uwp.UI.Extensions" />

    <NavigationView Style="{StaticResource VSCodeActivityBarStyle}"
                                     MenuItemContainerStyle="{StaticResource LargeIconNavigationViewItemStyle}"
                                     extensions:NavigationViewExtensions.SelectedIndex="0"
                                     extensions:NavigationViewExtensions.CollapseOnClick="True"/>

Expected behavior

loads

where is macOS sample app ?

Describe the bug

A clear and concise description of what the bug is.

  • Is this bug a regression in the toolkit? If so, what toolkit version did you last see it work:

Steps to Reproduce

  • Can this be reproduced in the Sample App? (Either in a sample as-is or with new XAML pasted in the editor.) If so, please provide custom XAML or steps to reproduce. If not, let us know why it can't be reproduced (e.g. more complex setup, environment, dependencies, etc...)

Steps to reproduce the behavior:

  1. Given the following environment (Sample App w/ XAML, Project with Isolated setup, etc...)
  2. Go to '...'
  3. Click on '....'
  4. Scroll down to '....'
  5. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment

NuGet Package(s):

Package Version(s):

Device form factor:

  • Windows
  • macOS
  • iOS
  • Android
  • WebAssembly
  • WebAssembly renderers for Xamarin.Forms

Visual Studio

  • 2017 (version: )
  • 2019 (version: )
  • 2019 Preview (version: )
  • 2019 for Mac enterprise (version: 8.9.8 build 7)

Additional context

Add any other context about the problem here.

7.0.0-gf2e29a45be cannot be use. Not possible to attached to project..

Describe the bug

Cannot be include to project. I did try to change targets, but it is same for all possible targets..

  • Is this bug a regression in the toolkit? If so, what toolkit version did you last see it work:

Steps to Reproduce

  • Can this be reproduced in the Sample App? (Either in a sample as-is or with new XAML pasted in the editor.) If so, please provide custom XAML or steps to reproduce. If not, let us know why it can't be reproduced (e.g. more complex setup, environment, dependencies, etc...)

Steps to reproduce the behavior:

  1. Given the following environment (Sample App w/ XAML, Project with Isolated setup, etc...)
  2. Go to '...'
  3. Click on '....'
  4. Scroll down to '....'
  5. See error

Expected behavior

To be able to attach to project..

Screenshots

If applicable, add screenshots to help explain your problem.
image

Environment

NuGet Package(s): 

Package Version(s): 

Device form factor:
- [x] Windows
- [] macOS
- [] iOS
- [] Android
- [x] WebAssembly
- [x] WebAssembly renderers for Xamarin.Forms

Visual Studio 
- [ ] 2017 (version: )
- [x] 2019 (version: ) 
- [ ] 2019 Preview (version: )

Additional context

Add any other context about the problem here.

WA MarkdownTextBlock does not work

Describe the bug

MarkdownTextBlock does not work in browser, but it works correctly on other platforms.

  • Is this bug a regression in the toolkit? If so, what toolkit version did you last see it work:

Steps to Reproduce

  • Can this be reproduced in the Sample App? (Either in a sample as-is or with new XAML pasted in the editor.) If so, please provide custom XAML or steps to reproduce. If not, let us know why it can't be reproduced (e.g. more complex setup, environment, dependencies, etc...)

Steps to reproduce the behavior:

  1. Simply add the MarkdownTextBlock control
  2. Compile using WebAssembly
  3. Open in the web browser

Expected behavior

Render the Text property correctly

Screenshots

Environment

NuGet Package(s):

Package Version(s):

Windows 10 Build Number:

  • Fall Creators Update (16299)
  • April 2018 Update (17134)
  • October 2018 Update (17763)
  • May 2019 Update (18362)
  • May 2020 Update (19041)
  • Insider Build (22000.376.0)

App min and target version:

  • Fall Creators Update (16299)
  • April 2018 Update (17134)
  • October 2018 Update (17763)
  • May 2019 Update (18362)
  • May 2020 Update (19041)
  • Insider Build ({build_number})

Device form factor:

  • Windows
  • macOS
  • iOS
  • Android
  • WebAssembly
  • WebAssembly renderers for Xamarin.Forms

Visual Studio version:

  • 2017 (15.{minor_version})
  • 2019 (16.{minor_version})
  • 2022 (17.0.4)

Additional context

Adding MenuItems to NavigationView causes an exception (+out of memory for visualstate)

I'm submitting a... Bug report

Current behavior

Adding MenuItems to a NavigationView causes an exception. (Without menu items, the area is blank (no hamburger menu), but doesn't bomb).
Oddly, adding a VisualStateManager (as recommended on https://docs.microsoft.com/en-us/windows/uwp/design/controls-and-patterns/navigationview), causes an Out of Memory Exception (below).

Code including MenuItems that cause an exception

    <Grid Background="Silver">
        <NavigationView x:Name="NavigationViewControl" >
            <NavigationView.MenuItems>
                <NavigationViewItem Content="A" x:Name="A" />
                <NavigationViewItem Content="B" x:Name="B" />
                <NavigationViewItem Content="C" x:Name="C" />
            </NavigationView.MenuItems>
        </NavigationView>
    </Grid>

Adding a VisualStateManager pushes it to Out of Memory...

<Grid >
    <VisualStateManager.VisualStateGroups>
        <VisualStateGroup>
            <VisualState>
                <VisualState.StateTriggers>
                    <AdaptiveTrigger MinWindowWidth="{x:Bind NavigationViewControl.CompactModeThresholdWidth}" />
                </VisualState.StateTriggers>

                <VisualState.Setters>
                    <Setter Target="NavigationViewControl.PaneDisplayMode" Value="Top"/>
                </VisualState.Setters>
            </VisualState>
        </VisualStateGroup>
    </VisualStateManager.VisualStateGroups>

    <NavigationView x:Name="NavigationViewControl" >
        <NavigationView.MenuItems>
            <NavigationViewItem Content="A" x:Name="A" />
            <NavigationViewItem Content="B" x:Name="B" />
            <NavigationViewItem Content="C" x:Name="C" />
        </NavigationView.MenuItems>
    </NavigationView>
</Grid>

Exception is:

Severity	Code	Description	Project	File	Line	Suppression State
Error		System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
   at System.Runtime.InteropServices.Marshal.AllocHGlobal(IntPtr cb)
   at System.Reflection.Internal.NativeHeapMemoryBlock..ctor(Int32 size)
   at System.Reflection.Internal.StreamMemoryBlockProvider.ReadMemoryBlockNoLock(Stream stream, Boolean isFileStream, Int64 start, Int32 size)
   at System.Reflection.PortableExecutable.PEReader..ctor(Stream peStream, PEStreamOptions options, Int32 size)
   at Microsoft.CodeAnalysis.ModuleMetadata.CreateFromStream(Stream peStream, PEStreamOptions options)
   at Microsoft.CodeAnalysis.MetadataReference.CreateFromFile(String path, MetadataReferenceProperties properties, DocumentationProvider documentation)
   at Microsoft.CodeAnalysis.Host.MetadataServiceFactory.Service.<>c__DisplayClass1_0.<.ctor>b__0(String path, MetadataReferenceProperties properties)
   at Microsoft.CodeAnalysis.Host.MetadataReferenceCache.ReferenceSet.GetAddOrUpdate(String path, MetadataReferenceProperties properties)
   at Microsoft.CodeAnalysis.Host.MetadataReferenceCache.GetReference(String path, MetadataReferenceProperties properties)
   at Microsoft.CodeAnalysis.Host.MetadataServiceFactory.Service.GetReference(String resolvedPath, MetadataReferenceProperties properties)
   at Microsoft.CodeAnalysis.Host.WorkspaceMetadataFileReferenceResolver.ResolveReference(String reference, String baseFilePath, MetadataReferenceProperties properties)
   at Microsoft.CodeAnalysis.CommandLineArguments.ResolveMetadataReference(CommandLineReference cmdReference, MetadataReferenceResolver metadataResolver, List`1 diagnosticsOpt, CommonMessageProvider messageProviderOpt)
   at Microsoft.CodeAnalysis.CommandLineArguments.ResolveMetadataReferences(MetadataReferenceResolver metadataResolver, List`1 diagnosticsOpt, CommonMessageProvider messageProviderOpt, List`1 resolved)
   at Microsoft.CodeAnalysis.CommandLineArguments.ResolveMetadataReferences(MetadataReferenceResolver metadataResolver)
   at Microsoft.CodeAnalysis.MSBuild.MSBuildProjectLoader.<LoadProjectAsync>d__23.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.CodeAnalysis.MSBuild.MSBuildProjectLoader.<LoadProjectInfoAsync>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.CodeAnalysis.MSBuild.MSBuildWorkspace.<OpenProjectAsync>d__23.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Uno.SourceGeneration.Host.SourceGeneratorHost.<GetCompilation>d__4.MoveNext() in C:\projects\uno-sourcegeneration\src\Uno.SourceGenerationHost.Shared\SourceGeneratorHost.cs:line 283		 	0	

[Wasm] Infinite measure with PivotPanel

I'm submitting a...

  • Bug report (I searched for similar issues and did not find one)

Current behavior

When navigating to any sample on wasm, the sample page fails to load:

System.InvalidOperationException: PivotPanel-278753: Invalid measured size [1910;Infinity]. NaN or Infinity are invalid desired size.

Expected behavior

The sample page should load without error.

Minimal reproduction of the problem with instructions

Try to navigate navigate to any of the sample, like: Controls -> AlignmentGrid).

Environment

Nuget Package(s): Uno.UI 1.46.228-dev.2699
Package Version(s): 

Device form factor:
- [ ] iOS
- [ ] Android
- [X] WebAssembly
- [ ] Windows
- [ ] Build tasks

Uno Carousel control is not working properly

Describe the bug

I wasn't able to make a carousel to work on ios, android and uwp:
[iOS] - Not able to swipe
[Android] - Control does not show up.
[UWP] - App does not build, got this error: Xaml Internal Error error WMC9999: Type universe cannot resolve assembly: Uno.UI, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null.
while Uno UI is added to the project.

Steps to Reproduce

CarouselTestA.zip

Steps to reproduce the behavior:

Run the attached solution on ios, android and windows and see that it doesn't work properly.

Expected behavior

Control works same as in the windows sample app from Windows Apps Store: https://apps.microsoft.com/store/detail/windows-community-toolkit-sample-app/9NBLGGH4TLCQ?hl=en-ca&gl=CA

Environment

NuGet Package(s):
Uno.Microsoft.Toolkit.Uwp.UI.Controls.Layout 7.1.11,
Uno.UI 4.4.13

OS:
Windows 10 Pro 21H2 19044.1889

IDE:
Visual Studio 2019

IDE version:
16.11.8

Re-enable the ImageCropper control

Describe the problem this feature would solve

In the original Uno WCT post https://platform.uno/blog/uno-platform-support-for-the-windows-community-toolkit/
it mentions that
Some notable parts of the toolkit are not working at the moment:
Windows Composition APIs samples, for which the Uno Platform only has very limited support on iOS only.

I've had a quick look at reintroducing the ImageCropper here:
https://github.com/edparitor/Uno.WindowsCommunityToolkit

I progressed to the point that it's no longer using Win2d and is loading a sample image, but I've realised that the last parts are down to the composition API - at least I think they are.

I've also seen that composition api may be on the 3.1 roadmap
unoplatform/uno#670

Describe the solution

Wait for composition API to be implemented and revisit

Describe alternatives you've considered

Re-implement the image cropper in a completely different way for uno - possibly making more use of skia

Additional context & Screenshots

Expander crashes the app.

Describe the bug

Expander crashes with measure -inf, -inf

Steps to Reproduce

  • Add Expander to the page
  • Launch the app and navigate to that page

Expected behavior

No crash.

Screenshots

Uncaught Error: System.InvalidOperationException: [LayoutTransformControl-42322"PART_LayoutTransformer"/PART_LayoutTransformer: Invalid measured size -Infinity,-Infinity. NaN or Infinity are invalid desired size.
  at Windows.UI.Xaml.FrameworkElement.InnerMeasureCore (:56086/Windows.Foundation.Size availableSize) [0x000e2] in C:\agent\_work\1\s\src\Uno.UI\UI\Xaml\FrameworkElement.Layout.netstd.cs:97

Environment

NuGet Package(s): 6.1.0-build.186.g928c99f74d

Package Version(s): 

Device form factor:
- [x] macOS
- [x] WASM
- [ ] ios (?: not tested)
- [ ] android (?: not tested)
- [ ] uwp

Visual Studio 
- [ ] 2017 (version: )
- [x] 2019 (version: ) 
- [ ] 2019 Preview (version: )

Additional context

Known workaround: Replacing controls:LayoutTransformControl with a Border with same x:Name. And removing the RotateTransform and any visual state setters affecting the RotateLayoutTransform.

ResourceNameToResourceString converter does not find the resource altough it exists.

Describe the bug

Using the converter to obtain a named resource provokes a NullReferenceException in WindowsCommunityToolkit and an empty string in the Uno.WindowsCommunityToolkit.

Steps to Reproduce

Launch the attached solution in Windows head, a NullReferenceException should be thrown after MainPage.InitializeComponent() is executed. If the xaml with the Converter is commented it does not throw.
Launch the attached solution in WPF/Wasm head, a TextBlock with "Hello World", should be seen. The TextBlock which is using the Converter shows an empty string..

The resource is defined in Strings/en/Resources.resw and the same resource name is in a property of the code-behind of MainPage.xaml and x:binded to the Text property of the TextBlock.

Expected behavior

No error should be produced and the string resource should be set to the TextBlock.

Environment

NuGet package(s): Uno.WinUI Uno.WinUI 4.4.13, CommunityToolkit.WinUI.UI 7.1.2, Uno.CommunityToolkit.WinUI.UI 7.1.100-dev.15.g12261e2626

OS:
Windows 11 21H2 22000.739

IDE:
Visual Studio 2022

IDE version:
17.3.0 preview 2

Additional context

See the attached file.
ResourceNameToResourceStringConverterIssue.zip

[Android/Wasm] Accessing control with DeferLoadStrategy=Lazy from code-behind cause NRE

I'm submitting a...

  • Bug report (I searched for similar issues and did not find one)

Current behavior

Clicking on navigation bar item cause NullRerefenceException to be thrown.

Expected behavior

Clicking on navigation bar item should open the sample picker grid.

Minimal reproduction of the problem with instructions

Click on any of navigation bar (NavigationView) items ("Controls", "Helpers", "Extensions")
Nothing is else happening, beside this error in the log:

{System.NullReferenceException: Object reference not set to an instance of an object.
  at Microsoft.Toolkit.Uwp.SampleApp.Shell.NavView_ItemInvoked (Windows.UI.Xaml.Controls.NavigationView sender, Windows.UI.Xaml.Controls.NavigationViewItemInvokedEventArgs args) [0x00016] in D:\code\framework\Uno.WindowsCommunityToolkit\Microsoft.Toolkit.Uwp.SampleApp.Shared\Shell.SamplePicker.cs:132 
  at Microsoft.Toolkit.Uwp.SampleApp.Shell+<>c__DisplayClass39_3.<InitializeComponent>b__18 (Windows.UI.Xaml.Controls.NavigationView NavView_ItemInvoked_sender, Windows.UI.Xaml.Controls.NavigationViewItemInvokedEventArgs NavView_ItemInvoked_args) [0x00000] in D:\code\framework\Uno.WindowsCommunityToolkit\Microsoft.Toolkit.Uwp.SampleApp.Droid\obj\Debug\80\g\XamlCodeGenerator\Shell_5cc82f65c70b06d4e803ccf649193ef0.g.cs:282 
  at Windows.UI.Xaml.Controls.NavigationView.RaiseItemInvoked (System.Object item, System.Boolean isSettings, Windows.UI.Xaml.Controls.NavigationViewItemBase container, Windows.UI.Xaml.Controls.NavigationView+NavigationRecommendedTransitionDirection recommendedDirection) [0x00093] in D:\code\framework\uno\src\Uno.UI\UI\Xaml\Controls\NavigationView\NavigationView.cs:1428 
  at Windows.UI.Xaml.Controls.NavigationView.ChangeSelection (System.Object prevItem, System.Object nextItem) [0x000ac] in D:\code\framework\uno\src\Uno.UI\UI\Xaml\Controls\NavigationView\NavigationView.cs:1330 
  at Windows.UI.Xaml.Controls.NavigationView.OnSelectedItemPropertyChanged (Windows.UI.Xaml.DependencyPropertyChangedEventArgs args) [0x00008] in D:\code\framework\uno\src\Uno.UI\UI\Xaml\Controls\NavigationView\NavigationView.cs:1879 
  at Windows.UI.Xaml.Controls.NavigationView.OnPropertyChanged (Windows.UI.Xaml.DependencyPropertyChangedEventArgs args) [0x00082] in D:\code\framework\uno\src\Uno.UI\UI\Xaml\Controls\NavigationView\NavigationView.cs:2658 
  at Windows.UI.Xaml.Controls.NavigationView+<>c.<.cctor>b__458_27 (Windows.UI.Xaml.DependencyObject s, Windows.UI.Xaml.DependencyPropertyChangedEventArgs e) [0x00000] in D:\code\framework\uno\src\Uno.UI\UI\Xaml\Controls\NavigationView\NavigationView.Properties.cs:491 
  ...

DataGrid doesnt proper loads rows

Describe the bug

Setting the DataGrid.ItemsSource to an enumerable/collection doesnt show the rows of items.
Only the columns are generated, if AutoGenerateColumns has not been set to false.

Steps to Reproduce

Steps to reproduce the behavior:

  • Add a DataGrid to a page
  • Databind OR Set ItemsSource directly from code behind
  • Launch the app, and navigate to that page

Expected behavior

The data to be displayed.

Screenshots

n/a

Environment

NuGet Package(s):

<PackageReference Include="Uno.Microsoft.Toolkit.Uwp.UI.Controls" Version="6.1.0-build.186.g928c99f74d" />
<PackageReference Include="Uno.Microsoft.Toolkit.Uwp.UI.Controls.DataGrid" Version="6.1.0-build.186.g928c99f74d" />
Windows 10 Build Number:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [ ] Insider Build (build number: )

App min and target version:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [ ] Insider Build (xxxxx)

Device form factor:
- [x] macOS
- [x] WASM
- [ ] iOS (?: not tested)
- [ ] Android (?: not tested)
- [ ] UWP

Visual Studio 
- [ ] 2017 (version: )
- [x] 2019 (version: ) 
- [ ] 2019 Preview (version: )

Additional context

note: If you attach the assignment to a button handler. Tapping a first time will make the columns to be generated, and tapping it again will cause the rows to be shown.

workaround:

public static class DataGridExtensions
{
	#region Property: DelayedItemsSource

	public static DependencyProperty DelayedItemsSourceProperty { get; } = DependencyProperty.RegisterAttached(
		"DelayedItemsSource",
		typeof(IEnumerable),
		typeof(DataGridExtensions),
		new PropertyMetadata(default, (d, e) => d.Maybe<DataGrid>(control => OnDelayedItemsSourceChanged(control, e))));

	public static IEnumerable GetDelayedItemsSource(DataGrid obj) => (IEnumerable)obj.GetValue(DelayedItemsSourceProperty);
	public static void SetDelayedItemsSource(DataGrid obj, IEnumerable value) => obj.SetValue(DelayedItemsSourceProperty, value);

	#endregion

	private static void OnDelayedItemsSourceChanged(DataGrid sender, DependencyPropertyChangedEventArgs e)
	{
		// DataGrid not showing rows with initial values, only "late" provided values are displayed somehow...
		// This is the workaround for that:
		_ = RunOnUIThread(() => sender.ItemsSource = (IEnumerable)e.NewValue);
	}

	private static async Task RunOnUIThread(Action action)
	{
		await CoreApplication.MainView.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
		{
			action();
		});
	}
}

for databinding, just bind to that attached property instead of ItemsSource.
for code-behind, just call SetDelayedItemsSource during OnLoaded like so:

Task.Run(() => DataGridExtensions.SetDelayedItemsSource(dg, items));

Windows Community Toolkit AttachedCardShadow and AttachedDropShadow is not working

Originally reported at: https://stackoverflow.com/questions/76208537/windows-community-toolkit-attachedcardshadow-and-attacheddropshadow-is-not-worki

<Compile Remove="Brushes\**\*.cs" />
<None Include="Brushes\**\*.cs" />
<Compile Remove="Geometry\**\*.cs" />
<None Include="Geometry\**\*.cs" />
<Compile Remove="Pipelines\**\*.cs" />
<None Include="Pipelines\**\*.cs" />
<Compile Remove="Effects\**\*.cs" />
<None Include="Effects\**\*.cs" />
<Compile Remove="Animations\**\*.cs" />
<None Include="Animations\**\*.cs" />
<Compile Remove="Visuals\**\*.cs" />
<None Include="Visuals\**\*.cs" />
<Compile Remove="Shadows\**\*.cs" />
<None Include="Shadows\**\*.cs" />
<Compile Remove="Helpers\SurfaceLoader*.cs" />
<None Include="Helpers\SurfaceLoader*.cs" />
<Compile Remove="Enums\ImageBlendMode.cs" />
<None Include="Enums\ImageBlendMode.cs" />
<Compile Remove="Extensions\UIElementExtensions.cs" />
<None Include="Extensions\UIElementExtensions.cs" />

[Android] App fails to compile when duplicate assets with 'targetsize' suffix are present

I'm submitting a...

  • Bug report (I searched for similar issues and did not find one)

Current behavior

Android head wont build because of duplicated assets:

"D:\code\framework\Uno.WindowsCommunityToolkit\Microsoft.Toolkit.Uwp.SampleApp.Droid\Microsoft.Toolkit.Uwp.SampleApp.Droid.csproj" (Build;BuiltProjectOutputGroup;BuiltProjectOutputGroupDependencies;DebugSymbolsProjectOutputGroup;DebugSymbolsProjectOutputGroupDependencies;DocumentationProjectOutputGroup;DocumentationProjectOutputGroupDependencies;SatelliteDllsProjectOutputGroup;SatelliteDllsProjectOutputGroupDependencies;SGenFilesOutputGroup;SGenFilesOutputGroupDependencies target) (1) ->
1>(_UpdateAndroidResgen target) -> 
11>D:\code\framework\Uno.WindowsCommunityToolkit\Microsoft.Toolkit.Uwp.SampleApp.Droid\res\drawable-mdpi-v4\uwpcommunitytoolkitsampleappapplist.targetsize-16.png(1): error APT0000: Resource entry uwpcommunitytoolkitsampleappapplist is already defined.
11>D:\code\framework\Uno.WindowsCommunityToolkit\Microsoft.Toolkit.Uwp.SampleApp.Droid\res\drawable-mdpi-v4\uwpcommunitytoolkitsampleappapplist.png(1): error APT0000: Originally defined here.
11>D:\code\framework\Uno.WindowsCommunityToolkit\Microsoft.Toolkit.Uwp.SampleApp.Droid\res\drawable-mdpi-v4\uwpcommunitytoolkitsampleappapplist.targetsize-16_altform-unplated.png(1): error APT0000: Resource entry uwpcommunitytoolkitsampleappapplist is already defined.
11>D:\code\framework\Uno.WindowsCommunityToolkit\Microsoft.Toolkit.Uwp.SampleApp.Droid\res\drawable-mdpi-v4\uwpcommunitytoolkitsampleappapplist.png(1): error APT0000: Originally defined here.

Expected behavior

Android head should build successfully.

Minimal reproduction of the problem with instructions

Build Microsoft.Toolkit.Uwp.SampleApp.Droid

Environment

Nuget Package(s): Uno.UI
Package Version(s): Uno.UI 1.46.0-dev.1991 or 1.46.219-dev.2617

Device form factor:
- [ ] Desktop
- [x] Mobile: Android
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT

Additional details

See also: unoplatform/uno#1370

[Question] No non-prerelease packages?

I tried finding the Uno WCT ports in the NuGet package manager but wasn't able to since I didn't check the "Include prerelease" checkbox. This left me wondering if there is a reason for this and if this can be pointed out in the readme file maybe since people might not notice that and think there is no Uno WCT port available on NuGet or something else might be broken.

The adaptivegrid control is visible in uwp apps, but not in android and wasm.

Describe the bug

Hello

Added Page to Shared project and AdaptiveGridView.
When executed in UWP, the output is normally displayed on the page. However, when I target and launch the Android app and WASM, the controls are not visible.
Is it normal that it does not appear to be a prerelease?

  • Is this bug a regression in the toolkit? If so, what toolkit version did you last see it work:

Steps to Reproduce

Steps to reproduce the behavior:

  1. Add a page.
  2. Add an AdaptiveGrid control.
  3. Bind to ItemsSource and add ItemTemplate.
  4. Run UWP as the target. (Control outputs normally)
  5. Run Android as a target. (Control not visible)

Expected behavior

A clear and concise description of what you expected to happen.
Control visible

Screenshots

If applicable, add screenshots to help explain your problem.

Environment

NuGet Package(s): 

Package Version(s): 
Uno.Microsoft.Toolkit.Uwp.UI.Controls 6.1.0-build.71.g38c59ea2a0

Windows 10 Build Number:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [x] October 2019 Update (18363)
- [ ] Insider Build (build number: )

App min and target version:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [x] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [ ] Insider Build (xxxxx)

Device form factor:
- [x] Desktop
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT

Visual Studio 
- [ ] 2017 (version: )
- [x] 2019 (version:16.6.0 ) 
- [ ] 2019 Preview (version: )

Additional context

As many as the number of items, this message is displayed.
05-29 16:05:21.745 W/monodroid-assembly(19462): typemap: unable to find mapping to a managed type from Java type 'android/view/DisplayListCanvas'

[WASM][TokenizingTextBox] TokenizingTextBox suggestion don't render properly

Describe the bug

A clear and concise description of what the bug is.

TokenizingTextBox in WASM does not work:

  • If the SelectionItemsSource is not changed, no dropdown is being rendered

  • If you change the SelectionItemsSource and select an item, multiple dropdowns are visible on screen

  • Is this bug a regression in the toolkit? If so, what toolkit version did you last see it work:

Steps to Reproduce

  • Can this be reproduced in the Sample App? (Either in a sample as-is or with new XAML pasted in the editor.) If so, please provide custom XAML or steps to reproduce. If not, let us know why it can't be reproduced (e.g. more complex setup, environment, dependencies, etc...)

Steps to reproduce the behavior:
See attached repro project:

App7.zip

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment

NuGet Package(s): 

Package Version(s): 

Device form factor:
- [ ] Windows
- [ ] macOS
- [ ] iOS
- [ ] Android
- [x] WebAssembly
- [ ] WebAssembly renderers for Xamarin.Forms

Visual Studio 
- [ ] 2017 (version: )
- [x] 2019 (version: 16.10.0) 
- [ ] 2019 Preview (version: )

Additional context

Add any other context about the problem here.

GridSplitter not working in Android and WASM

I'm submitting a...

  • Bug report (I searched for similar issues and did not find one)

Current behavior

Gridsplitter does not resize panels in Android or WASM

Expected behavior

Gridsplitter could be used to resize grid panels on any platform

Minimal reproduction of the problem with instructions

GridsplitterSample.zip

In the attached project, attempt to resize grid in UWP, Android, and WASM. Grid resize only works in UWP (have not tested iOS)

Environment

Nuget Package(s): 
Uno.UI
Uno.Microsoft.Toolkit.Uwp.UI.Controls
Package Version(s): 
1.46.214-dev.2589
5.1.0-build.200.gf9c311b069

Windows 10 Build Number:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] Insider Build (build number: )
18362
App min and target version:
- [x] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] Insider Build (xxxxx)

Device form factor:
- [x] Desktop
- [x] Mobile
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT

Visual Studio 
- [ ] 2017 (version: )
- [ ] 2017 Preview (version: )

DataGrid freezes the app on macOS

Describe the bug

The DataGrid control will cause the app to freeze on macOS once its ItemsSource is populated.
The control will be stuck indefinitely between the MeasureOverride and ArrangeOverride.

Steps to Reproduce

Steps to reproduce the behavior:

  • Add a DataGrid to a page.
  • Databind or Set its ItemsSource (note: there are loading issue with ItemsSource)

    you can either populate as the page loads, or on button press

  • Launch the app, and navigate to that page.
  • Press the button if you've added one
  • Notice the app stopped responding

Expected behavior

The app should not freeze.

Screenshots

n/a

Environment

NuGet Package(s):

<PackageReference Include="Uno.Microsoft.Toolkit.Uwp.UI.Controls" Version="6.1.0-build.186.g928c99f74d" />
<PackageReference Include="Uno.Microsoft.Toolkit.Uwp.UI.Controls.DataGrid" Version="6.1.0-build.186.g928c99f74d" />
Device form factor:
- [x] macOS
- [ ] WASM
- [ ] iOS (?: not tested)
- [ ] Android (?: not tested)
- [ ] UWP

Visual Studio 
- [ ] 2017 (version: )
- [x] 2019 (version: ) 
- [ ] 2019 Preview (version: )

Additional context

n/a

Cell Editing does not work on DataGrid on Android

I'm submitting a...

Bug report (I searched for similar issues and did not find one)

Current behavior

Cell Editing on DataGrid generates error on Android
System.ArgumentOutOfRangeException: Index must be within the bounds of the List.

Expected behavior

Minimal reproduction of the problem with instructions

1.- compile
2.- Go to DataDrid Example, try to edit a cell

Environment

Nuget Package(s): 

Package Version(s): 

Windows 10 Build Number:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ X] May 2019  (18363.387 )

[wct.txt](https://github.com/unoplatform/Uno.WindowsCommunityToolkit/files/3665998/wct.txt)


Device form factor:
- [X ] Android
- [X] iOS
- [X ] WASM
- [ ] Surface Hub
- [ ] IoT

Visual Studio 
- [X ] 2019 16.3.1
- [ ] 2017 Preview (version: )

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.