Skip to content

SfTabView makes impossible to use CommunityToolkit.Maui.DrawingView #258

@damiansikora85

Description

@damiansikora85

Description

When placing a DrawingView (from .NET MAUI CommunityToolkit) inside an SfTabView, the control consistently fires the DrawingLineCancelled event instead of DrawingLineCompleted when the user lifts their finger/stylus. As a result, all drawn lines disappear immediately after the touch ends.
This issue does not occur if the DrawingView is placed directly on a ContentPage or in a basic MAUI layout (e.g., StackLayout, Grid).

Steps to Reproduce

  • Add Syncfusion SfTabView with at least 2 SfTabItems.
  • Place a DrawingView in one of the tab contents. Example:
    <syncfusion:SfTabView EnableSwiping="False" x:Name="MyTabView"> <syncfusion:SfTabItem Header="Tab 1"> <Label Text="Just some content here" HorizontalOptions="Center" VerticalOptions="Center"/> </syncfusion:SfTabItem> <syncfusion:SfTabItem Header="Drawing"> <!-- Wrapping DrawingView in a non-transparent container --> <Grid InputTransparent="False" BackgroundColor="LightGray"> <toolkit:DrawingView x:Name="MyDrawingView" LineColor="Black" LineWidth="4" DrawingLineCompleted="OnDrawingLineCompleted" DrawingLineStarted="OnDrawingLineStarted" DrawingLineCancelled="OnDrawingLineCancelled" /> </Grid> </syncfusion:SfTabItem> </syncfusion:SfTabView>

Version with bug

1.0.4

Is this a regression from previous behavior?

Not sure, haven't tested other versions

Last Known Working Version

1.0.3

Affected platforms

iOS

Affected Platform Versions

iOS 18

Have you found a workaround?

No

Relevant log output

Metadata

Metadata

Labels

bugSomething isn't workingtabview

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions