Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions WindowsForms/Split-Button/Appearance-Customization.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
---
layout: post
title: Appearance Customization in Windows Forms Split Button | Syncfusion
description: Appearance customization supports visual styles, custom rendering, and personalized dropdown item styling for SplitButton.
Expand All @@ -11,7 +11,7 @@ documentation: ug

## Visual style

SplitButton supports visual style such as Office2016White,Office2016Black,Office2016DarkGray,Office2016Colorful,Default and Metro
WinForms Split Button supports visual style such as Office2016White,Office2016Black,Office2016DarkGray,Office2016Colorful,Default and Metro

This style can be set using Style property

Expand All @@ -31,9 +31,9 @@ Me.splitButton1.Style = Syncfusion.Windows.Forms.Tools.SplitButtonVisualStyle.Of

![splitbutton colorfultheme](Appearance-Customization_images/splitbutton-colorfultheme.png)

## Customization of SplitButton
## Customization of WinForms Split Button

You can customize appearance of the SplitButton using the ISplitButtonRenderer. This interface provides few methods to controlling painting borders, arrow and so on. To customize the appearance, create new custom renderer class and implement each of the members declared in ISplitButtonRenderer. And assign instance of your custom renderer to the Renderer property of SplitButton. By default, SplitButton will be painted using its default renderer.
You can customize appearance of the WinForms Split Button using the ISplitButtonRenderer. This interface provides few methods to controlling painting borders, arrow and so on. To customize the appearance, create new custom renderer class and implement each of the members declared in ISplitButtonRenderer. And assign instance of your custom renderer to the Renderer property of WinForms Split Button. By default, WinForms Split Button will be painted using its default renderer.

The following code illustrates how to implement the ISplitButtonRenderer interface:

Expand Down Expand Up @@ -198,9 +198,9 @@ End Class

![Appearance-Customization1](Appearance-Customization_images/Appearance-Customization_img1.png)

* Customizing the SplitButton DropDownItems appearance
* Customizing the WinForms Split Button DropDownItems appearance

You can customize the appearance of the SplitButton DropDown Items by using the DropDownRenderer. By using this property, you can customize the appearance of the DropDownItems.
You can customize the appearance of the WinForms Split Button DropDown Items by using the DropDownRenderer. By using this property, you can customize the appearance of the DropDownItems.

Refer the following code examples.

Expand Down
8 changes: 4 additions & 4 deletions WindowsForms/Split-Button/Button-Caption.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
---
layout: post
title: Button Caption in Windows Forms Split Button | Syncfusion
description: Button Caption support allows setting custom button text and updating captions based on selected dropdown items.
Expand All @@ -9,11 +9,11 @@ documentation: ug

# Button Caption in Windows Forms Split Button

This feature enables you to name your SplitButton as needed.
This feature enables you to name your WinForms Split Button as needed.

## Adding caption to the SplitButton
## Adding caption to the WinForms Split Button

You can add a button caption to the SplitButton or set the selected item as the caption.
You can add a button caption to the WinForms Split Button or set the selected item as the caption.

The following code illustrates how to add a caption for the button:

Expand Down
4 changes: 2 additions & 2 deletions WindowsForms/Split-Button/Button-Mode.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
---
layout: post
title: Button Mode in Windows Forms Split Button | Syncfusion
description: Button Mode supports normal and toggle behaviors, including configurable checked and unchecked button states.
Expand Down Expand Up @@ -51,7 +51,7 @@ Setting Button State for Toggle Mode
{% endhighlight %}
{% endtabs %}

You can set the button state using the _IsButtonChecked_ property. When this is set to true button will be in _Checked_ state. When this is set to false button will be in Unchecked state. This Property will active only When this SplitButton in Toggle Mode.
You can set the button state using the _IsButtonChecked_ property. When this is set to true button will be in _Checked_ state. When this is set to false button will be in Unchecked state. This Property will active only When this WinForms Split Button in Toggle Mode.

The following code illustrates how to set the button in checked state:

Expand Down
14 changes: 7 additions & 7 deletions WindowsForms/Split-Button/Getting-Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ documentation: ug

# Getting Started with Windows Forms SplitButton

This section briefly describes how to create a new Windows Forms project in Visual Studio and add **"SplitButton"** with it's basic functionalities.
This section briefly describes how to create a new Windows Forms project in Visual Studio and add **"WinForms Split Button"** with it's basic functionalities.

## Assembly deployment

Refer to the [control dependencies](https://help.syncfusion.com/windowsforms/control-dependencies#splitbutton) section to get the list of assemblies or NuGet package details which needs to be added as reference to use the control in any application.

[Check here](https://help.syncfusion.com/windowsforms/installation/install-nuget-packages) to find more details on how to install nuget packages in Windows Forms application.

## Adding a SplitButton control through designer
## Adding a WinForms Split Button control through designer

**Step 1**: Create a new Windows Forms application in Visual Studio. Drag and drop the SplitButton from toolbox into form design view. The following dependent assemblies will be added automatically.
**Step 1**: Create a new Windows Forms application in Visual Studio. Drag and drop the WinForms Split Button from toolbox into form design view. The following dependent assemblies will be added automatically.

* Syncfusion.Grid.Base
* Syncfusion.Grid.Windows
Expand All @@ -32,7 +32,7 @@ Refer to the [control dependencies](https://help.syncfusion.com/windowsforms/con

![WindowsForms Split Button dependency assembly reference](getting-started_images/windowsforms-split-button-dependecy-assembly-reference.png)

**Step 2**: Set the desired properties for **"SplitButton"** control using the **"Properties"** dialog window. Similarly you can add the items for the SplitButton dropdown using **"DropDownItem"** property. Here, we have illustrated a simple example, in which we are adding countries names as dropdown items to the control.
**Step 2**: Set the desired properties for **"WinForms Split Button"** control using the **"Properties"** dialog window. Similarly you can add the items for the WinForms Split Button dropdown using **"DropDownItem"** property. Here, we have illustrated a simple example, in which we are adding countries names as dropdown items to the control.

![WindowsForms Split Button properties pane](getting-started_images/windowsforms-split-button-properties-pane.png)

Expand All @@ -45,7 +45,7 @@ Refer to the [control dependencies](https://help.syncfusion.com/windowsforms/con
![WindowsForms Split Button through designer](getting-started_images/windowsforms-split-button-through-designer.png)


## Adding a SplitButton control through code
## Adding a WinForms Split Button control through code

**Step 1**: Create a new Windows Forms application in Visual Studio. Add the following required assembly references and namespace to the project.

Expand Down Expand Up @@ -78,7 +78,7 @@ Imports Syncfusion.Windows.Forms.Tools
![WindowsForms Split Button adding through code](getting-started_images/windowsforms-split-button-adding-through-code.png)


**Step 2**: In Form1.cs, create an instance of **"SplitButton"** control and add in to the form. Also you can customize the SplitButton properties using the following code.
**Step 2**: In Form1.cs, create an instance of **"WinForms Split Button"** control and add in to the form. Also you can customize the WinForms Split Button properties using the following code.

{% capture codesnippet2 %}
{% tabs %}
Expand Down Expand Up @@ -128,7 +128,7 @@ End Sub

### Adding and removing item to dropdown list

In SplitButton, we can add or remove items using **Add** and **Remove** methods of the **DropDownItems** **SplitButtonItemsCollection** property. The following code illustrates how to add and remove items in SplitButton.
In WinForms Split Button, we can add or remove items using **Add** and **Remove** methods of the **DropDownItems** **SplitButtonItemsCollection** property. The following code illustrates how to add and remove items in WinForms Split Button.

{% tabs %}

Expand Down
4 changes: 2 additions & 2 deletions WindowsForms/Split-Button/Overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ documentation: ug

# About Syncfusion® Windows Forms SplitButton Control

The **"SplitButton"** control is like a combination of control that behaves like a Button and dropdown menu which provide access to create a dropdown button-like interface. Using this control, you can perform different operations with dropdown items as like menu hierarchy.
The **"WinForms Split Button"** control is like a combination of control that behaves like a Button and dropdown menu which provide access to create a dropdown button-like interface. Using this control, you can perform different operations with dropdown items as like menu hierarchy.

![WindowsForms Split Button Overview](overview_images/windowsforms-split-button-overview.png)

## Features

**Button Mode** – Provides two types of mode: Normal and Toggle mode.

**DropDown Item** - Provides support to add new items SplitButton dropdown list.
**DropDown Item** - Provides support to add new items WinForms Split Button dropdown list.

**DropDown Position** - Provides support to change the dropdown list position.

Expand Down
Loading