Pagination icon not recognized in unpackaged app on net 8
Hi Erinxon Santana,
We have created a basic sample and conducted testing on our end using the
latest version of DataGrid (23.2.5) in .NET 8. However, we were unable to
replicate the issue regarding the DataPager icons not appearing as described.
The icons are displaying properly in the view as expected.
For your convenience, we have attached the sample we tested on our end. We kindly ask you to review the attached sample on your end and verify whether you encounter the same issue.
To expedite resolution, we request that you thoroughly examine the provided sample. If there are any missed configurations or adjustments required to reproduce the reported issue, please modify the sample accordingly. Providing an accurate sample that replicates the problem will enable us to conduct a detailed investigation and deliver a solution promptly.
Note: We have conducted tests using the latest DataGrid version 24.2.5 and .NET 8 on the Windows platform.
Regards,
Tamilarasan
Attachment: Sample_44cd5b7.zip
Hi Tamilarasan, thanks for answer quickly.
There is no problem when you run the application in a visual studio, but there is a problem when you run the application after publishing it.
To reproduce the issue, we need to add the following code to can run the app after publishing:
File name: launchSettings.json
Code:
{
"profiles": {
"Windows Machine": {
"commandName": "Project",
"nativeDebugging": false
}
}
}
File Name: MauiApp1.csproj
<WindowsPackageType>None</WindowsPackageType>
<WindowsAppSDKSelfContained Condition="'$(IsUnpackaged)' == 'true'">true</WindowsAppSDKSelfContained>
<SelfContained Condition="'$(IsUnpackaged)' == 'true'">true</SelfContained>
Attachment: Sample_44cd5b7
Hi Erinxon ,
Based on the information provided,
the issue seems to be in the framework itself. However, there is workaround to
resolve this issue, we can set the font directly to the platform control using
the Handler. We have provided a working sample and code snippet for your
reference.
Framework issue link - https://github.com/dotnet/maui/issues/9104
Code snippet:
|
MauiProgram.cs #if WINDOWS Microsoft.Maui.Handlers.LabelHandler.Mapper.AppendToMapping("FontFamily", (handler, element) => { if (element.Font.Family == "Maui Material Assets") { const string MauiMaterialAssetsFamily = "Maui Material Assets.ttf#Maui Material Assets"; handler.PlatformView.FontFamily = new Microsoft.UI.Xaml.Media.FontFamily(MauiMaterialAssetsFamily); } }); #endif |
Regards,
Nirmalkumar
Attachment: MauiApp1_b4082706.zip
Hi Nirmalkumar,
Could you provide me the font family you are using in the pagination icon to put in manually into the project?
Thanks for answer quickly.
Hi Erinxon ,
Currently, we are analyzing your query. We will provide you with an update on
or before February 19, 2024, after validating the details. We appreciate your
patience and understanding in the meantime.
Regards,
Nirmalkumar
Hi Nirmalkumar,
Got it, Nirmalkumar. Thanks for the update. I'll follow the ticket for further updates.
Hi Erinxon,
We have created a separate ticket under your account, please follow that for further follow up.
Regards,
Jayashree
hi, i have this same problem with the data grid headers for sorting in an unpackaged maui application. i don't have the .ttf asset file is that something that can be sent to us?
Hi Andrea,
We have created a support ticket under your account, please follow that further updates and if you encounter any issues you can create a separate ticket under this ticketing system:
https://support.syncfusion.com/
Regards,
Abinesh P
- 9 Replies
- 6 Participants
-
ES Erinxon Santana
- Feb 13, 2024 03:23 AM UTC
- Oct 15, 2024 10:49 AM UTC