This section explains how to create a Effects View and configure it. The control can be configured entirely in C# code or by the XAML markup.
Step 1: Add the NuGet to the project as discussed in the above reference section.
Step 2: Add the namespace as shown in the following code sample.
XAML
xmlns:effectsView="clr-namespace:Syncfusion.Maui.Core;assembly=Syncfusion.Maui.Core"
C#
using Syncfusion.Maui.Core;
Step 3: Set the control to content in ContentPage.
XAML
<ContentPage.Content>
<effectsView:SfEffectsView />
</ContentPage.Content>
C#
namespace EffectsViewMauiSample
{
public partial class MainPage : ContentPage
{
SfEffectsView effectsView;
public MainPage()
{
InitializeComponent();
effectsView = new SfEffectsView();
this.Content = effectsView;
}
}
}
To run the demo, refer to System Requirements for .NET MAUI
If you are facing path too long exception when building this example project, close Visual Studio and rename the repository to short and build the project.
Syncfusion has no liability for any damage or consequence that may arise from using or viewing the samples. The samples are for demonstrative purposes. If you choose to use or access the samples, you agree to not hold Syncfusion liable, in any form, for any damage related to use, for accessing, or viewing the samples. By accessing, viewing, or seeing the samples, you acknowledge and agree Syncfusion's samples will not allow you 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 samples.