Initial Commit
This commit is contained in:
23
Common/Auxiliary/MarkupExtensions/SelfBinding.cs
Normal file
23
Common/Auxiliary/MarkupExtensions/SelfBinding.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Data;
|
||||
using System.Windows;
|
||||
|
||||
namespace Microsoft.Research.DynamicDataDisplay.MarkupExtensions
|
||||
{
|
||||
public class SelfBinding : Binding
|
||||
{
|
||||
public SelfBinding()
|
||||
{
|
||||
RelativeSource = new RelativeSource { Mode = RelativeSourceMode.Self };
|
||||
}
|
||||
|
||||
public SelfBinding(string propertyPath)
|
||||
: this()
|
||||
{
|
||||
Path = new PropertyPath(propertyPath);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user