Skip to content

Commit 4fc9d80

Browse files
committed
chore: Add additional information on how to test the sample with the DevExpress NuGet Feed URL
1 parent 5dc1f32 commit 4fc9d80

File tree

7 files changed

+69
-17
lines changed

7 files changed

+69
-17
lines changed

UI/MauiEmbedding/DevExpressApp/ReadMe.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ For more information on how to use the controls from DevExpress in an Uno Platfo
66

77
<img src="doc/assets/third-party-sample-devexpress.gif" alt="DevExpress .NET MAUI Controls Demo sample" />
88

9-
> [!NOTE]
9+
> [!IMPORTANT]
1010
> The DevExpress .NET MAUI Controls are currently available [free of charge](https://www.devexpress.com/maui/). However, in order to access the NuGet packages you do need to create an account at [DevExpress website](https://www.devexpress.com/MyAccount/Register/?returnUrl=https%3a%2f%2fnuget.devexpress.com%2f%23feed-url).
1111
>
1212
> Once you have an account with DevExpress, you need to visit the [Your DevExpress NuGet Feed URL](https://nuget.devexpress.com/#feed-url) page to retrieve a NuGet feed that's associated with your account. You can either add this as a NuGet feed in Visual Studio or use a nuget.config file.
@@ -19,6 +19,12 @@ For more information on how to use the controls from DevExpress in an Uno Platfo
1919
> </packageSources>
2020
> </configuration>
2121
> ```
22+
>
23+
> To summarize in order to test this sample app:
24+
>
25+
> 1. Create a DevExpress account and obtain the necessary licenses for the DevExpress packages.
26+
> 2. Add your [DevExpress NuGet Feed URL](https://nuget.devexpress.com/#feed-url) to the project.
27+
> 3. Look for comments marked with "IMPORTANT: TODO: Uncomment to test the DevExpressApp" and uncomment the corresponding code blocks.
2228
2329
## List of controls used in this sample
2430

UI/MauiEmbedding/DevExpressApp/src/DevExpressApp.MauiControls/AppBuilderExtensions.cs

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
1-
using DevExpress.Maui;
1+
// ===============================================================
2+
// ===== IMPORTANT: TODO: Uncomment to test the DevExpressApp ====
3+
// ===== after you added the DevExpress NuGet Feed URL ===========
4+
// ===== (https://nuget.devexpress.com/#feed-url) ================
5+
// ===============================================================
6+
//using DevExpress.Maui;
7+
using static System.Net.Mime.MediaTypeNames;
8+
using System.Diagnostics.Metrics;
9+
using System.Xml.Linq;
210

311
namespace DevExpressApp;
412

513
public static class AppBuilderExtensions
614
{
715
public static MauiAppBuilder UseMauiControls(this MauiAppBuilder builder) =>
8-
builder
9-
.UseDevExpress()
16+
builder
17+
// ===============================================================
18+
// ===== IMPORTANT: TODO: Uncomment to test the DevExpressApp ====
19+
// ===== after you added the DevExpress NuGet Feed URL ===========
20+
// ===== (https://nuget.devexpress.com/#feed-url) ================
21+
// ===============================================================
22+
//.UseDevExpress()
1023
.ConfigureFonts(fonts =>
1124
{
1225
fonts.AddFont("Assets/Fonts/OpenSansRegular.ttf", "OpenSansRegular");

UI/MauiEmbedding/DevExpressApp/src/DevExpressApp.MauiControls/ChartViewControl.xaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
44
xmlns:dxc="clr-namespace:DevExpress.Maui.Charts;assembly=DevExpress.Maui.Charts"
55
x:Class="DevExpressApp.MauiControls.ChartViewControl">
6-
<dxc:ChartView>
6+
<!-- =============================================================== -->
7+
<!-- ===== IMPORTANT: TODO: Uncomment to test the DevExpressApp ==== -->
8+
<!-- ===== after you added the DevExpress NuGet Feed URL =========== -->
9+
<!-- ===== (https://nuget.devexpress.com/#feed-url) ================ -->
10+
<!-- =============================================================== -->
11+
<!--<dxc:ChartView>
712
<dxc:ChartView.Series>
813
<dxc:LineSeries DisplayName="{Binding GdpValueForUSA.CountryName}">
914
<dxc:LineSeries.Data>
@@ -35,5 +40,5 @@
3540
</dxc:LineSeries.Data>
3641
</dxc:LineSeries>
3742
</dxc:ChartView.Series>
38-
</dxc:ChartView>
43+
</dxc:ChartView>-->
3944
</ScrollView>

UI/MauiEmbedding/DevExpressApp/src/DevExpressApp.MauiControls/DataGridViewControl.xaml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,22 @@
33
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
44
xmlns:dxg="clr-namespace:DevExpress.Maui.DataGrid;assembly=DevExpress.Maui.DataGrid"
55
x:Class="DevExpressApp.MauiControls.DataGridViewControl">
6-
<dxg:DataGridView ItemsSource="{Binding Employees}"
6+
<!-- =============================================================== -->
7+
<!-- ===== IMPORTANT: TODO: Uncomment to test the DevExpressApp ==== -->
8+
<!-- ===== after you added the DevExpress NuGet Feed URL =========== -->
9+
<!-- ===== (https://nuget.devexpress.com/#feed-url) ================ -->
10+
<!-- =============================================================== -->
11+
<!--<dxg:DataGridView ItemsSource="{Binding Employees}"
712
EditorShowMode="DoubleTap"
813
AllowDragDropRows="True">
914
<dxg:DataGridView.Columns>
1015
<dxg:ImageColumn FieldName="Photo"
1116
Width="100" />
12-
<!-- Can be removed and replaced by the commented TemplateColumn below when https://github.com/unoplatform/uno.extensions/issues/2328 is fixed -->
17+
--><!-- Can be removed and replaced by the commented TemplateColumn below when https://github.com/unoplatform/uno.extensions/issues/2328 is fixed --><!--
1318
<dxg:TextColumn FieldName="Name"
1419
MinWidth="200"
1520
VerticalContentAlignment="Center" />
16-
<!--<dxg:TemplateColumn FieldName="Name"
21+
--><!--<dxg:TemplateColumn FieldName="Name"
1722
Caption="Employee"
1823
MinWidth="200">
1924
<dxg:TemplateColumn.DisplayTemplate>
@@ -37,7 +42,7 @@
3742
</Grid>
3843
</DataTemplate>
3944
</dxg:TemplateColumn.DisplayTemplate>
40-
</dxg:TemplateColumn>-->
45+
</dxg:TemplateColumn>--><!--
4146
<dxg:TextColumn FieldName="Phone"
4247
MinWidth="130"
4348
VerticalContentAlignment="Center" />
@@ -52,10 +57,10 @@
5257
Caption="Access Level"
5358
MinWidth="140"
5459
VerticalContentAlignment="Center" />
55-
<!-- Can be added back when https://github.com/unoplatform/uno.extensions/issues/2328 is fixed -->
60+
--><!-- Can be added back when https://github.com/unoplatform/uno.extensions/issues/2328 is fixed -->
5661
<!--<dxg:CheckBoxColumn FieldName="OnVacation"
5762
MinWidth="130"
58-
VerticalContentAlignment="Center" />-->
63+
VerticalContentAlignment="Center" />--><!--
5964
</dxg:DataGridView.Columns>
60-
</dxg:DataGridView>
65+
</dxg:DataGridView>-->
6166
</ScrollView>

UI/MauiEmbedding/DevExpressApp/src/DevExpressApp.MauiControls/DevExpressApp.MauiControls.csproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@
1212
</PropertyGroup>
1313

1414
<ItemGroup>
15-
<PackageReference Include="DevExpress.Maui.Charts" />
16-
<PackageReference Include="DevExpress.Maui.DataGrid" />
15+
<!-- =============================================================== -->
16+
<!-- ===== IMPORTANT: TODO: Uncomment to test the DevExpressApp ==== -->
17+
<!-- ===== after you added the DevExpress NuGet Feed URL =========== -->
18+
<!-- ===== (https://nuget.devexpress.com/#feed-url) ================ -->
19+
<!-- =============================================================== -->
20+
<!--<PackageReference Include="DevExpress.Maui.Charts" />-->
21+
<!--<PackageReference Include="DevExpress.Maui.DataGrid" />-->
1722
<PackageReference Include="Microsoft.Maui.Controls" />
1823
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" />
1924
</ItemGroup>

UI/MauiEmbedding/DevExpressApp/src/DevExpressApp/Presentation/MainPage.xaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@
77
NavigationCacheMode="Required"
88
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
99

10+
<!--
11+
This sample code requires the DevExpress NuGet packages.
12+
In order to access the NuGet packages you do need to create an account at DevExpress website (https://www.devexpress.com/MyAccount/Register).
13+
Once you have an account with DevExpress, you need to visit the DevExpress NuGet Feed URL page (https://nuget.devexpress.com/#feed-url)
14+
to retrieve a NuGet feed that's associated with your account.
15+
You can either add this as a NuGet feed in Visual Studio or use a nuget.config file.
16+
17+
To summarize in order to test this sample app:
18+
1. Create a DevExpress account and obtain the necessary licenses for the DevExpress packages.
19+
2. Add your DevExpress NuGet feed URL to the project (https://nuget.devexpress.com/#feed-url).
20+
3. Look for comments marked with "IMPORTANT: TODO: Uncomment to test the DevExpressApp" and uncomment the corresponding code blocks.
21+
-->
22+
1023
<Grid utu:SafeArea.Insets="VisibleBounds">
1124
<NavigationView x:Name="NavigationView"
1225
uen:Region.Attached="True"

UI/MauiEmbedding/DevExpressApp/src/Directory.Packages.props

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@
55
See https://aka.platform.uno/using-uno-sdk for more information.
66
-->
77
<ItemGroup>
8-
<PackageVersion Include="DevExpress.Maui.Charts" Version="23.2.6" />
9-
<PackageVersion Include="DevExpress.Maui.DataGrid" Version="23.2.6" />
8+
<!-- =============================================================== -->
9+
<!-- ===== IMPORTANT: TODO: Uncomment to test the DevExpressApp ==== -->
10+
<!-- ===== after you added the DevExpress NuGet Feed URL =========== -->
11+
<!-- ===== (https://nuget.devexpress.com/#feed-url) ================ -->
12+
<!-- =============================================================== -->
13+
<!--<PackageVersion Include="DevExpress.Maui.Charts" Version="23.2.6" />-->
14+
<!--<PackageVersion Include="DevExpress.Maui.DataGrid" Version="23.2.6" />-->
1015
<PackageVersion Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
1116
<PackageVersion Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" />
1217
</ItemGroup>

0 commit comments

Comments
 (0)