private static void OnIsEnabledPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
		{
			var grid = dependencyObject as RadGridView;
			if (grid != null)
			{
				if ((bool)e.NewValue)
				{
					var menu = new GridViewClipboardContextMenu(grid);
					menu.Attach();
				}
			}
		}
Exemple #2
0
        private static void OnIsEnabledPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
        {
            var grid = dependencyObject as RadGridView;

            if (grid != null)
            {
                if ((bool)e.NewValue)
                {
                    var menu = new GridViewClipboardContextMenu(grid);
                    menu.Attach();
                }
            }
        }