1
1
using Microsoft . Extensions . Logging ;
2
+ using Microsoft . Maui . Controls . Compatibility . Hosting ;
3
+ using SkiaSharp . Views . Maui . Controls . Hosting ;
2
4
using DXImage = DevExpress . Maui . Core . DXImage ;
3
5
4
6
namespace MyFinance ;
@@ -7,10 +9,8 @@ namespace MyFinance;
7
9
[ MauiMarkup ( typeof ( StatusBarBehavior ) , typeof ( TextEdit ) , typeof ( TextEditBase ) , typeof ( EditBase ) , typeof ( ComboBoxEdit ) ) ]
8
10
[ MauiMarkup ( typeof ( PasswordEdit ) , typeof ( CheckEdit ) , typeof ( DXPopup ) , typeof ( ComboBoxEditBase ) , typeof ( ItemsEditBase ) ) ]
9
11
[ MauiMarkup ( typeof ( DXImage ) , typeof ( DXButton ) , typeof ( DXViewBase ) , typeof ( DXBorder ) , typeof ( DXContentPresenterBase ) ) ]
10
- [ MauiMarkup ( typeof ( DXContentPresenter ) , typeof ( DXCollectionView ) , typeof ( ChartView ) , typeof ( SeriesCrosshairOptions ) , typeof ( SeriesHintOptions ) ) ]
11
- [ MauiMarkup ( typeof ( SeriesHintOptionsBase ) , typeof ( ChartElement ) , typeof ( LineSeries ) , typeof ( ChartSeriesElement ) , typeof ( XYSeries ) ) ]
12
- [ MauiMarkup ( typeof ( Series ) , typeof ( SeriesBase ) , typeof ( ChartSeriesElement ) , typeof ( SeriesDataAdapter ) , typeof ( DataSourceAdapterBase ) ) ]
13
- [ MauiMarkup ( typeof ( ValueDataMember ) ) ]
12
+ [ MauiMarkup ( typeof ( DXContentPresenter ) , typeof ( DXCollectionView ) , typeof ( CartesianChart ) ) ]
13
+
14
14
public static class MauiProgram
15
15
{
16
16
public static MauiApp CreateMauiApp ( )
@@ -20,12 +20,14 @@ public static MauiApp CreateMauiApp()
20
20
. UseMauiApp < App > ( )
21
21
. UseDevExpress ( )
22
22
. UseMauiCommunityToolkit ( )
23
+ . UseSkiaSharp ( true )
23
24
. ConfigureFonts ( fonts =>
24
25
{
25
26
fonts . AddFont ( "OpenSans-Regular.ttf" , "OpenSansRegular" ) ;
26
27
fonts . AddFont ( "OpenSans-Semibold.ttf" , "OpenSansSemibold" ) ;
27
- } ) ;
28
-
28
+ } )
29
+ . UseMauiCompatibility ( ) ;
30
+
29
31
builder . Logging . AddDebug ( ) ;
30
32
31
33
builder . Services
0 commit comments