Implementing .NET MAUI Button
A comprehensive skill for implementing and customizing the Syncfusion .NET MAUI Button (SfButton) control. The SfButton provides rich customization options including icons, background images, visual states, corner radius, and custom content support.
When to Use This Skill
Use this skill when you need to:
- Install and set up SfButton in a .NET MAUI project
- Create basic or customized buttons with text and icons
- Implement visual states (normal, hovered, pressed, checked, disabled)
- Add background images or custom content to buttons
- Handle button click events
- Create toggle/checkable buttons
- Apply RTL (right-to-left) support
- Customize button appearance (colors, fonts, borders, padding)
- Troubleshoot button-related issues
Component Overview
The Syncfusion .NET MAUI Button (SfButton) is a custom button control that extends the standard MAUI button with advanced UI customization capabilities:
Key Features:
- Flexible styling: Outline, flat, circle, or icon button types
- Rich content: Icons, background images, and custom views
- Visual states: Built-in support for hover, press, checked, and disabled states
- Accessibility: RTL support and keyboard navigation
- Easy integration: Simple XAML or C# implementation
Documentation and Navigation Guide
Getting Started
📄 Read: references/getting-started.md
When to read: Installation, initial setup, first-time implementation
- NuGet package installation (
Syncfusion.Maui.Toolkit)
- Handler registration in
MauiProgram.cs
- Basic button implementation in XAML and C#
- Adding button icons with
ImageSource and ShowIcon
- Setting background images with
BackgroundImageSource
- Minimal working examples
Customization and Styling
📄 Read: references/customization.md
When to read: Appearance customization, styling buttons, layout control
- Text customization (color, size, font, alignment)
- Background color and border styling
- Corner radius and padding adjustments
- Size control (width, height)
- Image width and positioning
- Alignment options (horizontal, vertical)
- Complete styling examples
Visual States
📄 Read: references/visual-states.md
When to read: State-based styling, hover effects, toggle buttons, interactive feedback
- Visual state overview (Normal, Hovered, Pressed, Checked, Disabled)
- Implementing VisualStateManager
- Creating checkable/toggle buttons with
IsCheckable
- Customizing appearance for each state
- State transition handling
- Complete state management examples
Advanced Features
📄 Read: references/advanced-features.md
When to read: RTL support, modern effects, custom content, events, migration
- Right-to-Left (RTL) language support
- Adding custom content views inside buttons
- Click event handling (
Clicked event)
- Advanced scenarios and combinations
- Migration from older versions
Troubleshooting
📄 Read: references/troubleshooting.md
When to read: Issues, errors, unexpected behavior, best practices
- Common problems and solutions
- Handler registration errors
- Image loading issues
- Layout and sizing problems
- Visual state not updating
- Platform-specific considerations
1---
2name: syncfusion-maui-toolkit-button
3description: Implements and customize Syncfusion .NET MAUI Button (SfButton) control. Use when working with MAUI buttons, SfButton implementation, button customization, or visual states. Covers button icons, background images, RTL support, custom button views, button styling, events, and checkable buttons.
4metadata:
5 author: "Syncfusion Inc"
6 version: "1.0.0"
7---
8
9# Implementing .NET MAUI Button
10
11A comprehensive skill for implementing and customizing the Syncfusion .NET MAUI Button (SfButton) control. The SfButton provides rich customization options including icons, background images, visual states, corner radius, and custom content support.
12
13## When to Use This Skill
14
15Use this skill when you need to:
16- Install and set up SfButton in a .NET MAUI project
17- Create basic or customized buttons with text and icons
18- Implement visual states (normal, hovered, pressed, checked, disabled)
19- Add background images or custom content to buttons
20- Handle button click events
21- Create toggle/checkable buttons
22- Apply RTL (right-to-left) support
23- Customize button appearance (colors, fonts, borders, padding)
24- Troubleshoot button-related issues
25
26## Component Overview
27
28The Syncfusion .NET MAUI Button (SfButton) is a custom button control that extends the standard MAUI button with advanced UI customization capabilities:
29
30**Key Features:**
31- **Flexible styling:** Outline, flat, circle, or icon button types
32- **Rich content:** Icons, background images, and custom views
33- **Visual states:** Built-in support for hover, press, checked, and disabled states
34- **Accessibility:** RTL support and keyboard navigation
35- **Easy integration:** Simple XAML or C# implementation
36
37## Documentation and Navigation Guide
38
39### Getting Started
40📄 **Read:** [references/getting-started.md](references/getting-started.md)
41
42When to read: Installation, initial setup, first-time implementation
43- NuGet package installation (`Syncfusion.Maui.Toolkit`)
44- Handler registration in `MauiProgram.cs`
45- Basic button implementation in XAML and C#
46- Adding button icons with `ImageSource` and `ShowIcon`
47- Setting background images with `BackgroundImageSource`
48- Minimal working examples
49
50### Customization and Styling
51📄 **Read:** [references/customization.md](references/customization.md)
52
53When to read: Appearance customization, styling buttons, layout control
54- Text customization (color, size, font, alignment)
55- Background color and border styling
56- Corner radius and padding adjustments
57- Size control (width, height)
58- Image width and positioning
59- Alignment options (horizontal, vertical)
60- Complete styling examples
61
62### Visual States
63📄 **Read:** [references/visual-states.md](references/visual-states.md)
64
65When to read: State-based styling, hover effects, toggle buttons, interactive feedback
66- Visual state overview (Normal, Hovered, Pressed, Checked, Disabled)
67- Implementing VisualStateManager
68- Creating checkable/toggle buttons with `IsCheckable`
69- Customizing appearance for each state
70- State transition handling
71- Complete state management examples
72
73### Advanced Features
74📄 **Read:** [references/advanced-features.md](references/advanced-features.md)
75
76When to read: RTL support, modern effects, custom content, events, migration
77- Right-to-Left (RTL) language support
78- Adding custom content views inside buttons
79- Click event handling (`Clicked` event)
80- Advanced scenarios and combinations
81- Migration from older versions
82
83### Troubleshooting
84📄 **Read:** [references/troubleshooting.md](references/troubleshooting.md)
85
86When to read: Issues, errors, unexpected behavior, best practices
87- Common problems and solutions
88- Handler registration errors
89- Image loading issues
90- Layout and sizing problems
91- Visual state not updating
92- Platform-specific considerations
93