CommunityToolkit / WindowsCommunityToolkit

The Windows Community Toolkit is a collection of helpers, extensions, and custom controls. It simplifies and demonstrates common developer tasks building .NET apps with UWP and the Windows App SDK / WinUI 3 for Windows 10 and Windows 11. The toolkit is part of the .NET Foundation.
https://docs.microsoft.com/windows/communitytoolkit/
Other
5.9k stars 1.37k forks source link

InfiniteCanvas Control Giving Crash On WinUi3 Desktop App #4105

Open sangitamalviya opened 3 years ago

sangitamalviya commented 3 years ago

Description: app is getting crash if use InfiniteCanvas control on Winui3 Desktop Application

Steps to reproduce the behavior: 1.Create a new WinUI 3 Desktop App 2.Add a InfiniteCanvas to MainWindow.xaml 3.Start the App && Observe

xmal code :-
<Page
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:controls="using:CommunityToolkit.WinUI.UI.Controls"
    mc:Ignorable="d"
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
    <Grid>
        <controls:InfiniteCanvas x:Name="InfiniteCanvasControl" IsToolbarVisible="True"/>
    </Grid>

Enviroment: NuGet Package(s): CommunityToolkit.WinUI.UI.Controls(7.0.2) Microsoft.ProjectReunion(0.5.7) InfiniteCanvasBug

ghost commented 3 years ago

Hello sangitamalviya, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

michael-hawker commented 3 years ago

@sangitamalviya there's a new version for Reunion 0.8 as well for 7.0.3, do you see the same issue there?

Can you also provide the details from the exception and stack trace. You can inspect the e parameter to the UnhandledException to get those.

FYI @azchohfi

sangitamalviya commented 3 years ago

hi @michael-hawker, I have updated ProjectReunion with version 0.8.0 still it's giving exception.On e parameter it shows Element not found. (0x80070490) stacktrace

azchohfi commented 3 years ago

Hello @sangitamalviya. This is a known issue. The InfiniteCanvas control doesn't work in WinUI3 and will not work until WinUI3 supports Inking (Microsoft.UI.Xaml.Controls.Ink* such as InfiniteCanvas, InkSynchronizer, InkToolbar, etc).

soroshsabz commented 1 year ago

related to https://github.com/microsoft/microsoft-ui-xaml/discussions/7426