Exemplo n.º 1
0
 public TemplateBinding(PropertyPath path = default(PropertyPath), IValueConverter converter = null, object converterParameter = null)
     : base(path, converter, converterParameter)
 {
     RelativeSource = RelativeSource.TemplatedParent;
 }
Exemplo n.º 2
0
 public static void SetBinding(this FrameworkElement self, DependencyProperty property, string path, Windows.UI.Xaml.Data.IValueConverter converter)
 {
     self.SetBinding(property, new Windows.UI.Xaml.Data.Binding {
         Path = new PropertyPath(path), Converter = converter
     });
 }