GithubHelp home page GithubHelp logo

syncfusion / xamarin-demos Goto Github PK

View Code? Open in Web Editor NEW
317.0 40.0 204.0 784.22 MB

This repository contains the Syncfusion Xamarin UI control’s samples and the guide to use them.

Home Page: https://www.syncfusion.com/xamarin-ui-controls?utm_source=github&utm_medium=listing

C# 97.91% Batchfile 0.08% PowerShell 0.01% HTML 1.91% CSS 0.05% Shell 0.04%
xamarin-forms xamarin-ios xamarin-android macos xaml uwp syncfusion charts datagrid listview

xamarin-demos's Introduction

Syncfusion Xamarin examples

This repository contains awesome demos of Syncfusion Xamarin UI controls. This is the best place to check our controls to get more insight about the usage of APIs. You can also check our controls by installing the complete Xamarin.Forms sample browser from Google Play Store or Microsoft Store, in which you can browse the demo for all the controls and view the source code of each sample within the app itself.

This section guides you to use the Syncfusion Xamarin examples in your applications.

Requirements to run the demo

Repository Structure

The "Forms" directory contains the Xamarin.Forms examples for each control such as Charts, DataGrid, etc. All the examples can be deployed in Android, iOS, and UWP platforms. Additionally, Charts, DataGrid, and ListView examples can be deployed in macOS platform also.

The "Android/SampleBrowser" directory contains Xamarin.Android sample browser project. Run this project to see the Xamarin.Android examples for all the controls in single application.

The "iOS/SampleBrowser" directory contains Xamarin.iOS sample browser project. Run this project to see the Xamarin.iOS examples for all the controls in single application.

License

Syncfusion has no liability for any damage or consequence that may arise by the use or viewing of the examples. The examples are for demonstrative purposes and if you choose to use or access the examples you agree to not hold Syncfusion liable, in any form, for any damage that is related to use, accessing or otherwise viewing the examples. By accessing, viewing, or otherwise seeing the examples you acknowledge and agree Syncfusion’s examples will not allow you to seek injunctive relief in any form for any claim related to the sample. If you do not agree to this, do not view, access, utilize or otherwise do anything with Syncfusion’s examples.

Using the examples

If you download the examples using the "Download ZIP" option then please follow the instructions below

Notes:

  • Before you unzip the archive, right-click it, select Properties, and then select Unblock.
  • Be sure to unzip the entire archive, and not just individual examples. The samples depend on the SharedContent folder in the archive.

To use the Syncfusion Xamarin examples, Syncfusion license key should be registered in examples. Refer this link for more information.

Reminder: If you unzip individual examples, they will not build due to references to other portions of the ZIP file that were not unzipped. You must unzip the entire archive if you intend to build the examples.

Controls Catalog

Xamarin.Forms Xamarin.Android Xamarin.iOS
GRIDS GRIDS GRIDS
DataGrid DataGrid DataGrid
DATA VISUALIZATION DATA VISUALIZATION DATA VISUALIZATION
Bar Code Bar Code Bar Code
Charts Charts Charts
Circular Gauge Circular Gauge Circular Gauge
Diagram Diagram Diagram
Digital Gauge Digital Gauge Digital Gauge
Linear Gauge Linear Gauge Linear Gauge
Maps Maps Maps
Range Navigator Range Navigator Range Navigator
Sparkline Sparkline Sparkline
Sunburst Chart Sunburst Chart Sunburst Chart
Tree Map Tree Map Tree Map
CALENDAR CALENDAR CALENDAR
Scheduler Scheduler Scheduler
Calendar Calendar Calendar
PROJECT MANAGEMENT PROJECT MANAGEMENT PROJECT MANAGEMENT
Kanban Kanban Kanban
NOTIFICATION NOTIFICATION NOTIFICATION
Busy Indicator Busy Indicator Busy Indicator
Progress Bar Progress Bar Progress Bar
Pull To Refresh Pull To Refresh Pull To Refresh
VIEWER/EDITOR VIEWER/EDITOR VIEWER/EDITOR
Image Editor Image Editor Image Editor
PDF Viewer PDF Viewer PDF Viewer
NAVIGATION NAVIGATION NAVIGATION
Navigation Drawer Navigation Drawer Navigation Drawer
Radial Menu Radial Menu Radial Menu
Rotator Rotator Rotator
Tabs Tabs Tabs
LAYOUT LAYOUT LAYOUT
Carousel Carousel Carousel
ListView - -
Pop-up Pop-up Pop-up
EDITORS EDITORS EDITORS
Autocomplete Autocomplete Autocomplete
CheckBox CheckBox CheckBox
Combo Box Combo Box Combo Box
Data Form Data Form Data Form
Masked Text Box Masked Text Box Masked Text Box
Numeric Text Box Numeric Text Box Numeric Text Box
Numeric Up-Down Numeric Up-Down Numeric Up-Down
Picker Picker Picker
Radio Button - Radio Button
Range Slider Range Slider Range Slider
Rating Rating Rating
Segmented Control Segmented Control Segmented Control
FILE FORMATS FILE FORMATS FILE FORMATS
Excel Excel Excel
PDF PDF PDF
Word Word Word
PowerPoint PowerPoint PowerPoint
MISCELLANEOUS MISCELLANEOUS MISCELLANEOUS
Calculate Calculate Calculate
Data Source Data Source Data Source

Syncfusion Xamarin UI Template

The Syncfusion item templates extension provides predefined UI designs for Xamarin.Forms. Refer to Syncfusion Project Templates for more details.

Support and Feedback

Copyright © 2001-2024 Syncfusion, Inc. Updated on 2024-03-19 at precisely 10:31:15 EST.

xamarin-demos's People

Contributors

chansardrake avatar dependabot[bot] avatar iyyappanmani avatar manivannan-sundararajan avatar mohanaraja avatar paulandersons avatar samsudeenks avatar syncfusionbuild avatar syncfusioninstall avatar vijays-git avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xamarin-demos's Issues

Missing Init Code in samples

All the samples make a call to an init function that as near as I can tell is not provided in source code form.

On Android, the implementation of every MainActivity::OnCreate has the following line:

SampleBrowser.Core.Droid.CoreSampleBrowser.Init(Resources, null);

On iOS, the implementation of every AppDelegate::FinishedLaunching has the following line:

SampleBrowser.Core.iOS.CoreSampleBrowser.Init(UIScreen.MainScreen.Bounds, app.StatusBarFrame.Size.Height);

As near as I can figure this code lives in the SampleBrowser.Core.16.3.0.21.nupkg nuget package and is where the magic sauce is that keeps the controls from being rendered under the notification area up at the top on iOS and who know what other magic. I assume we should not ship the SampleBrowser.Core package as part of our syncFusion apps, so is there any other way we can see what is happening in this init function?

SfPdfViewer change orientation

when pdf viewer change orientation, the view will turn to white and if i change it back it will not respond and will give me this on my output:

06-14 15:58:20.201 D/Mono (18571): Assembly Ref addref Syncfusion.SfPdfViewer.XForms.Android[0xb8931198] -> System.Core[0xb8a23768]: 14
The thread 0x12 has exited with code 0 (0x0).
06-14 15:58:21.151 I/art (18571): Starting a blocking GC Explicit
06-14 15:58:21.181 I/art (18571): Explicit concurrent mark sweep GC freed 11356(555KB) AllocSpace objects, 24(15MB) LOS objects, 40% free, 7MB/12MB, paused 707us total 38.267ms
06-14 15:58:21.191 D/Mono (18571): GC_TAR_BRIDGE bridges 321 objects 31873 opaque 12451 colors 321 colors-bridged 321 colors-visible 321 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.08ms tarjan 25.24ms scc-setup 0.18ms gather-xref 0.02ms xref-setup 0.00ms cleanup 1.14ms
06-14 15:58:21.191 D/Mono (18571): GC_BRIDGE: Complete, was running for 43.97ms
06-14 15:58:21.191 D/Mono (18571): GC_MINOR: (Nursery full) time 36.05ms, stw 36.70ms promoted 261K major size: 5872K in use: 4730K los size: 18432K in use: 17494K
06-14 15:58:22.931 D/Mono (18571): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 321 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.08ms tarjan 25.24ms scc-setup 0.18ms gather-xref 0.02ms xref-setup 0.00ms cleanup 0.00ms
06-14 15:58:22.931 D/Mono (18571): GC_BRIDGE: Complete, was running for 0.12ms
06-14 15:58:22.931 D/Mono (18571): GC_MINOR: (Nursery full) time 4.84ms, stw 5.40ms promoted 36K major size: 5920K in use: 4766K los size: 18432K in use: 17510K
06-14 15:58:24.691 D/Mono (18571): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 321 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.08ms tarjan 25.24ms scc-setup 0.18ms gather-xref 0.02ms xref-setup 0.00ms cleanup 0.00ms
06-14 15:58:24.691 D/Mono (18571): GC_BRIDGE: Complete, was running for 0.11ms
06-14 15:58:24.691 D/Mono (18571): GC_MINOR: (Nursery full) time 4.57ms, stw 5.16ms promoted 36K major size: 5952K in use: 4803K los size: 18432K in use: 17542K
06-14 15:58:26.931 D/Mono (18571): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 321 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.08ms tarjan 25.24ms scc-setup 0.18ms gather-xref 0.02ms xref-setup 0.00ms cleanup 0.00ms
06-14 15:58:26.931 D/Mono (18571): GC_BRIDGE: Complete, was running for 0.11ms
06-14 15:58:26.931 D/Mono (18571): GC_MINOR: (Nursery full) time 5.43ms, stw 6.44ms promoted 36K major size: 5984K in use: 4839K los size: 18432K in use: 17542K
06-14 15:58:29.061 D/Mono (18571): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 321 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.08ms tarjan 25.24ms scc-setup 0.18ms gather-xref 0.02ms xref-setup 0.00ms cleanup 0.00ms
06-14 15:58:29.061 D/Mono (18571): GC_BRIDGE: Complete, was running for 0.11ms
06-14 15:58:29.061 D/Mono (18571): GC_MINOR: (Nursery full) time 4.79ms, stw 5.55ms promoted 36K major size: 6032K in use: 4875K los size: 19456K in use: 17606K
06-14 15:58:30.831 D/Mono (18571): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 321 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.08ms tarjan 25.24ms scc-setup 0.18ms gather-xref 0.02ms xref-setup 0.00ms cleanup 0.00ms
06-14 15:58:30.831 D/Mono (18571): GC_BRIDGE: Complete, was running for 0.11ms
06-14 15:58:30.831 D/Mono (18571): GC_MINOR: (Nursery full) time 4.54ms, stw 5.13ms promoted 36K major size: 6064K in use: 4912K los size: 19456K in use: 17606K
06-14 15:58:32.671 D/Mono (18571): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 321 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.08ms tarjan 25.24ms scc-setup 0.18ms gather-xref 0.02ms xref-setup 0.00ms cleanup 0.00ms
06-14 15:58:32.671 D/Mono (18571): GC_BRIDGE: Complete, was running for 0.11ms
06-14 15:58:32.671 D/Mono (18571): GC_MINOR: (Nursery full) time 4.53ms, stw 5.05ms promoted 36K major size: 6096K in use: 4948K los size: 19456K in use: 17606K
06-14 15:58:34.451 D/Mono (18571): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 321 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.08ms tarjan 25.24ms scc-setup 0.18ms gather-xref 0.02ms xref-setup 0.00ms cleanup 0.00ms
06-14 15:58:34.451 D/Mono (18571): GC_BRIDGE: Complete, was running for 0.11ms
06-14 15:58:34.451 D/Mono (18571): GC_MINOR: (Nursery full) time 4.56ms, stw 5.10ms promoted 36K major size: 6144K in use: 4985K los size: 19456K in use: 17734K
06-14 15:58:36.281 D/Mono (18571): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 321 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.08ms tarjan 25.24ms scc-setup 0.18ms gather-xref 0.02ms xref-setup 0.00ms cleanup 0.00ms
06-14 15:58:36.281 D/Mono (18571): GC_BRIDGE: Complete, was running for 0.11ms
06-14 15:58:36.281 D/Mono (18571): GC_MINOR: (Nursery full) time 4.89ms, stw 5.44ms promoted 36K major size: 6176K in use: 5021K los size: 19456K in use: 17734K
06-14 15:58:38.071 D/Mono (18571): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 321 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.08ms tarjan 25.24ms scc-setup 0.18ms gather-xref 0.02ms xref-setup 0.00ms cleanup 0.00ms
06-14 15:58:38.071 D/Mono (18571): GC_BRIDGE: Complete, was running for 0.12ms
06-14 15:58:38.071 D/Mono (18571): GC_MINOR: (Nursery full) time 4.59ms, stw 5.16ms promoted 36K major size: 6208K in use: 5057K los size: 19456K in use: 17734K
06-14 15:58:40.211 D/Mono (18571): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 321 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.08ms tarjan 25.24ms scc-setup 0.18ms gather-xref 0.02ms xref-setup 0.00ms cleanup 0.00ms
06-14 15:58:40.211 D/Mono (18571): GC_BRIDGE: Complete, was running for 0.11ms
06-14 15:58:40.211 D/Mono (18571): GC_MINOR: (Nursery full) time 4.54ms, stw 5.08ms promoted 36K major size: 6240K in use: 5094K los size: 19456K in use: 17734K
06-14 15:58:41.991 D/Mono (18571): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 321 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.08ms tarjan 25.24ms scc-setup 0.18ms gather-xref 0.02ms xref-setup 0.00ms cleanup 0.00ms
06-14 15:58:41.991 D/Mono (18571): GC_BRIDGE: Complete, was running for 0.11ms
06-14 15:58:41.991 D/Mono (18571): GC_MINOR: (Nursery full) time 4.59ms, stw 5.14ms promoted 36K major size: 6288K in use: 5130K los size: 19456K in use: 17734K
06-14 15:58:44.021 I/art (18571): Starting a blocking GC Explicit
06-14 15:58:44.061 I/art (18571): Explicit concurrent mark sweep GC freed 24802(1409KB) AllocSpace objects, 0(0B) LOS objects, 39% free, 7MB/12MB, paused 796us total 42.660ms
06-14 15:58:44.071 D/Mono (18571): GC_TAR_BRIDGE bridges 397 objects 435 opaque 11 colors 397 colors-bridged 397 colors-visible 397 xref 1 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.13ms tarjan 0.66ms scc-setup 0.21ms gather-xref 0.02ms xref-setup 0.00ms cleanup 2.58ms
06-14 15:58:44.071 D/Mono (18571): GC_BRIDGE: Complete, was running for 53.47ms
06-14 15:58:44.071 D/Mono (18571): GC_MAJOR: (Minor allowance) time 36.25ms, stw 37.17ms los size: 15360K in use: 3258K
06-14 15:58:44.071 D/Mono (18571): GC_MAJOR_SWEEP: major size: 5824K in use: 4388K
06-14 15:58:46.051 D/Mono (18571): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 397 xref 1 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.13ms tarjan 0.66ms scc-setup 0.21ms gather-xref 0.02ms xref-setup 0.00ms cleanup 0.00ms
06-14 15:58:46.051 D/Mono (18571): GC_BRIDGE: Complete, was running for 0.11ms
06-14 15:58:46.051 D/Mono (18571): GC_MINOR: (Nursery full) time 4.70ms, stw 6.35ms promoted 36K major size: 5824K in use: 4424K los size: 15360K in use: 3258K
06-14 15:58:48.121 D/Mono (18571): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 397 xref 1 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.13ms tarjan 0.66ms scc-setup 0.21ms gather-xref 0.02ms xref-setup 0.00ms cleanup 0.00ms
06-14 15:58:48.121 D/Mono (18571): GC_BRIDGE: Complete, was running for 0.12ms
06-14 15:58:48.121 D/Mono (18571): GC_MINOR: (Nursery full) time 4.35ms, stw 4.91ms promoted 36K major size: 5872K in use: 4461K los size: 15360K in use: 3514K
06-14 15:58:49.911 D/Mono (18571): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 397 xref 1 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.13ms tarjan 0.66ms scc-setup 0.21ms gather-xref 0.02ms xref-setup 0.00ms cleanup 0.00ms
06-14 15:58:49.911 D/Mono (18571): GC_BRIDGE: Complete, was running for 0.10ms
06-14 15:58:49.911 D/Mono (18571): GC_MINOR: (Nursery full) time 4.43ms, stw 4.96ms promoted 36K major size: 5904K in use: 4497K los size: 15360K in use: 3514K
06-14 15:58:51.811 D/Mono (18571): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 397 xref 1 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.13ms tarjan 0.66ms scc-setup 0.21ms gather-xref 0.02ms xref-setup 0.00ms cleanup 0.00ms
06-14 15:58:51.811 D/Mono (18571): GC_BRIDGE: Complete, was running for 0.12ms
06-14 15:58:51.811 D/Mono (18571): GC_MINOR: (Nursery full) time 4.31ms, stw 4.88ms promoted 36K major size: 5936K in use: 4533K los size: 15360K in use: 3514K
06-14 15:58:53.601 D/Mono (18571): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 397 xref 1 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.13ms tarjan 0.66ms scc-setup 0.21ms gather-xref 0.02ms xref-setup 0.00ms cleanup 0.00ms
06-14 15:58:53.601 D/Mono (18571): GC_BRIDGE: Complete, was running for 0.11ms
06-14 15:58:53.601 D/Mono (18571): GC_MINOR: (Nursery full) time 4.31ms, stw 4.87ms promoted 36K major size: 5984K in use: 4570K los size: 15360K in use: 3514K

[Bug] SfSchedule raises UnhandledExceptionEventArgs Exception when double tapping the appointment if SyncfusionThemeDictionary is specified on UWP

On UWP, when specifying SyncfusionThemeDictionary as instructed in the documentation, SfSchedule raises weird Excepion when tapping an Appointment:
System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.SfSchedule.UWP.AppointmentControl.ClearSelection()
at Syncfusion.SfSchedule.UWP.SelectionController.ClearAppointmentSelection()
at Syncfusion.SfSchedule.UWP.SelectionController.UpdateAppointmentSelection(AppointmentControl appointmentControl, ScheduleAppointment appointment, DateTime dateTime)
at Syncfusion.SfSchedule.UWP.SelectionController.OnAppointmentMouseLeftButtonDown(AppointmentControl ...

Environment:
Visual Studio 2019 16.7.5
Xamarin.Forms 4.8
Windows 10 20231

Here is a simple demo to show the bug: Thanks.
---------------TestPage.xaml-------------------
`

<ContentPage.Resources>
    <syncTheme:SyncfusionThemeDictionary>
        <syncTheme:SyncfusionThemeDictionary.MergedDictionaries>
            <syncTheme:DarkTheme />
        </syncTheme:SyncfusionThemeDictionary.MergedDictionaries>
    </syncTheme:SyncfusionThemeDictionary>
</ContentPage.Resources>

<sd:SfSchedule DataSource="{Binding Appointments}" ScheduleView="WeekView"/>

`

------------------TestPage.xaml.cs------------------
`using Syncfusion.SfSchedule.XForms;
using System;
using Xamarin.Forms;

namespace Demo.Views
{
public partial class TestPage : ContentPage
{
public TestPage()
{
InitializeComponent();
}

    public ScheduleAppointmentCollection Appointments { get; set; } = new ScheduleAppointmentCollection();

    protected override void OnAppearing()
    {
        base.OnAppearing();
        Appointments.Add(new ScheduleAppointment()
        {
            StartTime = DateTime.Now,
            EndTime = DateTime.Now.AddHours(6),
            Subject = "Meeting",
            Location = "Hutchison road",
        });
    }     
}

}`

Chinese characters are not displayed

PdfDocument doc = new PdfDocument();
doc.PageSettings.Orientation = PdfPageOrientation.Landscape;
doc.PageSettings.Size = PdfPageSize.A4;
//Add a page.

        PdfPage page = doc.Pages.Add();

        //Create a PdfGrid.
        PdfGrid pdfGrid = new PdfGrid();
        //Create a DataTable.
        DataTable dataTable = new DataTable();

        //Add columns to the DataTable
        dataTable.Columns.Add("名字");
        dataTable.Columns.Add("Name");
        dataTable.Columns.Add("Salary");

        //Add rows to the DataTable.
        dataTable.Rows.Add(new object[] { "中文字符", "Clay", "$10,000" });
        dataTable.Rows.Add(new object[] { "E02", "Thomas", "$10,500" });
        dataTable.Rows.Add(new object[] { "E03", "Simon", "$12,000" });

        //Assign data source.
        pdfGrid.DataSource = dataTable;

        for (int i = 0; i < pdfGrid.Columns.Count; i++)
        {
            for (int j = 0; j < pdfGrid.Rows.Count; j++)
            {
                pdfGrid.Columns[i].Width = 100;
                pdfGrid.Rows[j].Height = 50;
               
            }
        }

        PdfGridBuiltinStyleSettings tableStyleOption = new PdfGridBuiltinStyleSettings();
        tableStyleOption.ApplyStyleForBandedRows = true;
        tableStyleOption.ApplyStyleForHeaderRow = true;

        //Apply built-in table style
        pdfGrid.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable4Accent4, tableStyleOption);
        //Draw the PdfLightTable.
        pdfGrid.Draw(page, Syncfusion.Drawing.PointF.Empty);

        //Save the PDF document into stream

        MemoryStream stream = new MemoryStream();

        doc.Save(stream);

        //Close the document.

        doc.Close(true);

when test my code Chinese characters are not displayed!
image

[Bug] Latest SfRotator raises ArgumentOutOfRangeException on UWP

Hi team,
Latest SfRotator (v18.4.0.49) raises exception on UWP:
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index
at System.Runtime.InteropServices.WindowsRuntime.VectorToListAdapter.GetAt[T](IVector`1 _this, UInt32 index)
at Syncfusion.UI.Xaml.Rotator.SliderItemsPanel.MoveSelectedIndex(Int32 index, Boolean isupdate, Boolean isItemChanged)
at Syncfusion.UI.Xaml.Rotator.SfRotator.OnItemsChanged(Object e)
at Windows.UI.Xaml.Controls.ItemsControl.put_ItemsSource(Object value)

while previous versions ( <= v18.4.0.48) runs normally.

SampleBrowser.SfPdfViewer does not start in UWP

I simply download and extract the whole of the SampleBrowser.
Rename the folder because it causes a path length issue.
Open in Visual Studio 2022 current version.
Wait for a few moments until the pointer stops spinning.
Select X64, SampleBrowser.SfPdfViewer.UWP, Local Machine.
Run it.

I get the following error:

Exception thrown: 'System.TypeLoadException' in SampleBrowser.SfPdfViewer.UWP.exe An exception of type 'System.TypeLoadException' occurred in SampleBrowser.SfPdfViewer.UWP.exe but was not handled in user code Could not find Windows Runtime type 'Windows.UI.Xaml.Markup.IXamlType2'.

Thanks for looking at this.

[Bug] SfListView have compatibility issue with Xamarin.Forms 4.7.0.937pre4 and above (4.7.0.968 the Stable Release) on UWP

Starting from Xamarin.Forms 4.7.0.937-pre4 and Stable Release(4.7.0.968) , the latest version of SfListView behaves abnormally on UWP:

The tap event of an item in SfListView get called in mislocation or never get called (caused by malposition). For example, when the 8th row is tapped actually, the 2nd row or a button in the UI get called its own tapped event. Weird.

Since the issue still exists when compiled with Xamarin.Forms 4.7.0 Stable Release, this feedback is provided to help figure out the cause.
Thanks a lot. Have a good day.

Setting icon on the top row

Hi, I would like to reuse the code behind RecursiveAppointments.xaml and its view model.

Is that ok to use it in my App? Just wanted to be sure of the license on usage of this code.

I also see that SampleBrowser.SfSchedule.props file has a itemgroup that refers to RecurrenceAppointments.xaml / .cs and its , View Model.
Is there a documentation that explains the intent to use this view in this manner via MSBuild steps / props file?

Thanks

Can you show us how to track location

Hello, I have someone who is a dog walker or a bicyclist, but your samples don't show this.

  1. How can I get the SF compoment in phone to push the location data back with phone ID to the Syncfusion Map and show the history. Can you show me a snippet.
  2. How can I ensure both phone and web server ASP WebAPI are in sync, or buffred if data connection is lost.
  3. Also how to show icons on the map, bus stop, road etc.

Thanks

Xamarin syncfusion sflistview TapGestureRecognizer not firing on Android only

HotelReservationOption_Tapped is not firing for Android. Works fine in iOS.

I am using Xamarin.Forms 4.8.0.1560
All my syncfusion packages are 18.3.0.40
Target Framework is Android 9.0 (Pie)

<syncfusion:SfListView AutoFitMode="Height" ItemsSource="{Binding ReservationListActive}" SelectionBackgroundColor="Transparent" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" Margin="0,10,0,0"> <syncfusion:SfListView.ItemTemplate> <DataTemplate> <ViewCell> <StackLayout> <ScrollView VerticalOptions="FillAndExpand"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="*"></RowDefinition> <RowDefinition Height="Auto"></RowDefinition> </Grid.RowDefinitions> <StackLayout Grid.Row="0" Margin="20,9,20,14" Orientation="Horizontal"> <StackLayout Orientation="Vertical" Spacing="6"> <Label Text="{Binding HotelName}" TextColor="{StaticResource LabelColor}" FontSize="18"></Label> <StackLayout Orientation="Horizontal" Spacing="9"> <Image Source="calendarPageEmpty1"></Image> <Label Text="{Binding HotelName}" TextColor="{StaticResource LightGrey2}" FontSize="14"></Label> </StackLayout> </StackLayout> <Image HorizontalOptions="EndAndExpand" Source="dots.png" HeightRequest="20" WidthRequest="20" BackgroundColor="Transparent"> <Image.GestureRecognizers> <TapGestureRecognizer Tapped="HotelReservationOption_Tapped" CommandParameter="{Binding HotelID}"/> </Image.GestureRecognizers> </Image> </StackLayout> <BoxView Grid.Row="1" HeightRequest="1" Color="{StaticResource LineColor}"></BoxView> </Grid> </ScrollView> </StackLayout> </ViewCell> </DataTemplate> </syncfusion:SfListView.ItemTemplate> </syncfusion:SfListView>

SfExpander raise Exception and not Rendered normally

Hi Syncfusion Team,
On UWP and Android, SfExpander doesn't get rendered and raises InvalidOperationException: "Collection was modified; enumeration operation may not execute."
The SfExpander demo in official Syncfusion Components for Xamarin.Forms (UWP App) doesn't get rendered correctly either.

SfExpanderScreenshot1
SfExpanderScreenshot2

Environment:
Visual Studio 2019 ver. 16.8.5
Windows 10 ver. 21292 (SDK ver. 19041) / Android 10 (API ver. 29)

Thanks a lot and have a nice day.
Regards

Theme does not change instantly like a regular ResourceDictionary when inherited

Description
When inherited ResourceDictionary and create a new class the theme does not change instantly as a regular ResourceDictionary does.

Steps to Reproduce
Run the below sample in Xamarin.Forms
On the Switch,
BackgroundTheme should be Red ad LightTheme has been applied.
Navigate to the second page.
BackgroundColor is changed to Red.

Expected Behavior
BackgroundTheme should be Red ad LightTheme has been applied in the current page itself.

Actual Behavior
BackgroundTheme is applied Red ad LightTheme has been applied in the next navigated page only.

Basic Information
Xamarin: 4.7.0.968

Reproduction Link
ThemeApplication.zip

SfAccordion

Excuse me,How can I make the accordion slide to the bottom automatically?

[Bug] SfChipGroup, SfStepProgressBar, SfAvatarView, SfRichTextEditor causes InvalidURI exception with Xamarin.Forms 5.0.0 on UWP

With Xamarin.Forms 5.0.0, the Xamarin team made an intentional modification which make existing Syncfusion Controls raise InvalidURI Exception when Custom Font is specified.
Please check the link.
As the post pointed out, SfRichTextEditor causes such URI format exception.
I find that SfStepProgressBar and SfAvatarView also causes the Exception, for StepView.PrimaryFormattedText is specified with FormattedString.
I guess more Syncfusion controls would be affected so I posted this to let you know.
Have a nice day.

Code files

Hi,

Where upload this code files? And which use file types?

Android UI kit doesnt run on Visual Studio for Mac

I am getting a persistent error while trying to run the Android sample

Loaded assembly: data-0x741577a930f0 [External]
Loaded assembly: data-0x74130bda9860 [External]
Loaded assembly: data-0x741577a33090 [External]
Loaded assembly: data-0x74136e302c70 [External]
[n.xamarin.uikit] No implementation found for void mono.android.TypeManager.n_activate(java.lang.String, java.lang.String, java.lang.Object, java.lang.Object[]) (tried Java_mono_android_TypeManager_n_1activate and Java_mono_android_TypeManager_n_1activate__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_Object_2_3Ljava_lang_Object_2)
[n.xamarin.uikit] No implementation found for void mono.android.TypeManager.n_activate(java.lang.String, java.lang.String, java.lang.Object, java.lang.Object[]) (tried Java_mono_android_TypeManager_n_1activate and Java_mono_android_TypeManager_n_1activate__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_Object_2_3Ljava_lang_Object_2)
[n.xamarin.uikit] No implementation found for void mono.android.TypeManager.n_activate(java.lang.String, java.lang.String, java.lang.Object, java.lang.Object[]) (tried Java_mono_android_TypeManager_n_1activate and Java_mono_android_TypeManager_n_1activate__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_Object_2_3Ljava_lang_Object_2)

Resolved pending breakpoint for 'Xamarin.HotReload.HotReloadAgent.BreakpointCheckpoint()' to /Users/runner/work/1/s/HotReload/Source/Xamarin.HotReload.Agent/HotReloadAgent.cs:418 [0x00000].
Resolved pending breakpoint for 'Xamarin.HotReload.HotReloadAgent.BreakpointCheckpoint()' to /Users/runner/work/1/s/HotReload/Source/Xamarin.HotReload.Agent/HotReloadAgent.cs:418 [0x00000].
Resolved pending breakpoint for 'Xamarin.HotReload.HotReloadAgent.BreakpointCheckpoint()' to /Users/runner/work/1/s/HotReload/Source/Xamarin.HotReload.Agent/HotReloadAgent.cs:418 [0x00000].

... And then the application freezes in the emulator. Also, updating the NuGet packages doest work

Controls don't adopt Dark Theme automatically like those native controls

Syncfusion controls are awesome. Here I encounter a little problem when trying to support dark mode.

When setting the XAML of Xamarin.Forms projects to Dark Theme, the native controls will be dark, but some Syncfusion control doesn't automatically adopt the Dark Theme. Instead, each control (e.g., AutoComplete, DataGrid, etc.) needed to be configured with specified attirbutes like BackgroundColor, TextColor and so on, in order to provide the user with a proper Dark Theme.

Are there any ways to make all the Syncfusion control go with the theme configuration automatically, just like those native controls? Thanks a lot.

SfPdfViewer cannot open HyperLinks when targeting Android SDK 33

New apps on Google Play must target Android 13 (API level 33) [1]

Setting the target SDK to 33 defined in /Android/SampleBrowser/Properties/AndroidManifest.xml

 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="16.1" package="XamarinAndroid.SampleBrowser" android:installLocation="auto">
-       <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="29"/>
+       <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="33" />
        <application android:label="Syncfusion Components for Xamarin.Android" android:largeHeap="true">

Is done as shown above, however, Android is no longer able to open any Hyperlinks in the PDFViewer example.

Android PDFViewer screenshot

screenshot

It still shows the dialog just fine, but choosing Open only closes the dialog without opening the web browser. How do I allow the user to open hyperlinks?

PDF generation and save does not work

Hi, I am testing the feature of generating PDF and saving to storage with Syncfusion Controls Explorer andriod application. It does not seem working. After I click the "GENERATE PDF" Button, nothing happened. I am using phone with android 11. I also checked the phone storage with file explorer, and no pdf was generated.

Is there any issue with the code? Thanks.

[Bug] Doc to PDF conversion Character Overlap on Android (Font Substitution not working)

When converting doc to pdf, if the document contains character-based content and numeral/symbols, the font substitution does not working as expected, causing overlapping in pdf file.

On UWP, FontName of CharacterFormat can be specified to use a pre-installed Microsoft YaHei or Arial Unicode MS as a workaround. However, Font Substitution doesn't work.
On Android, either specifying FontName to Droid Sans Fallback or using Font Substitution doesn't work.
CharNumeralOverlap

Thanks a lot.

Environment:
Windows 10 Build 20246
Visual Studio 2019 16.8.3
Xamarin 5.0.0
Syncfusion 18.3.0.53
Android 10

Code Snippet to reproduce the issue:

void OnButtonClicked(object sender, EventArgs args)
{
WordDocument document = new WordDocument();
WSection section = document.AddSection() as WSection;
IWParagraph paragraph = section.AddParagraph();
WTextRange textRange = paragraph.AppendText("第5天,日期2020年12月9日") as WTextRange;
//textRange.CharacterFormat.FontName = "Microsoft YaHei"; //"Arial Unicode MS"; // Specifying FontName WORKS on UWP
document.FontSettings.SubstituteFont += FontSettings_SubstituteFont; // Font Substitution NOT WORK
DocIORenderer render = new DocIORenderer();
PdfDocument pdfDocument = render.ConvertToPDF(document);
document.FontSettings.SubstituteFont -= FontSettings_SubstituteFont;
render.Dispose();
document.Dispose();
MemoryStream outputStream = new MemoryStream();
pdfDocument.Save(outputStream);
pdfDocument.Close();
Xamarin.Forms.DependencyService.Get().SaveAndView("CharOverlapWithNumerals.pdf", "application/pdf", outputStream);
}

void FontSettings_SubstituteFont(object sender, SubstituteFontEventArgs args)
{
if (args.OriginalFontName == "Arial Unicode MS")
args.AlternateFontName = "Droid Sans Fallback"; //"Microsoft YaHei";
else
args.AlternateFontName = "Times New Roman";
}

Converting Doc to Pdf causes non-ASCII numeral/symbols to overlap with characters in the same paragraph

Syncfusion documentation provides detailed steps to generate doc in code and convert it to pdf using DocIORenderer. 
**It works perfectly when the doc contains only ASCII characters. However, when character-based language (e.g., Chinese, Japanese, etc.) is in the paragraph, the numbers (0~9) and symbols (e.g., _  /  ~, etc)  overlap with other characters in the same paragraph in the converted PDF.**
The doc file looks perfect. The bug happens when converting it to PDF.

Simple demo to reproduce the bug:

  1. Init a doc instance. WordDocument doc = new WordDocument();
  2. Add a section. WSection sec = doc.AddSection() as WSection;
  3. Create a paragraph. IWParagraph p = sec.HeadersFooters.Header.AddParagraph();
  4. Add the paragraph with some character-based language content and numerals/symbols. p = sec.AddParagraph(); p.AppendText("现在是第5天,日期2020年5月16日");
  5. Save doc to memory stream. MemoryStream stream = new MemoryStream();
    doc.Save(stream, FormatType.Docx);
  6. Convert doc to PDF. DocIORenderer render = new DocIORenderer();
    PdfDocument pdf = render.ConvertToPDF(doc);
    render.Dispose();
    doc.Dispose();
    MemoryStream pdfStream = new MemoryStream();
    pdf.Save(pdfStream);
    pdf.Close();
    DependencyService.Get().PrintStream(pdfStream, "Character-based_PDF_Convertion.pdf");

The overlapped output pdf snip image is as follows:
Annotation 2020-05-16 220112

[Bug] Button's click event in the DropDownFooter of SfComboBox not get called on UWP

Hi Syncfusion Team,
The click event of Button in a DropDownFooter of SfComboBox does not get fired (only on UWP). On Android it's ok.
The above issue reappeared in latest updates.

Tested Environment:
- Visual Studio 16.9.0 Preview5
- Xamarin 5.0.0.2012
- Syncfusion.Xamarin 18.4.0.44
- Windows 10 Build 21292

 Code snippet:
 `
 <!--MainPage.xaml-->
   <cb:SfComboBox DropDownFooterViewHeight="90">
        <cb:SfComboBox.ComboBoxSource>
            <ListCollection:List x:TypeArguments="x:String">
                <x:String>Item 1</x:String>
            </ListCollection:List>
        </cb:SfComboBox.ComboBoxSource>

        <cb:SfComboBox.DropDownFooterView>
            <Button Text="+ Add New" Clicked="AddNewClicked"/>
        </cb:SfComboBox.DropDownFooterView>
    </cb:SfComboBox>

// MainPage.xaml.cs
 private async void AddNewClicked(object sender, EventArgs e)
  {
      await DisplayAlert("Add New Clicked","","OK");
  }
 `

 Thanks in advance.
 Best Regards

How to show organization chart in vertical Layout.?

I am trying to use Org structure but the problem is if you have a number of nodes then is it is expanding horizontally. Can we show 5-6 nodes in one line? and rest node in the next line.

I have one more question. Can we bind data in XAML itself instead of code behind.?

STOP ADVERTISING ON VISUAL STUDIO

You are corrupt. You are exploiting the search system in the Visual Studio Extensions and Updates window to advertise these crap products.

Searching for "react", for example, in Visual Studio, gives you 3 pages full of these garbage, polluting the results on purpose.

image

CustomKanbanModel raises MethodAccessException from base class in the sample project

Adding an item to ObservableCollection of CustomKanbanModel will raise Exception:
System.MethodAccessException
HResult=0x80131510
Message=Attempt by method 'SampleBrowser.SfKanban.CustomKanbanModel.set_Rating(Single)' to access method 'Syncfusion.SfKanban.XForms.KanbanModel.RaisePropertyChanged(System.String)' failed.

CustomKanbanModel from the sample code is defined as follows:
public class CustomKanbanModel : KanbanModel
{
public float Rating { get; set; }
...
}

Anything wrong here? Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.