-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Sync DeveloperBalance sample changes from the MAUI Samples repo to the .NET MAUI repo #32148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
bc61584
8c5d3c0
ad9a7bd
f180ab1
04ec87b
efaf851
5bd70a2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,25 @@ public static MauiApp CreateMauiApp() | |
| #if (IncludeSampleContent) | ||
| .UseMauiCommunityToolkit() | ||
| .ConfigureSyncfusionToolkit() | ||
| //-:cnd:noEmit | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's required?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yea, It's needed for the #IF WINDOWS Calls |
||
| .ConfigureMauiHandlers(handlers => | ||
| { | ||
| #if WINDOWS | ||
| Microsoft.Maui.Controls.Handlers.Items.CollectionViewHandler.Mapper.AppendToMapping("KeyboardAccessibleCollectionView", (handler, view) => | ||
| { | ||
| handler.PlatformView.SingleSelectionFollowsFocus = false; | ||
| }); | ||
|
|
||
| Microsoft.Maui.Handlers.ContentViewHandler.Mapper.AppendToMapping(nameof(Pages.Controls.CategoryChart), (handler, view) => | ||
| { | ||
| if (view is Pages.Controls.CategoryChart && handler.PlatformView is ContentPanel contentPanel) | ||
| { | ||
| contentPanel.IsTabStop = true; | ||
| } | ||
| }); | ||
| #endif | ||
| }) | ||
| //+:cnd:noEmit | ||
| #endif | ||
| .ConfigureFonts(fonts => | ||
| { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| using System; | ||
| using System.Globalization; | ||
| using MauiApp._1.Models; | ||
|
|
||
| namespace MauiApp._1.Pages.Controls; | ||
|
|
||
| public class ChartDataLabelConverter : IValueConverter | ||
| { | ||
| public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture) | ||
| { | ||
| if (value is CategoryChartData categoryData && parameter is string parameterValue) | ||
| { | ||
| if (string.Equals(parameterValue, "title", StringComparison.OrdinalIgnoreCase)) | ||
| { | ||
| return categoryData.Title; | ||
| } | ||
|
|
||
| if (string.Equals(parameterValue, "count", StringComparison.OrdinalIgnoreCase)) | ||
| { | ||
| return categoryData.Count.ToString(); | ||
| } | ||
|
|
||
| return value?.ToString(); | ||
| } | ||
|
|
||
| return value?.ToString(); | ||
| } | ||
|
|
||
| public object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) | ||
| { | ||
| throw new NotImplementedException(); | ||
| } | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.