We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to customize the Context menu in SfSchedule?

Context Menu can easily be customized by overriding the default Context menu of the control. This article explains how you can customize the default menu that is used in SfSchedule.

Customizing the Popup menu in SfSchedule

Create a WPF application and add SfSchedule control in it.

XAML

You can display a popup containing Radial Menu with all the actions that the default menu of the Schedule has.

Using the Icon property of the RadialMenu, you can customize the icons displayed in the center of RadialMenu circle.

Refer to the following code example with customized SfRadialMenuItem.

XAML

The above popup is added in the application next to Schedule and its IsOpen property can be handled based on the Context Menu event of Schedule and OnPointerPressed events of the application.

Using ContextMenuOpening event of SfSchedule, you can avoid the opening of default menu selection by setting the Cancel property to True and your customized menu, that is, the RadialPopup can be displayed as the menu for Schedule.

The customized menu placement can be handled using the position values present in the argument of the event.

C#

Using the PreviewMouseLeftButtonUp event of the application, the RadialPopup is closed.

C#

Click Add under SfRadialMenuItem Popup. The addButton_Click event adds the appointments in Schedule.

C#

Click Edit under SfRadialMenuItem Popup. The editButton _Click event edits the appointments in Schedule.

C#

Click Delete under SfRadialMenuItem Popup. The deleteButton _Click event deletes the saved appointments in Schedule.

C#

Click Copy under SfRadialMenuItem Popup. The copyButton _Click event copies the selected appointment in Schedule.

C#

Click Paste under SfRadialMenuItem Popup. The pasteButton _Click event pastes the copied appointment in Schedule.

C#

Sample Location:

\AppData\Local\Syncfusion\EssentialStudio\12.3.0.36\WPF\SfSchedule.WPF\ SfSchedule\Samples\CustmizationDemo

Screenshot

Figure 1: Context Menu customization in Schedule

                                                       

Article ID: Published Date: Last Revised Date: Platform: Control:
2716 11/19/2014 11/19/2014 WPF SfSchedule
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.