From e5ba60171501609b30fdf5d0e213e2b405b2a05c Mon Sep 17 00:00:00 2001 From: saiganesh-sakthivel Date: Fri, 15 Nov 2024 19:57:45 +0530 Subject: [PATCH 01/16] Migration the .NET 9 changes into the Syncfusion toolkit for .NET MAUI --- maui/samples/Gallery/App.xaml.cs | 24 +- maui/samples/Gallery/AppHostBuilder.cs | 6 +- .../NeumorphismView/SfNeumorphismView.cs | 8 +- .../Gallery/Controls/SfEffectsViewAdv.cs | 7 - .../Converters/BrushToColorConverter.cs | 7 +- .../Converters/InvertedBoolConverter.cs | 7 +- .../Converters/TagToPaddingConverter.cs | 7 +- .../Gallery/CustomView/CustomCardLayout.cs | 2 - .../CustomView/GettingStartedView.xaml | 10 +- .../CustomView/GettingStartedView.xaml.cs | 133 +- maui/samples/Gallery/CustomView/SfEntry.cs | 7 +- maui/samples/Gallery/MauiProgram.cs | 44 +- .../Gallery/Platforms/Android/MainActivity.cs | 1 - .../Platforms/Android/MainApplication.cs | 3 - .../Platforms/MacCatalyst/AppDelegate.cs | 2 - .../Gallery/Platforms/MacCatalyst/Program.cs | 3 +- .../Gallery/Platforms/iOS/AppDelegate.cs | 2 - maui/samples/Gallery/Platforms/iOS/Program.cs | 3 +- .../Platforms/iOS/QLPreviewItemFileSystem.cs | 1 - .../{Sync FontIcons.ttf => SyncFontIcons.ttf} | Bin ..._selection.png => effectviewselection.png} | Bin ...people_circle16.png => peoplecircle16.png} | Bin ...people_circle17.png => peoplecircle17.png} | Bin ...people_circle18.png => peoplecircle18.png} | Bin ...people_circle23.png => peoplecircle23.png} | Bin ...people_circle25.png => peoplecircle25.png} | Bin ...people_circle26.png => peoplecircle26.png} | Bin .../{people_circle5.png => peoplecircle5.png} | Bin .../{people_circle9.png => peoplecircle9.png} | Bin .../GettingStarted/GettingStartedDesktop.xaml | 10 +- .../GettingStartedDesktop.xaml.cs | 44 +- .../GettingStarted/GettingStartedMobile.xaml | 4 +- .../GettingStartedMobile.xaml.cs | 47 +- .../Carousel/ViewModel/CarouselViewModel.cs | 18 +- .../CartesianChart/Axis/CategoryAxis.xaml.cs | 3 +- .../Axis/LogarithmicAxis.xaml.cs | 1 - .../CartesianChart/Axis/NumericalAxis.xaml.cs | 3 +- .../CartesianChart/Bar/BarBackToBack.xaml.cs | 27 +- .../BubbleChart/BubbleChartAnimation.xaml.cs | 59 +- .../BubbleChart/DefaultBubbleChart.xaml.cs | 63 +- .../MultipleColorBubbleSeries.xaml.cs | 69 +- .../CartesianChartColorResources.xaml.cs | 10 +- .../RangeBar/RangeBarAnimation.xaml.cs | 57 +- .../RangeColumn/RangeColumnAnimation.xaml.cs | 57 +- .../Selection/Selection.xaml.cs | 3 +- .../StackedArea/StackedAreaChart.xaml.cs | 47 +- .../StackedLine/StackedLineChart.xaml.cs | 29 +- .../StepAreaChart/StepAreaChart.xaml.cs | 92 +- .../StepAreaChart_DynamicUpdate.xaml.cs | 47 +- .../ChipCustomization.xaml.cs | 15 +- .../ChipCustomizationDesktop.xaml | 17 +- .../ChipCustomizationDesktop.xaml.cs | 854 +++--- .../ChipCustomizationMobile.xaml | 10 +- .../ChipCustomizationMobile.xaml.cs | 839 ++--- .../ChipGettingStaredMobile.xaml | 5 +- .../ChipGettingStaredMobile.xaml.cs | 101 +- .../ChipGettingStarted.xaml.cs | 16 +- .../ChipGettingStartedDesktop.xaml | 10 +- .../ChipGettingStartedDesktop.xaml.cs | 102 +- .../Samples/Chips/ChipTypes/ChipTypes.xaml.cs | 15 +- .../Chips/ChipTypes/ChipTypesDesktop.xaml | 33 +- .../Chips/ChipTypes/ChipTypesDesktop.xaml.cs | 15 +- .../Chips/ChipTypes/ChipTypesMobile.xaml | 3 +- .../Chips/ChipTypes/ChipTypesMobile.xaml.cs | 15 +- .../Gallery/Samples/Chips/Helper/Behaviors.cs | 146 +- .../Samples/Chips/ViewModel/ChipViewModel.cs | 2035 ++++++------- .../CircularChartColorResources.xaml.cs | 11 +- .../Doughnut/CenterElevation.xaml.cs | 4 - .../Doughnut/SemiDoughnutChart.xaml.cs | 4 +- .../Interaction/Selection.xaml.cs | 4 +- .../CircularChart/Interaction/Tooltip.xaml.cs | 4 +- .../RadialBar/CustomizedRadialBarChart.xaml | 5 +- .../CustomizedRadialBarChart.xaml.cs | 2 - .../CircularChart/ViewModel/BaseViewModel.cs | 1 - .../Samples/CircularChart/ViewModel/Model.cs | 5 +- .../RippleAnimation/RippleAnimation.xaml | 2 +- .../RotateAnimation/RotateAnimation.xaml | 9 +- .../ScaleAnimation/ScaleAnimation.xaml | 4 +- .../ScaleAnimation/ScaleAnimation.xaml.cs | 4 +- .../FunnelChartColorResources.xaml.cs | 11 +- .../FunnelChart/ViewModel/BaseViewModel.cs | 3 +- .../Samples/FunnelChart/ViewModel/Model.cs | 5 +- .../FunnelChart/ViewModel/ViewModel.cs | 7 +- .../GettingStarted/Helper/Converter.cs | 266 +- .../Helper/NavigationDrawerBehavior.cs | 698 ++--- .../GettingStarted/Model/MailInfo.cs | 359 +-- .../Model/MailInfoRepository.cs | 465 +-- .../View/GettingStarted.xaml.cs | 25 +- .../View/GettingStartedDesktop.xaml | 13 +- .../View/GettingStartedDesktop.xaml.cs | 14 +- .../View/GettingStartedMobile.xaml | 48 +- .../ViewModel/MailInfoViewModel.cs | 511 ++-- .../PolarChart/Interaction/Tooltip.xaml.cs | 25 +- .../PolarChartColorResources.xaml.cs | 11 +- .../PolarRadarDemo/DefaultPolar.xaml.cs | 123 +- .../PolarRadarDemo/DefaultRadar.xaml.cs | 123 +- .../PolarRadarDemo/PolarDataLabel.xaml.cs | 93 +- .../ListViewPullToRefresh/Helper/Converter.cs | 236 +- .../Helper/ListViewPullToRefreshBehavior.cs | 438 +-- .../ListViewPullToRefresh/Model/InboxInfo.cs | 375 +-- .../Model/ListViewInboxInfoRepository.cs | 497 +-- .../View/ListViewPullToRefresh.xaml | 28 +- .../View/ListViewPullToRefresh.xaml.cs | 12 +- .../ViewModel/ListViewInboxInfoViewModel.cs | 169 +- .../Helper/PullToRefreshConverter.cs | 7 +- .../Helper/PullToRefreshViewBehavior.cs | 209 +- .../PullToRefreshView/Model/WeatherData.cs | 231 +- .../View/PullToRefreshView.xaml | 18 +- .../View/PullToRefreshView.xaml.cs | 13 +- .../ViewModel/PullToRefreshViewModel.cs | 484 +-- .../PyramidChart/PyramidChartDemo/Legend.xaml | 2 +- .../PyramidChartColorResources.xaml.cs | 11 +- .../PyramidChart/ViewModel/BaseViewModel.cs | 3 +- .../Samples/PyramidChart/ViewModel/Model.cs | 7 +- .../PyramidChart/ViewModel/ViewModel.cs | 10 +- .../View/GettingStarted.xaml.cs | 1 - .../View/GettingStartedDesktopUI.xaml | 2 +- .../View/GettingStartedDesktopUI.xaml.cs | 1 - .../View/GettingStartedMobileUI.xaml | 5 +- .../View/GettingStartedMobileUI.xaml.cs | 3 +- .../ViewModel/GettingStartedViewModel.cs | 19 +- .../Samples/Shimmer/Articles/Articles.xaml | 16 +- .../Samples/Shimmer/Articles/Articles.xaml.cs | 287 +- .../Gallery/Samples/Shimmer/Chats/Chats.xaml | 12 +- .../Samples/Shimmer/Chats/Chats.xaml.cs | 277 +- .../GettingStarted/GettingStarted.xaml | 13 +- .../GettingStarted/GettingStarted.xaml.cs | 141 +- .../TabView/Customization/Customization.xaml | 16 +- .../TabView/SizeToContent/SizeToContent.xaml | 90 +- .../TabViewGettingStarted.xaml | 22 +- .../TabViewGettingStarted.xaml.cs | 25 +- .../PaymentPage/PaymentPage.xaml.cs | 15 +- .../PaymentPage/PaymentPageDesktop.xaml | 2 +- .../PaymentPage/PaymentPageDesktop.xaml.cs | 195 +- .../PaymentPage/PaymentPageMobile.xaml.cs | 205 +- .../SignUpPage/SignUpPage.xaml.cs | 15 +- .../SignUpPage/SignUpPageDesktop.xaml | 21 +- .../SignUpPage/SignUpPageDesktop.xaml.cs | 699 ++--- .../SignUpPage/SignUpPageMobile.xaml | 19 +- .../SignUpPage/SignUpPageMobile.xaml.cs | 699 ++--- .../Syncfusion.Maui.ControlsGallery.csproj | 102 +- .../samples/Gallery/View/MainPageAndroid.xaml | 22 +- .../Gallery/View/MainPageAndroid.xaml.cs | 2563 ++++++++-------- .../Gallery/View/MainPageMacCatalyst.xaml | 73 +- .../Gallery/View/MainPageMacCatalyst.xaml.cs | 2630 ++++++++-------- .../samples/Gallery/View/MainPageWindows.xaml | 94 +- .../Gallery/View/MainPageWindows.xaml.cs | 2709 +++++++++-------- maui/samples/Gallery/View/MainPageiOS.xaml | 28 +- maui/samples/Gallery/View/MainPageiOS.xaml.cs | 2234 +++++++------- .../Gallery/ViewModel/SamplesViewModel.cs | 7 +- maui/samples/Sandbox/App.xaml.cs | 9 +- .../Syncfusion.Maui.Samples.Sandbox.csproj | 11 +- maui/src/AssemblyInfo.cs | 3 +- .../Carousel/Platform/SfCarouselResources.cs | 4 +- .../Windows/PlatformCarousel.Windows.cs | 7 +- .../Windows/Styles/CarouselStyles.xaml.cs | 3 +- .../Platform/Windows/Styles/Resources.xaml.cs | 8 +- .../Platform/iOS/PlatformCarousel.iOS.cs | 45 +- maui/src/Carousel/SfCarousel.cs | 9 +- maui/src/Charts/Annotation/ChartAnnotation.cs | 6 +- .../Charts/Annotation/EllipseAnnotation.cs | 4 +- .../Annotation/HorizontalLineAnnotation.cs | 5 +- maui/src/Charts/Annotation/LineAnnotation.cs | 6 +- .../Charts/Annotation/RectangleAnnotation.cs | 3 +- maui/src/Charts/Annotation/ShapeAnnotation.cs | 4 +- maui/src/Charts/Annotation/TextAnnotation.cs | 4 +- .../Annotation/VerticalLineAnnotation.cs | 5 +- maui/src/Charts/Annotation/ViewAnnotation.cs | 35 +- maui/src/Charts/Area/CartesianChartArea.cs | 6 +- maui/src/Charts/Area/CartesianPlotArea.cs | 4 +- maui/src/Charts/Area/ChartPlotArea.cs | 3 - maui/src/Charts/Area/CircularChartArea.cs | 4 +- maui/src/Charts/Area/CircularPlotArea.cs | 5 +- .../Charts/Area/Partial/CartesianChartArea.cs | 5 +- maui/src/Charts/Area/PolarChartArea.cs | 9 +- maui/src/Charts/Area/PyramidChartArea.cs | 3 - maui/src/Charts/Axis/CategoryAxis.cs | 6 +- maui/src/Charts/Axis/ChartAxis.cs | 6 +- .../Axis/ChartAxisPartial/CategoryAxis.cs | 4 +- .../Charts/Axis/ChartAxisPartial/ChartAxis.cs | 7 +- .../Axis/ChartAxisPartial/DateTimeAxis.cs | 5 +- .../Axis/ChartAxisPartial/NumericalAxis.cs | 4 +- .../Axis/ChartAxisPartial/RangeAxisBase.cs | 5 +- .../Charts/Axis/Layouts/AxisLabelLayout.cs | 7 +- .../Axis/Layouts/CartesianAxisLayout.cs | 8 +- .../Axis/Layouts/CartesianGridLineLayout.cs | 5 +- .../Charts/Axis/Layouts/PolarAxisLayout.cs | 6 +- .../Axis/Layouts/PolarGridLineLayout.cs | 5 +- maui/src/Charts/Axis/LogarithmicAxis.cs | 5 +- maui/src/Charts/Axis/NumericalAxis.cs | 5 +- maui/src/Charts/Axis/RangeAxisBase.cs | 5 +- .../Renderer/CartesianAxisElementRenderer.cs | 5 +- .../Renderer/CartesianAxisLabelsRenderer.cs | 4 +- .../Axis/Renderer/CartesianAxisRenderer.cs | 4 +- maui/src/Charts/Behaviors/ChartBehavior.cs | 5 +- .../Behaviors/ChartSelectionBehavior.cs | 5 +- .../Charts/Behaviors/ChartTooltipBehavior.cs | 11 +- .../Behaviors/ChartTrackballBehavior.cs | 2 +- .../Charts/Behaviors/ChartZoomPanBehavior.cs | 5 - .../Behaviors/DataPointSelectionBehavior.cs | 6 +- .../Behaviors/SeriesSelectionBehavior.cs | 7 +- maui/src/Charts/Behaviors/TooltipInfo.cs | 3 - .../Charts/Behaviors/TrackballPointInfo.cs | 4 +- maui/src/Charts/ChartBase.cs | 9 +- .../Collection/ChartPolarSeriesCollection.cs | 1 - .../Collection/ChartSeriesCollection.cs | 1 - .../Converter/TemplateVisibilityConverter.cs | 4 +- .../DataLabel/CartesianDataLabelSettings.cs | 7 +- .../DataLabel/ChartDataLabelSettings.cs | 6 +- .../DataLabel/CircularDataLabelSettings.cs | 5 +- .../src/Charts/DataLabel/DataLabelItemView.cs | 11 +- .../DataLabel/PolarDataLabelSettings.cs | 4 +- .../DataLabel/PyramidDataLabelSettings.cs | 5 +- maui/src/Charts/DataLabel/SfTemplatedView.cs | 4 +- .../Events/ActualRangeChangedEventArgs.cs | 4 +- .../Charts/Events/ChartAxisLabelEventArgs.cs | 4 +- .../Charts/Events/ChartSelectionEventArgs.cs | 4 +- maui/src/Charts/Events/ChartZoomEventArgs.cs | 5 +- maui/src/Charts/Events/TrackballEventArgs.cs | 5 +- maui/src/Charts/Interfaces/IChart.cs | 4 +- maui/src/Charts/Interfaces/IChartArea.cs | 3 +- .../Interfaces/IDataTemplateDependent.cs | 3 +- .../IDatapointSelectionDependent.cs | 3 +- .../Charts/Interfaces/ILayoutCalculator.cs | 4 +- .../src/Charts/Interfaces/IMarkerDependent.cs | 3 +- .../Interfaces/IPyramidChartDepedent.cs | 5 +- maui/src/Charts/Interfaces/ISBSDependent.cs | 6 +- .../Charts/Interfaces/ITooltipDependent.cs | 5 +- maui/src/Charts/Layouts/AnnotationLayout.cs | 4 +- maui/src/Charts/Layouts/ChartAxisView.cs | 1 - maui/src/Charts/Layouts/ChartDataLabelView.cs | 3 +- maui/src/Charts/Layouts/ChartPlotBandView.cs | 4 +- maui/src/Charts/Layouts/ChartSeriesView.cs | 2 - maui/src/Charts/Layouts/ChartTitleView.cs | 22 +- maui/src/Charts/Layouts/ChartTrackballView.cs | 3 +- maui/src/Charts/Layouts/ChartZoomPanView.cs | 6 +- maui/src/Charts/Layouts/DataLabelLayout.cs | 11 +- maui/src/Charts/Layouts/PyramidChartView.cs | 3 +- maui/src/Charts/Legend/ChartLegend.cs | 5 - maui/src/Charts/Model/ChartColorModel.cs | 6 +- maui/src/Charts/Model/ChartDataLabel.cs | 3 +- maui/src/Charts/PlotBand/ChartPlotBand.cs | 6 +- maui/src/Charts/PlotBand/DateTimePlotBand.cs | 5 +- maui/src/Charts/PlotBand/NumericalPlotBand.cs | 5 +- maui/src/Charts/Segment/AreaSegment.cs | 6 +- .../Charts/Segment/BoxAndWhiskerSegment.cs | 6 +- maui/src/Charts/Segment/BubbleSegment.cs | 5 +- maui/src/Charts/Segment/CartesianSegment.cs | 4 +- maui/src/Charts/Segment/ChartSegment.cs | 5 +- maui/src/Charts/Segment/ColumnSegment.cs | 5 +- maui/src/Charts/Segment/DoughnutSegment.cs | 5 +- maui/src/Charts/Segment/ErrorBarSegment.cs | 6 +- maui/src/Charts/Segment/FastLineSegment.cs | 6 +- maui/src/Charts/Segment/FunnelSegment.cs | 19 +- .../Charts/Segment/HiLoOpenCloseSegment.cs | 5 +- maui/src/Charts/Segment/HistogramSegment.cs | 4 +- maui/src/Charts/Segment/LineSegment.cs | 5 +- maui/src/Charts/Segment/PieSegment.cs | 6 +- maui/src/Charts/Segment/PolarAreaSegment.cs | 6 +- maui/src/Charts/Segment/PolarLineSegment.cs | 5 +- maui/src/Charts/Segment/PyramidSegment.cs | 19 +- maui/src/Charts/Segment/RadialBarSegment.cs | 6 +- maui/src/Charts/Segment/RangeAreaSegment.cs | 6 +- maui/src/Charts/Segment/RangeColumnSegment.cs | 5 +- maui/src/Charts/Segment/ScatterSegment.cs | 2 - maui/src/Charts/Segment/SplineAreaSegment.cs | 5 +- .../Charts/Segment/SplineRangeAreaSegment.cs | 7 +- maui/src/Charts/Segment/SplineSegment.cs | 5 +- .../src/Charts/Segment/StackingAreaSegment.cs | 4 - maui/src/Charts/Segment/StepAreaSegment.cs | 6 +- maui/src/Charts/Segment/StepLineSegment.cs | 4 +- maui/src/Charts/Segment/WaterfallSegment.cs | 5 +- maui/src/Charts/Series/BoxAndWhiskerSeries.cs | 8 +- maui/src/Charts/Series/BubbleSeries.cs | 6 +- maui/src/Charts/Series/CandleSeries.cs | 4 +- maui/src/Charts/Series/CartesianSeries.cs | 7 +- maui/src/Charts/Series/ChartSeries.cs | 13 +- maui/src/Charts/Series/ChartSeriesPartial.cs | 5 +- maui/src/Charts/Series/ColumnSeries.cs | 6 +- maui/src/Charts/Series/ErrorBarSeries.cs | 3 - maui/src/Charts/Series/FinancialSeriesBase.cs | 6 +- maui/src/Charts/Series/HiLoOpenCloseSeries.cs | 4 - maui/src/Charts/Series/HistogramSeries.cs | 7 +- maui/src/Charts/Series/LineSeries.cs | 4 +- maui/src/Charts/Series/PieSeries.cs | 6 +- maui/src/Charts/Series/PolarAreaSeries.cs | 6 +- maui/src/Charts/Series/PolarLineSeries.cs | 4 +- maui/src/Charts/Series/PolarSeries.cs | 7 +- maui/src/Charts/Series/RadialBarSeries.cs | 5 +- maui/src/Charts/Series/RangeAreaSeries.cs | 68 +- maui/src/Charts/Series/RangeColumnSeries.cs | 66 +- maui/src/Charts/Series/RangeSeriesBase .cs | 90 +- maui/src/Charts/Series/ScatterSeries.cs | 2 - maui/src/Charts/Series/SplineAreaSeries.cs | 6 +- .../Charts/Series/SplineRangeAreaSeries.cs | 64 +- maui/src/Charts/Series/SplineSeries.cs | 5 +- maui/src/Charts/Series/StackingAreaSeries.cs | 6 +- .../src/Charts/Series/StackingColumnSeries.cs | 7 +- maui/src/Charts/Series/StackingLineSeries.cs | 8 +- maui/src/Charts/Series/StackingSeriesBase.cs | 5 +- maui/src/Charts/Series/StepAreaSeries.cs | 5 +- maui/src/Charts/Series/StepLineSeries.cs | 4 +- maui/src/Charts/Series/WaterfallSeries.cs | 6 +- maui/src/Charts/Series/XYDataSeries.cs | 5 +- maui/src/Charts/SfCartesianChart.cs | 17 +- maui/src/Charts/SfCircularChart.cs | 4 +- maui/src/Charts/SfFunnelChart.cs | 7 +- maui/src/Charts/SfPolarChart.cs | 12 +- maui/src/Charts/SfPyramidChart.cs | 7 +- maui/src/Charts/Styles/AxisTitleStyle.cs | 5 +- .../Styles/ChartAnnotationLabelStyle.cs | 4 +- maui/src/Charts/Styles/ChartAxisLabelStyle.cs | 6 +- maui/src/Charts/Styles/ChartAxisRangeStyle.cs | 4 +- maui/src/Charts/Styles/ChartAxisTickStyle.cs | 4 +- maui/src/Charts/Styles/ChartDataLabelStyle.cs | 6 +- maui/src/Charts/Styles/ChartLabelStyle.cs | 5 +- .../Charts/Styles/ChartLegendLabelStyle.cs | 6 +- maui/src/Charts/Styles/ChartLineStyle.cs | 4 +- maui/src/Charts/Styles/ChartMarkerSettings.cs | 4 +- .../Charts/Styles/ChartPlotBandLabelStyle.cs | 4 +- maui/src/Charts/Styles/ConnectorLineStyle.cs | 4 +- maui/src/Charts/Styles/ErrorBarLineStyle.cs | 4 +- .../Themes/SfCartesianChartStyles.xaml.cs | 31 +- .../Charts/Themes/SfChartCommonStyle.xaml.cs | 29 +- .../Themes/SfCircularChartStyles.xaml.cs | 29 +- .../Charts/Themes/SfFunnelChartStyles.xaml.cs | 30 +- .../Charts/Themes/SfPolarChartStyles.xaml.cs | 29 +- .../Themes/SfPyramidChartStyles.xaml.cs | 29 +- maui/src/Charts/Utils/CanvasExtensions.cs | 3 +- maui/src/Charts/Utils/ChartColor.cs | 4 +- maui/src/Charts/Utils/ChartDataUtils.cs | 3 +- maui/src/Charts/Utils/ChartMarker.cs | 4 +- maui/src/Charts/Utils/ChartMath.cs | 6 +- maui/src/Charts/Utils/ChartUtils.cs | 8 +- maui/src/Charts/Utils/DoubleRange.cs | 3 +- maui/src/Charts/Utils/FastReflection.cs | 4 +- maui/src/Charts/Utils/PyramidChartBase.cs | 5 +- maui/src/Chip/Helpers/EventArgs.cs | 1 - maui/src/Chip/SfChip.cs | 9 +- maui/src/Chip/SfChipGroup.cs | 7 +- maui/src/Core/AppHostBuilder.cs | 5 - .../DrawableLayoutManager.cs | 10 +- .../Core/BaseView/DrawableLayoutView/Enum.cs | 8 +- .../DrawableLayoutView/IDrawableLayout.cs | 5 +- .../DrawableLayoutView/SfContentView.cs | 12 +- .../BaseView/DrawableLayoutView/SfView.cs | 15 +- .../Handlers/SfViewHandler.Android.cs | 10 +- .../Handlers/SfViewHandler.Standard.cs | 4 +- .../Handlers/SfViewHandler.Windows.cs | 5 +- .../Core/BaseView/Handlers/SfViewHandler.cs | 5 +- .../BaseView/Handlers/SfViewHandler.ios.cs | 5 +- .../PlatformView/LayoutPanelExt.Windows.cs | 6 +- .../PlatformView/LayoutViewExt.ios.cs | 7 +- .../LayoutViewGroupExt.Android.cs | 6 - .../Semantics/AutomationPeer.Windows.cs | 19 +- .../BaseView/Semantics/ISemanticsProvider.cs | 7 +- .../Semantics/SemanticsHelper.Android.cs | 38 +- .../Core/BaseView/Semantics/SemanticsNode.cs | 5 +- .../Semantics/SfViewExtensions.ios.cs | 9 +- maui/src/Core/ButtonBase/ButtonBase.cs | 10 +- maui/src/Core/CoreScheduler/CoreScheduler.cs | 5 +- .../Handlers/SfDrawableViewHandler.Android.cs | 5 +- .../SfDrawableViewHandler.Standard.cs | 5 - .../Handlers/SfDrawableViewHandler.Windows.cs | 6 - .../Handlers/SfDrawableViewHandler.cs | 6 +- maui/src/Core/DrawableView/IDrawableView.cs | 5 +- maui/src/Core/DrawableView/ILineDrawing.cs | 5 +- .../PlatformGraphicsViewExt.iOS.cs | 5 +- maui/src/Core/DrawableView/SfDrawableView.cs | 6 +- .../Extensions/CanvasExtensions.Android.cs | 5 - .../Extensions/CanvasExtensions.Windows.cs | 145 +- maui/src/Core/Extensions/CanvasExtensions.cs | 4 +- .../Core/Extensions/CanvasExtensions.iOS.cs | 6 - .../Extensions/DoubleCollectionExtensions.cs | 5 +- .../NotifyCollectionChangedExtensions.cs | 8 +- maui/src/Core/Extensions/StringExtensions.cs | 11 +- maui/src/Core/FontElement/FontElement.cs | 4 +- maui/src/Core/FontElement/ITextElement.cs | 6 +- .../EventArgs/LongPressEventArgs.cs | 7 +- .../GestureDetector/EventArgs/PanEventArgs.cs | 7 +- .../EventArgs/PinchEventArgs.cs | 7 +- .../EventArgs/RightTapEventArgs.cs | 4 +- .../GestureDetector/EventArgs/TapEventArgs.cs | 4 +- .../Interfaces/IDoubleTapGestureListener.cs | 4 +- .../Interfaces/IGestureListener.cs | 2 - .../Platform/GestureDetector.Android.cs | 7 +- .../Platform/GestureDetector.Standard.cs | 5 +- .../Platform/GestureDetector.Windows.cs | 6 - .../Platform/GestureDetector.cs | 8 +- .../Platform/GestureDetector.iOS.cs | 4 - .../Core/Helper/CustomClass/CustomClass.cs | 5 +- maui/src/Core/Helper/PanAndZoom/EventArgs.cs | 5 +- .../Core/Helper/PanAndZoom/PanZoomListener.cs | 5 +- maui/src/Core/Helper/Utils.cs | 4 +- .../KeyboardDetector/IKeyboardListener.cs | 4 +- .../KeyboardDetector.Android.cs | 1 - .../KeyboardDetector.Windows.cs | 6 - .../Core/KeyboardDetector/KeyboardDetector.cs | 6 +- .../KeyboardDetector/KeyboardDetector.iOS.cs | 3 - maui/src/Core/Legend/AreaBase.cs | 5 +- maui/src/Core/Legend/Enum.cs | 3 +- maui/src/Core/Legend/IArea.cs | 4 +- maui/src/Core/Legend/IPlotArea.cs | 4 +- maui/src/Core/Legend/Interface.cs | 6 +- maui/src/Core/Legend/LegendItem.cs | 3 - .../Core/Legend/LegendItemClickedEventArgs.cs | 4 +- maui/src/Core/Legend/LegendLayout.cs | 22 +- maui/src/Core/Legend/SfLegend.cs | 15 +- maui/src/Core/Legend/SfShapeView.cs | 5 +- maui/src/Core/Legend/ToggleColorConverter.cs | 5 +- .../LocalizationResourceAccessor.cs | 1 - maui/src/Core/MathUtils.cs | 8 +- maui/src/Core/PullToRefresh/IPullToRefresh.cs | 8 +- maui/src/Core/TabView/SfTabViewExt.cs | 4 +- maui/src/Core/TextMeasurer/ITextMeasurer.cs | 5 +- .../TextMeasurer/TextMeasurer.Standard.cs | 6 +- .../Core/TextMeasurer/TextMeasurer.Windows.cs | 5 +- maui/src/Core/TextMeasurer/TextMeasurer.cs | 4 +- .../src/Core/TextMeasurer/TextMeasurer.iOS.cs | 4 - maui/src/Core/TextStyle/TextStyle.cs | 4 +- maui/src/Core/Theme/IThemeElement.cs | 5 +- .../Theme/Resources/DarkThemeColors.xaml.cs | 6 +- .../Core/Theme/Resources/DefaultTheme.xaml.cs | 6 +- .../Theme/Resources/LightThemeColors.xaml.cs | 6 +- .../SyncfusionThemeDictionary.xaml.cs | 7 +- .../SyncfusionThemeResourceDictionary.cs | 9 +- .../Theme/StaticThemeResourceExtension.cs | 10 - maui/src/Core/Theme/ThemeElement.cs | 6 - .../Core/Tooltip/MaterialTooltipRenderer.cs | 6 +- maui/src/Core/Tooltip/Position.cs | 3 +- maui/src/Core/Tooltip/SfTooltip.cs | 9 +- .../Core/Tooltip/TooltipClosedEventArgs.cs | 4 +- maui/src/Core/Tooltip/TooltipHelper.cs | 8 +- .../EventArgs/PointerEventArgs.cs | 6 +- .../EventArgs/ScrollEventArgs.cs | 4 +- .../Platform/TouchDetector.Android.cs | 3 - .../Platform/TouchDetector.Standard.cs | 5 +- .../Platform/TouchDetector.Windows.cs | 2 - .../TouchDetector/Platform/TouchDetector.cs | 8 +- .../Platform/TouchDetector.iOS.cs | 4 - .../ViewExtensions/ViewExtensions.Android.cs | 8 +- .../ViewExtensions/ViewExtensions.Standard.cs | 10 +- .../ViewExtensions/ViewExtensions.Windows.cs | 9 +- .../src/Core/ViewExtensions/ViewExtensions.cs | 5 +- .../Core/ViewExtensions/ViewExtensions.iOS.cs | 4 - maui/src/EffectsView/EffectsRenderer.cs | 6 +- maui/src/EffectsView/Enum.cs | 2 - maui/src/EffectsView/HighlightEffectLayer.cs | 4 +- maui/src/EffectsView/RippleEffectLayer.cs | 8 +- maui/src/EffectsView/SelectionEffectLayer.cs | 5 +- maui/src/EffectsView/SfEffectsView.cs | 6 - maui/src/EffectsView/Utils.cs | 5 +- maui/src/NavigationDrawer/DrawerSettings.cs | 5 +- .../SfNavigationDrawer.Android.cs | 2 - .../SfNavigationDrawer.Windows.cs | 4 +- .../NavigationDrawer/SfNavigationDrawer.cs | 9 +- .../SfNavigationDrawer.iOS.cs | 5 +- maui/src/PullToRefresh/Helpers/Extensions.cs | 16 +- .../src/PullToRefresh/SfProgressCircleView.cs | 119 +- .../PullToRefresh/SfPullToRefresh.Android.cs | 28 +- .../PullToRefresh/SfPullToRefresh.Standard.cs | 3 +- .../PullToRefresh/SfPullToRefresh.Windows.cs | 32 +- maui/src/PullToRefresh/SfPullToRefresh.cs | 337 +- maui/src/PullToRefresh/SfPullToRefresh.iOS.cs | 467 +-- .../Helper/SegmentItemViewHelper.cs | 5 +- .../Helper/SegmentViewHelper.cs | 7 +- .../Interface/ISegmentInfo.cs | 3 - .../EventArgs/SelectionChangedEventArgs.cs | 4 +- .../Model/Settings/SegmentTextStyle.cs | 4 +- .../Settings/SelectionIndicatorSettings.cs | 4 +- .../Model/SfSegmentedControl.cs | 7 +- .../ScrollView/ScrollViewExtension.cs | 5 +- .../SegmentItem/SfSegmentItem.cs | 3 - .../SegmentedControl/SfSegmentedControl.cs | 8 +- .../Views/Keyboard/KeyNavigationView.cs | 4 +- .../Views/OutlinedBorderView.cs | 5 +- .../SegmentedControl/Views/SegmentItemView.cs | 8 +- .../SegmentedControl/Views/SegmentLayout.cs | 7 +- .../Views/Selection/SelectionView.cs | 6 +- maui/src/Shimmer/Interface.cs | 5 +- maui/src/Shimmer/SfShimmer.cs | 3 +- maui/src/Shimmer/ShimmerDrawable.cs | 6 +- maui/src/Shimmer/ShimmerView.cs | 2 - maui/src/Syncfusion.Maui.Toolkit.csproj | 18 +- maui/src/TabView/Control/ArrowIcon.cs | 5 +- .../SfHorizontalContent.Android.cs | 194 +- .../SfHorizontalContent.Standard.cs | 30 +- .../SfHorizontalContent.Windows.cs | 315 +- .../HorizontalContent/SfHorizontalContent.cs | 19 +- .../SfHorizontalContent.iOS.cs | 429 ++- maui/src/TabView/Control/SfTabBar.cs | 56 +- maui/src/TabView/Control/SfTabItem.cs | 11 +- maui/src/TabView/Control/SfTabView.cs | 6 +- .../Helper/SelectionChangingEventArgs.cs | 25 +- .../Styles/TabViewMaterialVisualStyle.cs | 18 +- maui/src/TextInputLayout/LabelStyle.cs | 9 +- .../PasswordVisibilityToggledEventArgs.cs | 4 +- .../SfTextInputLayout.Methods.cs | 9 +- .../SfTextInputLayout.Properties.cs | 11 +- maui/src/TextInputLayout/SfTextInputLayout.cs | 24 +- maui/src/Themes/SfChipGroupStyles.xaml.cs | 30 +- maui/src/Themes/SfChipStyles.xaml.cs | 30 +- maui/src/Themes/SfEffectsViewStyles.xaml.cs | 28 +- .../Themes/SfNavigationDrawerStyle.xaml.cs | 29 +- maui/src/Themes/SfPullToRefreshStyles.xaml.cs | 31 +- .../Themes/SfSegmentedControlStyles.xaml.cs | 2 - maui/src/Themes/SfShimmerStyles.xaml.cs | 32 +- maui/src/Themes/SfTabViewStyles.xaml.cs | 30 +- .../Themes/SfTextInputLayoutStyles.xaml.cs | 30 +- .../BaseUnitTest.cs | 342 +-- .../Buttons/SfChipGroupUnitTests.cs | 5 +- .../Buttons/SfChipsUnitTests.cs | 5 +- .../Buttons/SfSegmentedControlUnitTests.cs | 19 +- .../Chart/ChartAxisUnitTests.cs | 4 +- .../Chart/Features/ChartEventUnitTest.cs | 2 +- .../Features/ChartFeatureAxisUnitTest.cs | 4 +- .../Features/ChartFeatureBehaviourUnitTest.cs | 5 - .../Layout/SfCarouselUnitTests.cs | 2 - .../Navigation/SfTabViewUnitTests.cs | 2 +- .../Notification/SfPullToRefreshUnitTests.cs | 10 +- .../Syncfusion.Maui.Toolkit.UnitTest.csproj | 4 +- targets/MultiTargeting.targets | 14 +- 522 files changed, 14152 insertions(+), 15253 deletions(-) rename maui/samples/Gallery/Resources/Fonts/{Sync FontIcons.ttf => SyncFontIcons.ttf} (100%) rename maui/samples/Gallery/Resources/Images/{effectview_selection.png => effectviewselection.png} (100%) rename maui/samples/Gallery/Resources/Images/{people_circle16.png => peoplecircle16.png} (100%) rename maui/samples/Gallery/Resources/Images/{people_circle17.png => peoplecircle17.png} (100%) rename maui/samples/Gallery/Resources/Images/{people_circle18.png => peoplecircle18.png} (100%) rename maui/samples/Gallery/Resources/Images/{people_circle23.png => peoplecircle23.png} (100%) rename maui/samples/Gallery/Resources/Images/{people_circle25.png => peoplecircle25.png} (100%) rename maui/samples/Gallery/Resources/Images/{people_circle26.png => peoplecircle26.png} (100%) rename maui/samples/Gallery/Resources/Images/{people_circle5.png => peoplecircle5.png} (100%) rename maui/samples/Gallery/Resources/Images/{people_circle9.png => peoplecircle9.png} (100%) diff --git a/maui/samples/Gallery/App.xaml.cs b/maui/samples/Gallery/App.xaml.cs index 9f8c6071..5f9c61c3 100644 --- a/maui/samples/Gallery/App.xaml.cs +++ b/maui/samples/Gallery/App.xaml.cs @@ -1,12 +1,18 @@ using System.Reflection; -namespace Syncfusion.Maui.ControlsGallery; - -public partial class App : Application +namespace Syncfusion.Maui.ControlsGallery { - public App() + public partial class App : Application { - InitializeComponent(); - var appInfo = typeof(App).GetTypeInfo().Assembly; - MainPage = Syncfusion.Maui.ControlsGallery.BaseConfig.MainPageInit(appInfo); - } -} + public App() + { + InitializeComponent(); + } + + protected override Window CreateWindow(IActivationState? activationState) + { + Assembly assembly = typeof(App).GetTypeInfo().Assembly; + var mainPage = BaseConfig.MainPageInit(assembly); + return new Window(mainPage); + } + } +} \ No newline at end of file diff --git a/maui/samples/Gallery/AppHostBuilder.cs b/maui/samples/Gallery/AppHostBuilder.cs index 96cfc449..a4d2db3a 100644 --- a/maui/samples/Gallery/AppHostBuilder.cs +++ b/maui/samples/Gallery/AppHostBuilder.cs @@ -1,6 +1,4 @@ -using Microsoft.Maui; -using Microsoft.Maui.Hosting; -using Microsoft.Maui.LifecycleEvents; +using Microsoft.Maui.LifecycleEvents; namespace Syncfusion.Maui.ControlsGallery.Hosting { @@ -18,7 +16,7 @@ public static MauiAppBuilder ConfigureSampleBrowserBase(this MauiAppBuilder buil { builder.ConfigureFonts(fonts => { - fonts.AddEmbeddedResourceFont(typeof(AppHostBuilderExtensions).Assembly, "MauiSampleFontIcon.ttf", "MauiSampleFontIcon"); + fonts.AddFont("MauiSampleFontIcon.ttf", "MauiSampleFontIcon"); }); builder.ConfigureLifecycleEvents(AppLifecycle => { diff --git a/maui/samples/Gallery/Controls/NeumorphismView/SfNeumorphismView.cs b/maui/samples/Gallery/Controls/NeumorphismView/SfNeumorphismView.cs index d98025be..ac0285ea 100644 --- a/maui/samples/Gallery/Controls/NeumorphismView/SfNeumorphismView.cs +++ b/maui/samples/Gallery/Controls/NeumorphismView/SfNeumorphismView.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Syncfusion.Maui.ControlsGallery.CustomView +namespace Syncfusion.Maui.ControlsGallery.CustomView { /// /// diff --git a/maui/samples/Gallery/Controls/SfEffectsViewAdv.cs b/maui/samples/Gallery/Controls/SfEffectsViewAdv.cs index 8cdb8be1..8d10c375 100644 --- a/maui/samples/Gallery/Controls/SfEffectsViewAdv.cs +++ b/maui/samples/Gallery/Controls/SfEffectsViewAdv.cs @@ -1,12 +1,5 @@ using Syncfusion.Maui.Toolkit.EffectsView; using Syncfusion.Maui.Toolkit.Internals; -using Syncfusion.Maui.Toolkit; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using PointerEventArgs = Syncfusion.Maui.Toolkit.Internals.PointerEventArgs; namespace Syncfusion.Maui.ControlsGallery.CustomView diff --git a/maui/samples/Gallery/Converters/BrushToColorConverter.cs b/maui/samples/Gallery/Converters/BrushToColorConverter.cs index f7f8c486..98e23201 100644 --- a/maui/samples/Gallery/Converters/BrushToColorConverter.cs +++ b/maui/samples/Gallery/Converters/BrushToColorConverter.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.Globalization; namespace Syncfusion.Maui.ControlsGallery.Converters { diff --git a/maui/samples/Gallery/Converters/InvertedBoolConverter.cs b/maui/samples/Gallery/Converters/InvertedBoolConverter.cs index 8976e961..94903f3c 100644 --- a/maui/samples/Gallery/Converters/InvertedBoolConverter.cs +++ b/maui/samples/Gallery/Converters/InvertedBoolConverter.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.Globalization; namespace Syncfusion.Maui.ControlsGallery.Converters { diff --git a/maui/samples/Gallery/Converters/TagToPaddingConverter.cs b/maui/samples/Gallery/Converters/TagToPaddingConverter.cs index 06f7f2e1..0fa52366 100644 --- a/maui/samples/Gallery/Converters/TagToPaddingConverter.cs +++ b/maui/samples/Gallery/Converters/TagToPaddingConverter.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.Globalization; namespace Syncfusion.Maui.ControlsGallery.Converters { diff --git a/maui/samples/Gallery/CustomView/CustomCardLayout.cs b/maui/samples/Gallery/CustomView/CustomCardLayout.cs index 704754c5..9fac56a9 100644 --- a/maui/samples/Gallery/CustomView/CustomCardLayout.cs +++ b/maui/samples/Gallery/CustomView/CustomCardLayout.cs @@ -1,6 +1,4 @@ using Microsoft.Maui.Controls.Shapes; -using Syncfusion.Maui.ControlsGallery.Converters; -using System.Reflection; namespace Syncfusion.Maui.ControlsGallery.CustomView { diff --git a/maui/samples/Gallery/CustomView/GettingStartedView.xaml b/maui/samples/Gallery/CustomView/GettingStartedView.xaml index 103328e6..c34fb81b 100644 --- a/maui/samples/Gallery/CustomView/GettingStartedView.xaml +++ b/maui/samples/Gallery/CustomView/GettingStartedView.xaml @@ -13,10 +13,14 @@ - + + + + + \ No newline at end of file diff --git a/maui/samples/Gallery/CustomView/GettingStartedView.xaml.cs b/maui/samples/Gallery/CustomView/GettingStartedView.xaml.cs index aae9337d..1ca64d45 100644 --- a/maui/samples/Gallery/CustomView/GettingStartedView.xaml.cs +++ b/maui/samples/Gallery/CustomView/GettingStartedView.xaml.cs @@ -1,77 +1,78 @@ -namespace Syncfusion.Maui.ControlsGallery.CustomView; - -/// -/// GettingStartedSampleView. -/// -public partial class GettingStartedSampleView : SampleView +namespace Syncfusion.Maui.ControlsGallery.CustomView { - /// - /// GettingStartedSampleView's constructor - /// - public GettingStartedSampleView() + /// + /// GettingStartedSampleView. + /// + public partial class GettingStartedSampleView : SampleView { - InitializeComponent(); - this.HorizontalOptions = LayoutOptions.Fill; - this.VerticalOptions = LayoutOptions.Fill; - this.Margin = new Thickness(-6, -8, -6, -8); - this.Padding = new Thickness(10, 20); - } + /// + /// GettingStartedSampleView's constructor + /// + public GettingStartedSampleView() + { + InitializeComponent(); + this.HorizontalOptions = LayoutOptions.Fill; + this.VerticalOptions = LayoutOptions.Fill; + this.Margin = new Thickness(-6, -8, -6, -8); + this.Padding = new Thickness(10, 20); + } - /// - /// - /// - public static readonly BindableProperty GettingStartedContentProperty = - BindableProperty.Create(nameof(GettingStartedContent), typeof(View), typeof(GettingStartedSampleView), null, propertyChanged: OnContentPropertyChanged); + /// + /// + /// + public static readonly BindableProperty GettingStartedContentProperty = + BindableProperty.Create(nameof(GettingStartedContent), typeof(View), typeof(GettingStartedSampleView), null, propertyChanged: OnContentPropertyChanged); - /// - /// - /// - public static readonly BindableProperty FrameWidthProperty = - BindableProperty.Create(nameof(FrameWidth), typeof(double), typeof(GettingStartedSampleView), null, propertyChanged: OnWidthPropertyChanged); + /// + /// + /// + public static readonly BindableProperty FrameWidthProperty = + BindableProperty.Create(nameof(FrameWidth), typeof(double), typeof(GettingStartedSampleView), null, propertyChanged: OnWidthPropertyChanged); - /// - /// - /// - public double FrameWidth - { - get => (double)GetValue(FrameWidthProperty); - set => SetValue(FrameWidthProperty, value); - } + /// + /// + /// + public double FrameWidth + { + get => (double)GetValue(FrameWidthProperty); + set => SetValue(FrameWidthProperty, value); + } - /// - /// - /// - public View GettingStartedContent - { - get => (View)GetValue(GettingStartedContentProperty); - set => SetValue(GettingStartedContentProperty, value); - } + /// + /// + /// + public View GettingStartedContent + { + get => (View)GetValue(GettingStartedContentProperty); + set => SetValue(GettingStartedContentProperty, value); + } - private static void OnWidthPropertyChanged(BindableObject bindable, object oldValue, object newValue) - { - var bind = bindable as GettingStartedSampleView; - bind?.WidthChanged((double)newValue); - } + private static void OnWidthPropertyChanged(BindableObject bindable, object oldValue, object newValue) + { + var bind = bindable as GettingStartedSampleView; + bind?.WidthChanged((double)newValue); + } - private void WidthChanged(double width) - { - if(frame != null) - { - frame.WidthRequest = width > 0 ? width : 400; - } - } + private void WidthChanged(double width) + { + if (frame != null) + { + frame.WidthRequest = width > 0 ? width : 400; + } + } - private static void OnContentPropertyChanged(BindableObject bindable, object oldValue, object newValue) - { - var bind = bindable as GettingStartedSampleView; - bind?.ContentChanged((View)newValue); - } + private static void OnContentPropertyChanged(BindableObject bindable, object oldValue, object newValue) + { + var bind = bindable as GettingStartedSampleView; + bind?.ContentChanged((View)newValue); + } - private void ContentChanged(View newValue) - { - if(frame != null) - { - this.frame.Content = newValue; - } - } + private void ContentChanged(View newValue) + { + if (frame != null) + { + this.frame.Content = newValue; + } + } + } } \ No newline at end of file diff --git a/maui/samples/Gallery/CustomView/SfEntry.cs b/maui/samples/Gallery/CustomView/SfEntry.cs index a74b52b1..280feef2 100644 --- a/maui/samples/Gallery/CustomView/SfEntry.cs +++ b/maui/samples/Gallery/CustomView/SfEntry.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Microsoft.Maui.Platform; +using Microsoft.Maui.Platform; #if ANDROID using Android.Content.Res; #endif diff --git a/maui/samples/Gallery/MauiProgram.cs b/maui/samples/Gallery/MauiProgram.cs index cd2c9c09..532a6a4b 100644 --- a/maui/samples/Gallery/MauiProgram.cs +++ b/maui/samples/Gallery/MauiProgram.cs @@ -1,28 +1,26 @@ -namespace Syncfusion.Maui.ControlsGallery; - -using Microsoft.Maui.Controls.Hosting; -using Microsoft.Maui.Hosting; -using Syncfusion.Maui.ControlsGallery.Hosting; +using Syncfusion.Maui.ControlsGallery.Hosting; using Syncfusion.Maui.Toolkit.Hosting; - -public static class MauiProgram +namespace Syncfusion.Maui.ControlsGallery { - public static MauiApp CreateMauiApp() + public static class MauiProgram { - var builder = MauiApp.CreateBuilder(); - builder - .UseMauiApp() - .ConfigureSyncfusionToolkit() - .ConfigureFonts(fonts => - { - fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); - fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold"); - fonts.AddFont("Roboto-Medium.ttf", "RobotoMedium"); - fonts.AddFont("Roboto-Regular.ttf", "Roboto"); - fonts.AddFont("Sync FontIcons.ttf"); - fonts.AddFont("SegmentIcon.ttf", "SegmentIcon"); - }); - builder.ConfigureSampleBrowserBase(); - return builder.Build(); + public static MauiApp CreateMauiApp() + { + var builder = MauiApp.CreateBuilder(); + builder + .UseMauiApp() + .ConfigureSyncfusionToolkit() + .ConfigureFonts(fonts => + { + fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); + fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold"); + fonts.AddFont("Roboto-Medium.ttf", "RobotoMedium"); + fonts.AddFont("Roboto-Regular.ttf", "Roboto"); + fonts.AddFont("SyncFontIcons.ttf", "SyncFontIcons"); + fonts.AddFont("SegmentIcon.ttf", "SegmentIcon"); + }); + builder.ConfigureSampleBrowserBase(); + return builder.Build(); + } } } diff --git a/maui/samples/Gallery/Platforms/Android/MainActivity.cs b/maui/samples/Gallery/Platforms/Android/MainActivity.cs index e788f2fd..5b01995c 100644 --- a/maui/samples/Gallery/Platforms/Android/MainActivity.cs +++ b/maui/samples/Gallery/Platforms/Android/MainActivity.cs @@ -1,7 +1,6 @@ using Android.App; using Android.Content.PM; using Android.OS; -using Microsoft.Maui; namespace Syncfusion.Maui.ControlsGallery; diff --git a/maui/samples/Gallery/Platforms/Android/MainApplication.cs b/maui/samples/Gallery/Platforms/Android/MainApplication.cs index d757d5f2..0c9f9e9f 100644 --- a/maui/samples/Gallery/Platforms/Android/MainApplication.cs +++ b/maui/samples/Gallery/Platforms/Android/MainApplication.cs @@ -1,8 +1,5 @@ using Android.App; using Android.Runtime; -using Microsoft.Maui; -using Microsoft.Maui.Hosting; -using System; namespace Syncfusion.Maui.ControlsGallery; diff --git a/maui/samples/Gallery/Platforms/MacCatalyst/AppDelegate.cs b/maui/samples/Gallery/Platforms/MacCatalyst/AppDelegate.cs index e4edc3f5..6f1ef28e 100644 --- a/maui/samples/Gallery/Platforms/MacCatalyst/AppDelegate.cs +++ b/maui/samples/Gallery/Platforms/MacCatalyst/AppDelegate.cs @@ -1,6 +1,4 @@ using Foundation; -using Microsoft.Maui; -using Microsoft.Maui.Hosting; namespace Syncfusion.Maui.ControlsGallery; diff --git a/maui/samples/Gallery/Platforms/MacCatalyst/Program.cs b/maui/samples/Gallery/Platforms/MacCatalyst/Program.cs index 38fddcaa..7d7a2b12 100644 --- a/maui/samples/Gallery/Platforms/MacCatalyst/Program.cs +++ b/maui/samples/Gallery/Platforms/MacCatalyst/Program.cs @@ -1,5 +1,4 @@ -using ObjCRuntime; -using UIKit; +using UIKit; namespace Syncfusion.Maui.ControlsGallery; diff --git a/maui/samples/Gallery/Platforms/iOS/AppDelegate.cs b/maui/samples/Gallery/Platforms/iOS/AppDelegate.cs index e4edc3f5..6f1ef28e 100644 --- a/maui/samples/Gallery/Platforms/iOS/AppDelegate.cs +++ b/maui/samples/Gallery/Platforms/iOS/AppDelegate.cs @@ -1,6 +1,4 @@ using Foundation; -using Microsoft.Maui; -using Microsoft.Maui.Hosting; namespace Syncfusion.Maui.ControlsGallery; diff --git a/maui/samples/Gallery/Platforms/iOS/Program.cs b/maui/samples/Gallery/Platforms/iOS/Program.cs index 2db4d2fe..1312718d 100644 --- a/maui/samples/Gallery/Platforms/iOS/Program.cs +++ b/maui/samples/Gallery/Platforms/iOS/Program.cs @@ -1,5 +1,4 @@ -using ObjCRuntime; -using UIKit; +using UIKit; namespace Syncfusion.Maui.ControlsGallery; diff --git a/maui/samples/Gallery/Platforms/iOS/QLPreviewItemFileSystem.cs b/maui/samples/Gallery/Platforms/iOS/QLPreviewItemFileSystem.cs index 8aafa350..9b8b816a 100644 --- a/maui/samples/Gallery/Platforms/iOS/QLPreviewItemFileSystem.cs +++ b/maui/samples/Gallery/Platforms/iOS/QLPreviewItemFileSystem.cs @@ -1,6 +1,5 @@ using Foundation; using QuickLook; -using System.IO; public class QLPreviewItemFileSystem : QLPreviewItem { diff --git a/maui/samples/Gallery/Resources/Fonts/Sync FontIcons.ttf b/maui/samples/Gallery/Resources/Fonts/SyncFontIcons.ttf similarity index 100% rename from maui/samples/Gallery/Resources/Fonts/Sync FontIcons.ttf rename to maui/samples/Gallery/Resources/Fonts/SyncFontIcons.ttf diff --git a/maui/samples/Gallery/Resources/Images/effectview_selection.png b/maui/samples/Gallery/Resources/Images/effectviewselection.png similarity index 100% rename from maui/samples/Gallery/Resources/Images/effectview_selection.png rename to maui/samples/Gallery/Resources/Images/effectviewselection.png diff --git a/maui/samples/Gallery/Resources/Images/people_circle16.png b/maui/samples/Gallery/Resources/Images/peoplecircle16.png similarity index 100% rename from maui/samples/Gallery/Resources/Images/people_circle16.png rename to maui/samples/Gallery/Resources/Images/peoplecircle16.png diff --git a/maui/samples/Gallery/Resources/Images/people_circle17.png b/maui/samples/Gallery/Resources/Images/peoplecircle17.png similarity index 100% rename from maui/samples/Gallery/Resources/Images/people_circle17.png rename to maui/samples/Gallery/Resources/Images/peoplecircle17.png diff --git a/maui/samples/Gallery/Resources/Images/people_circle18.png b/maui/samples/Gallery/Resources/Images/peoplecircle18.png similarity index 100% rename from maui/samples/Gallery/Resources/Images/people_circle18.png rename to maui/samples/Gallery/Resources/Images/peoplecircle18.png diff --git a/maui/samples/Gallery/Resources/Images/people_circle23.png b/maui/samples/Gallery/Resources/Images/peoplecircle23.png similarity index 100% rename from maui/samples/Gallery/Resources/Images/people_circle23.png rename to maui/samples/Gallery/Resources/Images/peoplecircle23.png diff --git a/maui/samples/Gallery/Resources/Images/people_circle25.png b/maui/samples/Gallery/Resources/Images/peoplecircle25.png similarity index 100% rename from maui/samples/Gallery/Resources/Images/people_circle25.png rename to maui/samples/Gallery/Resources/Images/peoplecircle25.png diff --git a/maui/samples/Gallery/Resources/Images/people_circle26.png b/maui/samples/Gallery/Resources/Images/peoplecircle26.png similarity index 100% rename from maui/samples/Gallery/Resources/Images/people_circle26.png rename to maui/samples/Gallery/Resources/Images/peoplecircle26.png diff --git a/maui/samples/Gallery/Resources/Images/people_circle5.png b/maui/samples/Gallery/Resources/Images/peoplecircle5.png similarity index 100% rename from maui/samples/Gallery/Resources/Images/people_circle5.png rename to maui/samples/Gallery/Resources/Images/peoplecircle5.png diff --git a/maui/samples/Gallery/Resources/Images/people_circle9.png b/maui/samples/Gallery/Resources/Images/peoplecircle9.png similarity index 100% rename from maui/samples/Gallery/Resources/Images/people_circle9.png rename to maui/samples/Gallery/Resources/Images/peoplecircle9.png diff --git a/maui/samples/Gallery/Samples/Carousel/GettingStarted/GettingStartedDesktop.xaml b/maui/samples/Gallery/Samples/Carousel/GettingStarted/GettingStartedDesktop.xaml index 573379ee..79e4dfc8 100644 --- a/maui/samples/Gallery/Samples/Carousel/GettingStarted/GettingStartedDesktop.xaml +++ b/maui/samples/Gallery/Samples/Carousel/GettingStarted/GettingStartedDesktop.xaml @@ -7,11 +7,11 @@ xmlns:imageExtension="clr-namespace:Syncfusion.Maui.ControlsGallery.Converters;assembly=Syncfusion.Maui.ControlsGallery" xmlns:local="clr-namespace:Syncfusion.Maui.ControlsGallery.Carousel.Carousel" xmlns:localcore="clr-namespace:Syncfusion.Maui.ControlsGallery;assembly=Syncfusion.Maui.ControlsGallery" + x:DataType="local:CarouselViewModel" BackgroundColor="{AppThemeBinding Light={StaticResource BackgroundLight}, Dark={StaticResource BackgroundDark}}"> - - -