Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Windows.Data;
|
---|
6 | using System.Windows;
|
---|
7 |
|
---|
8 | namespace Microsoft.Research.DynamicDataDisplay.MarkupExtensions
|
---|
9 | {
|
---|
10 | public class SelfBinding : Binding
|
---|
11 | {
|
---|
12 | public SelfBinding()
|
---|
13 | {
|
---|
14 | RelativeSource = new RelativeSource { Mode = RelativeSourceMode.Self };
|
---|
15 | }
|
---|
16 |
|
---|
17 | public SelfBinding(string propertyPath)
|
---|
18 | : this()
|
---|
19 | {
|
---|
20 | Path = new PropertyPath(propertyPath);
|
---|
21 | }
|
---|
22 | }
|
---|
23 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.