Maui Click, MouseEnter nor MouseLeave events are NOT invoked
Posted: Mon Jan 29, 2024 6:13 pm
Problems:
o Series.Click
o Series.MouseEnter
o Series.MouseLeave
Series:
Activityguage
Area
Bar Works only on Windows when the chart only contain no other series types
Bubble
Candle
Contour
Donut
Fastline
Gantt
Highly
Histogram
Horizarea
Horizbar
Horizline
Isosurface
Line Works only on Windows when the chart only contain no other series types
Pie
Point
Polargrid
Pyramid
Shape
Surface
TagCloud
Tower
Veriz
Vector3d
Volume
Volumepipe
Waterfall
Windrose
I have taken your TeeChartMAUIDemos solutions added some code to demonstrate these events never get called, for the Series listed above.
Load solution and search for the following: Added Code
Code behind View files modified:
AllCharts, AreaChart, BarChart, BuubleChart, CandleChart, CircleGaugeChart,
DonutChart, LineChart, MapChart
Approach: 1) Code as added to the bottom of each constructor, like:
bar.Click += Bar_Click;
bar.MouseEnter += Bar_MouseEnter;
bar.MouseLeave += Bar_MouseLeave;
2) Added a region contained new methods that were created, Like:
private void Bar_Click( object sender, MouseEventArg e )
{
throw new NotImplemented();
}
private void Bar_MouseEnter( object sender, EventArg e )
{
throw new NotImplemented();
}
private void Bar_MouseLeave object sender, EventArg e )
{
throw new NotImplemented();
}
Test Environment:
PC: Windows11 Operating System, Visual Studio 2022
Updated all NU get Packages in the solution to latest version as of 01/27/2023
Debugged: Window Machine, Android Emulators, IOS Simulators
Failures:
1) MouseEnter nor MouseLeave events were NOT invoked
when running any of the Debug configurations listed above
2) Click events when Android or IOS Configs
o. NOT invoked for all series listed above
Click events when running under Window Machine Config
o. Invoked when testing
a) BarChart
b) LineChart
c) CircularGaugeChart
o. NOT invoked for all series listed above when tested in the AllCharts
NOTE: Line, Bar also fail to invoke, seem to only work
when event handlers are not added for other series types
We ported our application from using your WPF version to Maui Version. We are hoping to release the Maui version next month. Hoping you can help.
Thanks,89o
Steven McCabe
SqlTac@gmail.com
(303) 903-8654
o Series.Click
o Series.MouseEnter
o Series.MouseLeave
Series:
Activityguage
Area
Bar Works only on Windows when the chart only contain no other series types
Bubble
Candle
Contour
Donut
Fastline
Gantt
Highly
Histogram
Horizarea
Horizbar
Horizline
Isosurface
Line Works only on Windows when the chart only contain no other series types
Pie
Point
Polargrid
Pyramid
Shape
Surface
TagCloud
Tower
Veriz
Vector3d
Volume
Volumepipe
Waterfall
Windrose
I have taken your TeeChartMAUIDemos solutions added some code to demonstrate these events never get called, for the Series listed above.
Load solution and search for the following: Added Code
Code behind View files modified:
AllCharts, AreaChart, BarChart, BuubleChart, CandleChart, CircleGaugeChart,
DonutChart, LineChart, MapChart
Approach: 1) Code as added to the bottom of each constructor, like:
bar.Click += Bar_Click;
bar.MouseEnter += Bar_MouseEnter;
bar.MouseLeave += Bar_MouseLeave;
2) Added a region contained new methods that were created, Like:
private void Bar_Click( object sender, MouseEventArg e )
{
throw new NotImplemented();
}
private void Bar_MouseEnter( object sender, EventArg e )
{
throw new NotImplemented();
}
private void Bar_MouseLeave object sender, EventArg e )
{
throw new NotImplemented();
}
Test Environment:
PC: Windows11 Operating System, Visual Studio 2022
Updated all NU get Packages in the solution to latest version as of 01/27/2023
Debugged: Window Machine, Android Emulators, IOS Simulators
Failures:
1) MouseEnter nor MouseLeave events were NOT invoked
when running any of the Debug configurations listed above
2) Click events when Android or IOS Configs
o. NOT invoked for all series listed above
Click events when running under Window Machine Config
o. Invoked when testing
a) BarChart
b) LineChart
c) CircularGaugeChart
o. NOT invoked for all series listed above when tested in the AllCharts
NOTE: Line, Bar also fail to invoke, seem to only work
when event handlers are not added for other series types
We ported our application from using your WPF version to Maui Version. We are hoping to release the Maui version next month. Hoping you can help.
Thanks,89o
Steven McCabe
SqlTac@gmail.com
(303) 903-8654