/Main/src/DynamicDataDisplay/Common/Auxiliary/MarkupExtensions/SelfBinding.cs
# · C# · 23 lines · 21 code · 2 blank · 0 comment · 0 complexity · 9bf7f2c7e13de278a7d7920f5464b11f MD5 · raw file
- 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);
- }
- }
- }