WindowsCommunityToolkit icon indicating copy to clipboard operation
WindowsCommunityToolkit copied to clipboard

InfiniteCanvas Control Giving Crash On WinUi3 Desktop App

Open sangitamalviya opened this issue 4 years ago • 5 comments

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

sangitamalviya avatar Jul 10 '21 21:07 sangitamalviya

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 🙌

ghost avatar Jul 10 '21 21:07 ghost

@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

michael-hawker avatar Jul 11 '21 23:07 michael-hawker

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

sangitamalviya avatar Jul 12 '21 12:07 sangitamalviya

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).

azchohfi avatar Jul 12 '21 16:07 azchohfi

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

soroshsabz avatar Jul 21 '23 06:07 soroshsabz