-
Notifications
You must be signed in to change notification settings - Fork 42
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
docs: Updated DevExpressApp docs #2296
base: main
Are you sure you want to change the base?
Conversation
|
||
- Select **Blank** in **Presets** selection | ||
|
||
- Select the **Platforms** tab and unselect **MacCatalyst** and **Windows** platforms |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does WASM and Desktop support MauiEmbedding?
Create a new application using the `unoapp` template, enabling .NET MAUI Embedding. In this case, we're going to use the Blank template (`-preset blank`) and include .NET MAUI Embedding support (`-maui`). | ||
|
||
```bash | ||
dotnet new unoapp -preset blank -maui -platforms "android" -platforms "ios" -platforms "wasm" -platforms "desktop" -o DevExpressApp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does WASM and Desktop support MauiEmbedding?
```xml | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ScrollView xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" | ||
xmlns:dxg="clr-namespace:DevExpress.Maui.DataGrid;assembly=DevExpress.Maui.DataGrid" | ||
xmlns:dxc="clr-namespace:DevExpress.Maui.Charts;assembly=DevExpress.Maui.Charts" | ||
x:Class="DevExpressApp.MauiControls.ChartControl" | ||
xmlns:local="clr-namespace:DevExpressApp.MauiControls" | ||
HorizontalOptions="Fill" | ||
VerticalOptions="Fill"> | ||
<dxc:ChartView> | ||
<dxc:ChartView.BindingContext> | ||
<local:ViewModel /> | ||
</dxc:ChartView.BindingContext> | ||
<dxc:ChartView.Series> | ||
<dxc:LineSeries DisplayName="{Binding GdpValueForUSA.CountryName}"> | ||
<dxc:LineSeries.Data> | ||
<dxc:SeriesDataAdapter DataSource="{Binding GdpValueForUSA.Values}" | ||
ArgumentDataMember="Year"> | ||
<dxc:ValueDataMember Type="Value" | ||
Member="Value" /> | ||
</dxc:SeriesDataAdapter> | ||
</dxc:LineSeries.Data> | ||
</dxc:LineSeries> | ||
|
||
<dxc:LineSeries DisplayName="{Binding GdpValueForChina.CountryName}"> | ||
<dxc:LineSeries.Data> | ||
<dxc:SeriesDataAdapter DataSource="{Binding GdpValueForChina.Values}" | ||
ArgumentDataMember="Year"> | ||
<dxc:ValueDataMember Type="Value" | ||
Member="Value" /> | ||
</dxc:SeriesDataAdapter> | ||
</dxc:LineSeries.Data> | ||
</dxc:LineSeries> | ||
|
||
<dxc:LineSeries DisplayName="{Binding GdpValueForJapan.CountryName}"> | ||
<dxc:LineSeries.Data> | ||
<dxc:SeriesDataAdapter DataSource="{Binding GdpValueForJapan.Values}" | ||
ArgumentDataMember="Year"> | ||
<dxc:ValueDataMember Type="Value" | ||
Member="Value" /> | ||
</dxc:SeriesDataAdapter> | ||
</dxc:LineSeries.Data> | ||
</dxc:LineSeries> | ||
</dxc:ChartView.Series> | ||
</dxc:ChartView> | ||
</ScrollView> | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```xml | |
<?xml version="1.0" encoding="utf-8" ?> | |
<ScrollView xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" | |
xmlns:dxg="clr-namespace:DevExpress.Maui.DataGrid;assembly=DevExpress.Maui.DataGrid" | |
xmlns:dxc="clr-namespace:DevExpress.Maui.Charts;assembly=DevExpress.Maui.Charts" | |
x:Class="DevExpressApp.MauiControls.ChartControl" | |
xmlns:local="clr-namespace:DevExpressApp.MauiControls" | |
HorizontalOptions="Fill" | |
VerticalOptions="Fill"> | |
<dxc:ChartView> | |
<dxc:ChartView.BindingContext> | |
<local:ViewModel /> | |
</dxc:ChartView.BindingContext> | |
<dxc:ChartView.Series> | |
<dxc:LineSeries DisplayName="{Binding GdpValueForUSA.CountryName}"> | |
<dxc:LineSeries.Data> | |
<dxc:SeriesDataAdapter DataSource="{Binding GdpValueForUSA.Values}" | |
ArgumentDataMember="Year"> | |
<dxc:ValueDataMember Type="Value" | |
Member="Value" /> | |
</dxc:SeriesDataAdapter> | |
</dxc:LineSeries.Data> | |
</dxc:LineSeries> | |
<dxc:LineSeries DisplayName="{Binding GdpValueForChina.CountryName}"> | |
<dxc:LineSeries.Data> | |
<dxc:SeriesDataAdapter DataSource="{Binding GdpValueForChina.Values}" | |
ArgumentDataMember="Year"> | |
<dxc:ValueDataMember Type="Value" | |
Member="Value" /> | |
</dxc:SeriesDataAdapter> | |
</dxc:LineSeries.Data> | |
</dxc:LineSeries> | |
<dxc:LineSeries DisplayName="{Binding GdpValueForJapan.CountryName}"> | |
<dxc:LineSeries.Data> | |
<dxc:SeriesDataAdapter DataSource="{Binding GdpValueForJapan.Values}" | |
ArgumentDataMember="Year"> | |
<dxc:ValueDataMember Type="Value" | |
Member="Value" /> | |
</dxc:SeriesDataAdapter> | |
</dxc:LineSeries.Data> | |
</dxc:LineSeries> | |
</dxc:ChartView.Series> | |
</dxc:ChartView> | |
</ScrollView> | |
``` | |
```xml | |
<?xml version="1.0" encoding="utf-8" ?> | |
<ScrollView xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" | |
xmlns:dxg="clr-namespace:DevExpress.Maui.DataGrid;assembly=DevExpress.Maui.DataGrid" | |
xmlns:dxc="clr-namespace:DevExpress.Maui.Charts;assembly=DevExpress.Maui.Charts" | |
x:Class="DevExpressApp.MauiControls.ChartControl" | |
xmlns:local="clr-namespace:DevExpressApp.MauiControls" | |
HorizontalOptions="Fill" | |
VerticalOptions="Fill"> | |
<dxc:ChartView> | |
<dxc:ChartView.BindingContext> | |
<local:ViewModel /> | |
</dxc:ChartView.BindingContext> | |
<dxc:ChartView.Series> | |
<dxc:LineSeries DisplayName="{Binding GdpValueForUSA.CountryName}"> | |
<dxc:LineSeries.Data> | |
<dxc:SeriesDataAdapter DataSource="{Binding GdpValueForUSA.Values}" | |
ArgumentDataMember="Year"> | |
<dxc:ValueDataMember Type="Value" | |
Member="Value" /> | |
</dxc:SeriesDataAdapter> | |
</dxc:LineSeries.Data> | |
</dxc:LineSeries> | |
<dxc:LineSeries DisplayName="{Binding GdpValueForChina.CountryName}"> | |
<dxc:LineSeries.Data> | |
<dxc:SeriesDataAdapter DataSource="{Binding GdpValueForChina.Values}" | |
ArgumentDataMember="Year"> | |
<dxc:ValueDataMember Type="Value" | |
Member="Value" /> | |
</dxc:SeriesDataAdapter> | |
</dxc:LineSeries.Data> | |
</dxc:LineSeries> | |
<dxc:LineSeries DisplayName="{Binding GdpValueForJapan.CountryName}"> | |
<dxc:LineSeries.Data> | |
<dxc:SeriesDataAdapter DataSource="{Binding GdpValueForJapan.Values}" | |
ArgumentDataMember="Year"> | |
<dxc:ValueDataMember Type="Value" | |
Member="Value" /> | |
</dxc:SeriesDataAdapter> | |
</dxc:LineSeries.Data> | |
</dxc:LineSeries> | |
</dxc:ChartView.Series> | |
</dxc:ChartView> | |
</ScrollView> | |
``` |
fonts.AddFont("MauiEmbeddingApp/Assets/Fonts/OpenSansRegular.ttf", "OpenSansRegular"); | ||
fonts.AddFont("MauiEmbeddingApp/Assets/Fonts/OpenSansSemibold.ttf", "OpenSansSemibold"); | ||
fonts.AddFont("Assets/Fonts/OpenSansRegular.ttf", "OpenSansRegular"); | ||
fonts.AddFont("Assets/Fonts/OpenSansSemibold.ttf", "OpenSansSemibold"); | ||
}); | ||
} | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GitHub Issue (If applicable): https://github.com/unoplatform/uno.samples-private/issues/146
PR Type
What kind of change does this PR introduce?
What is the current behavior?
What is the new behavior?
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Run
results.Other information
Internal Issue (If applicable):