// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
// All other rights reserved.
namespace System.Windows.Controls.Primitives{
public class DataGridFrozenGrid : Grid
{
public static readonly DependencyProperty IsFrozenProperty = DependencyProperty.RegisterAttached(
"IsFrozen",
typeof(Boolean),
typeof(DataGridFrozenGrid),
null);
public static void SetIsFrozen(DependencyObject element, bool value)
{
if (element == null)
{
throw new ArgumentNullException("element");
}
element.SetValue(IsFrozenProperty, value);
}
public static bool GetIsFrozen(DependencyObject element)
{
if (element == null)
{
throw new ArgumentNullException("element");
}
return (bool)element.GetValue(IsFrozenProperty);
}
}
}
|