Mini Kabibi Habibi

Current Path : C:/Users/Public/Documents/DXperience 13.1 Demos/Silverlight/CS/BarsDemo/Modules/
Upload File :
Current File : C:/Users/Public/Documents/DXperience 13.1 Demos/Silverlight/CS/BarsDemo/Modules/ContextMenu.xaml.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using DevExpress.Xpf.Bars;
using DevExpress.XtraRichEdit;

using System.Collections;
using System.Windows.Markup;
using DevExpress.Xpf.Core;
using DevExpress.Xpf.Utils;

namespace BarsDemo {
    public partial class ContextMenu: BarsDemoModule {
        public ContextMenu() {
            InitializeComponent();
            edit.Text = "Right click here to show the context menu";
        }

        protected virtual void bCut_ItemClick(object sender, ItemClickEventArgs e) {
            edit.Cut();
        }
        protected virtual void bCopy_ItemClick(object sender, ItemClickEventArgs e) {
            edit.Copy();
        }
        protected virtual void bPaste_ItemClick(object sender, ItemClickEventArgs e) {
            edit.Paste();
        }
        protected virtual void bClear_ItemClick(object sender, ItemClickEventArgs e) {
            edit.Clear();
        }
        protected virtual void bSelectAll_ItemClick(object sender, ItemClickEventArgs e) {
            edit.SelectAll();
        }
    }
}