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

            if (grid != null)
            {
                var clipboardBehavior = new GridViewClipboardCustomBehavior_SL(grid);
                if ((bool)e.NewValue)
                {
                    clipboardBehavior.Attach();
                }
                else
                {
                    clipboardBehavior.Detach();
                }
            }
        }