Bug 43499 - [UWP] ListView item context menu activation area does not fill list item width with Horizontal StackLayout
Summary: [UWP] ListView item context menu activation area does not fill list item widt...
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 2.3.1
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-08-18 01:21 UTC by mbdbk22
Modified: 2017-06-22 02:01 UTC (History)
3 users (show)

Tags: ac, uwp, listview, contextaction
Is this bug a regression?: ---
Last known good build:

Reproducing Project (256.46 KB, application/x-zip-compressed)
2016-08-18 01:21 UTC, mbdbk22

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 43499 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description mbdbk22 2016-08-18 01:21:32 UTC
Created attachment 17096 [details]
Reproducing Project

=== Overview ===
When creating a listview whose viewCells include a horizontal stack layout, the context menu activation bounding box does not fill the whole list item, it only wraps the contents of the stack layout. This only seems reproducible on UWP.

I've attached a reproducing project

=== Steps to Reproduce  ===
Run the attached repro project OR

1. Create a Forms shared project
2. Add a list that has a ViewCell template that includes a horizontal StackLayout and a context menu
3. Activating the context menu (right-click on UWP) only occurs on the content (label, for example)

=== Expected Behavior ===
Any portion of the list item should activate the context menu, as happens on Android (iOS not tested)

=== Actual Behavior ===
The context menu is only activated when right-clicking on the list item contents (label in the provided example)

=== Visual Studio===
Microsoft Visual Studio Community 2015
Version 14.0.25425.01 Update 3
Microsoft .NET Framework
Version 4.6.01586

Installed Version: Community

Visual Basic 2015   00322-20000-00000-AA412
Microsoft Visual Basic 2015

Visual C# 2015   00322-20000-00000-AA412
Microsoft Visual C# 2015

Visual C++ 2015   00322-20000-00000-AA412
Microsoft Visual C++ 2015

Application Insights Tools for Visual Studio Package   7.2.00808.2
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2015 (RC1 Update 1)   14.1.20203.0
ASP.NET and Web Tools 2015 (RC1 Update 1)

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.40314.0
For additional information, visit http://www.asp.net/

AWS Toolkit for Visual Studio 2015
AWS Toolkit for Visual Studio 2015.
Copyright 2011-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.

This software includes third party software subject to the following copyrights:
- Logging from log4net, Apache License 
- Putty for PPK to PEM conversion, MIT license 
- NGit for AWS Elastic Beanstalk incremental push
- NSch dependency for NGit
- Sharpen dependency for NGit
- ICSharpCode.SharpZipLib dependency for NGit
- Mono.Posix.dll and Mono.Security.dll dependencies for NGit
- MPFProj for Visual Studio Project Framework
- JSON Checker for JSON validation

Azure App Service Tools v2.7.1   14.0.11112.0
Azure App Service Tools v2.7.1

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

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

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

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   14.0.60519.0
Microsoft SQL Server Data Tools

TypeScript tools for Visual Studio

Visual Studio Tools for Universal Windows Apps   14.0.25527.01
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Xamarin (fcbe082)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android (1cf254d)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS (f37444a)
Visual Studio extension to enable development for Xamarin.iOS.

=== Operating System ===

Windows 10 Pro Version 1607 Build 14393.51