Loading...
Loading...
Implement Syncfusion WPF ButtonAdv controls for configurable button UIs. Use this when adding, configuring, or customizing a Syncfusion WPF ButtonAdv — including labels, icons, size modes, toggle/checkable behavior, MVVM command binding, multiline text, corner radius, IsDefault/IsCancel modes, icon templates, and themes.
npx skill4agent add syncfusion/wpf-ui-components-skills syncfusion-wpf-buttonSyncfusion.Shared.WPFSyncfusion.Windows.Tools.Controlshttp://schemas.syncfusion.com/wpfLabelCornerRadiusIsDefaultIsCancelSizeModeSmallIconLargeIconIconWidthIconHeightIconTemplateIconTemplateSelectorIsMultiLineIsCheckableIsCheckedCheckedUncheckedClickCommandICommandCommandParameterCanExecuteRaiseCanExecuteChangedSfSkinManager<Window xmlns:syncfusion="http://schemas.syncfusion.com/wpf" ...>
<Grid>
<syncfusion:ButtonAdv Label="Log in"
SizeMode="Normal"
SmallIcon="Images/user.png"
Width="120" Height="36"/>
</Grid>
</Window>using Syncfusion.Windows.Tools.Controls;
ButtonAdv button = new ButtonAdv();
button.Label = "Log in";
button.SizeMode = SizeMode.Normal;
button.SmallIcon = new BitmapImage(new Uri("Images/user.png", UriKind.RelativeOrAbsolute));
Root.Children.Add(button);<syncfusion:ButtonAdv Label="Save"
SizeMode="Large"
LargeIcon="Images/save-large.png"
Width="68" Height="68"/><syncfusion:ButtonAdv Label="Bold"
SizeMode="Normal"
SmallIcon="Images/bold.png"
IsCheckable="True"
IsChecked="False"
Checked="OnBoldChecked"
Unchecked="OnBoldUnchecked"/><syncfusion:ButtonAdv Label="Submit"
SizeMode="Normal"
Command="{Binding SubmitCommand}"
CommandParameter="SubmitAction"/><syncfusion:ButtonAdv Label="User" SizeMode="Normal">
<syncfusion:ButtonAdv.IconTemplate>
<DataTemplate>
<Grid Width="16" Height="16">
<Path Data="M16,0 C19.6,0 22.5,2.9 22.5,6.5 ..."
Fill="#FF3A3A38" Stretch="Fill"/>
</Grid>
</DataTemplate>
</syncfusion:ButtonAdv.IconTemplate>
</syncfusion:ButtonAdv>| Property | Type | Description |
|---|---|---|
| string | Button text displayed to the user |
| SizeMode | Small (icon only), Normal (icon + label side), Large (icon + label below) |
| ImageSource | Icon for Small/Normal size modes |
| ImageSource | Icon for Large size mode |
| DataTemplate | Vector/font icon template (highest priority) |
| DataTemplateSelector | Dynamic icon switching |
| double | Custom icon width |
| double | Custom icon height |
| CornerRadius | Rounded corners (default: 3) |
| bool | Enables toggle button behavior |
| bool | Initial toggle state |
| bool | Multiline label (Large mode only) |
| bool | Activated by Enter key |
| bool | Activated by Escape key |
| ICommand | MVVM command binding |
| object | Data passed to command handler |
Icon priority order:→IconTemplateSelector→IconTemplate→LargeIconSmallIcon