Skip to content
Merged
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
4 changes: 2 additions & 2 deletions WindowsForms/Popup/Getting-Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ The PopupControlContainer control can be added through designer by following the

![Adding rich text box control to the PopupControlContainer](GettingStarted_Images/PopupControl4.png)

4. Associate the [RichTextBox](https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.richtextbox?view=netframework-4.7.2) instance in the Properties panel of PopupControlContainer under the [ParentControl](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PopupControlContainer.html#Syncfusion_Windows_Forms_PopupControlContainer_ParentControl).
4. Associate the [RichTextBox](https://learn.microsoft.com/en-us/dotnet/api/system.windows.controls.richtextbox?view=netframework-4.7.2) instance in the Properties panel of PopupControlContainer under the [ParentControl](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PopupControlContainer.html#Syncfusion_Windows_Forms_PopupControlContainer_ParentControl).

![Selecting properties of PopupControlContainer](GettingStarted_Images/PopupControl5.png)

![Setting rich text box control as parent of PopupControlContainer](GettingStarted_Images/PopupControl6.png)

5. Handle the [Click event](https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.control.click?view=netframework-4.7.2) of RichTextBox and call [ShowPopup](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PopupControlContainer.html#Syncfusion_Windows_Forms_PopupControlContainer_ShowPopup_System_Drawing_Point_) method of PopupControlContainer to display the pop-up at a desired location. The appropriate code to do this is given in the following section.
5. Handle the [Click event](https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.control.click?view=netframework-4.7.2) of RichTextBox and call [ShowPopup](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PopupControlContainer.html#Syncfusion_Windows_Forms_PopupControlContainer_ShowPopup_System_Drawing_Point_) method of PopupControlContainer to display the pop-up at a desired location. The appropriate code to do this is given in the following section.

## Add control manually in code

Expand Down
2 changes: 1 addition & 1 deletion WindowsForms/Popup/Hosting-ComboBoxBase-Control.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ End Class
{% endhighlight %}
{% endtabs %}

It is also necessary to specify the parent-child relationship between the ComboBoxBase’s pop-up and the PopupControlContainer. This can be done by handling the ComboBoxBase’s [`DropDown`](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.ComboDropDown.html) event as shown in the code sample below.
It is also necessary to specify the parent-child relationship between the ComboBoxBase’s pop-up and the PopupControlContainer. This can be done by handling the ComboBoxBase’s [`DropDown`](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.ComboDropDown.html#Syncfusion_Windows_Forms_Tools_ComboDropDown_DropDown) event as shown in the code sample below.

{% tabs %}
{% highlight C# %}
Expand Down
4 changes: 2 additions & 2 deletions WindowsForms/Popup/How-to-Get-Around-this-Behavior.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ documentation: ug

# How to Get Around this Behavior in Windows Forms PopupControlContainer

In order to work around this behavior, you can set a Boolean flag and cancel the [`BeforeCloseUp`](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PopupControlContainer.html) event as shown below.
In order to work around this behavior, you can set a Boolean flag and cancel the [`BeforeCloseUp`](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PopupControlContainer.html#Syncfusion_Windows_Forms_PopupControlContainer_BeforeCloseUp) event as shown below.

{% tabs %}
{% highlight c# %}
Expand Down Expand Up @@ -59,4 +59,4 @@ End Sub
{% endtabs %}


You can set the Boolean value to be `false` under the Form’s [`Click`](https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.control.click?view=netframework-4.7.2) event and Control’s [`LostFocus`](https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.control.lostfocus?view=netframework-4.7.2) event so that the DropDown closes for rest of the cases.
You can set the Boolean value to be `false` under the Form’s [`Click`](https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.control.click?view=netframework-4.7.2) event and Control’s [`LostFocus`](https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.control.lostfocus?view=netframework-4.7.2) event so that the DropDown closes for rest of the cases.
2 changes: 1 addition & 1 deletion WindowsForms/Popup/Keyboard-Navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ documentation: ug

# Keyboard Navigation in Windows Forms Popup (PopupControlContainer)

When the popup is visible, the PopupControlContainer will look for Alt, Enter, Tab, Esc, F4, and F2 keys to close the popup. If user want to change this, set [IgnoreDialogKey](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PopupControlContainer.html#Syncfusion_Windows_Forms_PopupControlContainer_IgnoreDialogKey) property to `true` and should make sure to close the popup manually by using [HidePopup](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PopupControlContainer.html#Syncfusion_Windows_Forms_PopupControlContainer_HidePopup_Syncfusion_Windows_Forms_PopupCloseType_) method.
When the popup is visible, the PopupControlContainer will look for Alt, Enter, Tab, Esc, F4, and F2 keys to close the popup. If user want to change this, set [IgnoreDialogKey](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PopupControlContainer.html#Syncfusion_Windows_Forms_PopupControlContainer_IgnoreDialogKey) property to `true` and should make sure to close the popup manually by using [HidePopup](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PopupControlContainer.html#Syncfusion_Windows_Forms_PopupControlContainer_HidePopup) method.

>**NOTE** :
By default, the [IgnoreDialogKey](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.PopupControlContainer.html#Syncfusion_Windows_Forms_PopupControlContainer_IgnoreDialogKey) property is set as `false`.
Expand Down
2 changes: 1 addition & 1 deletion WindowsForms/Popup/RTL.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ documentation: ug

# RTL in Windows Forms Popup (PopupControlContainer)

RTL is used to display the content from right to left by setting the [RightToLeft](https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.control.righttoleft?redirectedfrom=MSDN&view=netframework-4.7.2#System_Windows_Forms_Control_RightToLeft) property to `Yes`.
RTL is used to display the content from right to left by setting the [RightToLeft](https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.control.righttoleft?redirectedfrom=MSDN&view=netframework-4.7.2#System_Windows_Forms_Control_RightToLeft) property to `Yes`.

The following code sample explains how to display the control from right-to-left.

Expand Down
2 changes: 1 addition & 1 deletion WindowsForms/PopupMenu/Checked-or-unchecked-bar-items.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ documentation: ug

# Checked/unchecked bar items in Windows Forms PopupMenu

This support will help users to easily acknowledge the selected bar item by using the check mark. The [`Checked`](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.html#Syncfusion_Windows_Forms_Tools_XPMenus_BarItem_Checked) property indicates whether a check mark should appear before the text of the bar item. On runtime, user can toggle the state manually through the [`Click`](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.html) event of the bar item.
This support will help users to easily acknowledge the selected bar item by using the check mark. The [`Checked`](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.html#Syncfusion_Windows_Forms_Tools_XPMenus_BarItem_Checked) property indicates whether a check mark should appear before the text of the bar item. On runtime, user can toggle the state manually through the [`Click`](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.html#Syncfusion_Windows_Forms_Tools_XPMenus_BarItem_Click) event of the bar item.

>**NOTE**
In this illustration we have used **ParentBarItem**. Similarly, we have to set for BarItem, DropDownBarItem,ComboBoxBarItem, ListBarItem, StaticBarItem and TextBoxBarItem.
Expand Down
8 changes: 4 additions & 4 deletions WindowsForms/PopupMenu/Events.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ The PopupMenu control supports the following events,

## BeforePopup

The [`BeforePopup`](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.XPMenus.PopupMenu.html) event helps to provide the mouse position of the context menu. It gets fired before the popup menu is shown in display.
The [`BeforePopup`](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.XPMenus.PopupMenu.html#Syncfusion_Windows_Forms_Tools_XPMenus_PopupMenu_BeforePopup) event helps to provide the mouse position of the context menu. It gets fired before the popup menu is shown in display.

## Collapse

The [`Collapse`](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.XPMenus.PopupMenu.html) event will be invoked when popup menu is closed.
The [`Collapse`](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.XPMenus.PopupMenu.html#Syncfusion_Windows_Forms_Tools_XPMenus_PopupMenu_Collapse) event will be invoked when popup menu is closed.

## ParentBarItemChanged

The [`ParentBarItemChanged`](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.XPMenus.PopupMenu.html) event will be invoked whenever the ParentBarItem properties like Text, Image, Font gets changed.
The [`ParentBarItemChanged`](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.XPMenus.PopupMenu.html#Syncfusion_Windows_Forms_Tools_XPMenus_PopupMenu_ParentBarItemChanged) event will be invoked whenever the ParentBarItem properties like Text, Image, Font gets changed.

## Popup

The [`Popup`](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.XPMenus.PopupMenu.html) event will be invoked after menu is displayed.
The [`Popup`](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.XPMenus.PopupMenu.html#Syncfusion_Windows_Forms_Tools_XPMenus_PopupMenu_Popup) event will be invoked after menu is displayed.



Expand Down
2 changes: 1 addition & 1 deletion WindowsForms/PopupMenu/Touch-and-Keyboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Touch mode is used to access the control easily in touch devices. By default, to
The bar items can be selected through keyboard operation by specifying the shortcuts via the [`Shortcut`](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.html#Syncfusion_Windows_Forms_Tools_XPMenus_BarItem__ctor_System_String_System_EventHandler_System_Windows_Forms_Shortcut_) property of the bar item.

>**NOTE**
1. By using this keyboard shortcuts we can access the bar items through [`Click`](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.html) event.
1. By using this keyboard shortcuts we can access the bar items through [`Click`](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.html#Syncfusion_Windows_Forms_Tools_XPMenus_BarItem_Click) event.
2. In this illustration, we have used **BarItem**. Similarly, we have set the shortcuts for ParentBarItem, DropDownBarItem, ComboBoxBarItem, ListBarItem, StaticBarItem and TextBoxBarItem.


Expand Down
4 changes: 2 additions & 2 deletions WindowsForms/PopupMenu/Trigger-Bar-Item.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ documentation: ug

# Trigger Bar Item in Windows Forms PopupMenu

On selection, the bar items functionality is handled through the [`Click`](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.html) event for further operations/manipulations.
On selection, the bar items functionality is handled through the [`Click`](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.html#Syncfusion_Windows_Forms_Tools_XPMenus_BarItem_Click) event for further operations/manipulations.

> **NOTE**
> Bar items can also be operated through keyboard shortcuts which will be discussed in the upcoming section. Doing so, the [`Click`](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.html) event will be invoked when pressing the shortcut keys.
> Bar items can also be operated through keyboard shortcuts which will be discussed in the upcoming section. Doing so, the [`Click`](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.XPMenus.BarItem.html#Syncfusion_Windows_Forms_Tools_XPMenus_BarItem_Click) event will be invoked when pressing the shortcut keys.


The below code snippet shows how to append click event for bar items through code behind.
Expand Down