55 changed files with 408 additions and 174 deletions
@ -1,11 +1,19 @@ |
|||||
namespace Perspex.Markup.Xaml.DataBinding |
// -----------------------------------------------------------------------
|
||||
|
// <copyright file="IPerspexPropertyBinder.cs" company="Steven Kirk">
|
||||
|
// Copyright 2015 MIT Licence. See licence.md for more information.
|
||||
|
// </copyright>
|
||||
|
// -----------------------------------------------------------------------
|
||||
|
|
||||
|
namespace Perspex.Markup.Xaml.DataBinding |
||||
{ |
{ |
||||
using System.Collections.Generic; |
using System.Collections.Generic; |
||||
|
|
||||
public interface IPerspexPropertyBinder |
public interface IPerspexPropertyBinder |
||||
{ |
{ |
||||
XamlBinding GetBinding(PerspexObject po, PerspexProperty pp); |
XamlBinding GetBinding(PerspexObject po, PerspexProperty pp); |
||||
|
|
||||
IEnumerable<XamlBinding> GetBindings(PerspexObject source); |
IEnumerable<XamlBinding> GetBindings(PerspexObject source); |
||||
|
|
||||
XamlBinding Create(XamlBindingDefinition xamlBinding); |
XamlBinding Create(XamlBindingDefinition xamlBinding); |
||||
} |
} |
||||
} |
} |
||||
@ -1,14 +1,21 @@ |
|||||
|
// -----------------------------------------------------------------------
|
||||
|
// <copyright file="TargetBindingEndpoint.cs" company="Steven Kirk">
|
||||
|
// Copyright 2015 MIT Licence. See licence.md for more information.
|
||||
|
// </copyright>
|
||||
|
// -----------------------------------------------------------------------
|
||||
|
|
||||
namespace Perspex.Markup.Xaml.DataBinding |
namespace Perspex.Markup.Xaml.DataBinding |
||||
{ |
{ |
||||
public class TargetBindingEndpoint |
public class TargetBindingEndpoint |
||||
{ |
{ |
||||
public PerspexObject Object { get; } |
public PerspexObject Object { get; } |
||||
|
|
||||
public PerspexProperty Property { get; } |
public PerspexProperty Property { get; } |
||||
|
|
||||
public TargetBindingEndpoint(PerspexObject obj, PerspexProperty property) |
public TargetBindingEndpoint(PerspexObject obj, PerspexProperty property) |
||||
{ |
{ |
||||
Object = obj; |
this.Object = obj; |
||||
Property = property; |
this.Property = property; |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
Loading…
Reference in new issue