|
using System.Windows;
namespace MatrixLib.Layout
{
/// <summary>
/// Exposes two dependency properties which are bound to in
/// order to know when the visual children of a MatrixGrid are
/// given new values for the Grid.Row and Grid.Column properties.
/// </summary>
class MatrixGridChildMonitor : DependencyObject
{
#region GridRow
public int GridRow
{
get { return (int)GetValue(GridRowProperty); }
set { SetValue(GridRowProperty, value); }
}
public static readonly DependencyProperty GridRowProperty =
DependencyProperty.Register(
"GridRow",
typeof(int),
typeof(MatrixGridChildMonitor),
new UIPropertyMetadata(0));
#endregion // GridRow
#region GridColumn
public int GridColumn
{
get { return (int)GetValue(GridColumnProperty); }
set { SetValue(GridColumnProperty, value); }
}
public static readonly DependencyProperty GridColumnProperty =
DependencyProperty.Register(
"GridColumn",
typeof(int),
typeof(MatrixGridChildMonitor),
new UIPropertyMetadata(0));
#endregion // GridColumn
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.