Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Binding changes - to allow [] properties
- Loading branch information
Showing
25 changed files
with
653 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...ious/Cirrious.MvvmCross.Binding/Bindings/Source/Chained/MvxIndexerChainedSourceBinding.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// MvxIndexerChainedSourceBinding.cs | ||
// (c) Copyright Cirrious Ltd. http://www.cirrious.com | ||
// MvvmCross is licensed using Microsoft Public License (Ms-PL) | ||
// Contributions and inspirations noted in readme.md and license.txt | ||
// | ||
// Project Lead - Stuart Lodge, @slodge, me@slodge.com | ||
|
||
using System.Collections.Generic; | ||
using Cirrious.MvvmCross.Binding.Bindings.Source.Construction.PropertyTokens; | ||
|
||
namespace Cirrious.MvvmCross.Binding.Bindings.Source.Chained | ||
{ | ||
public class MvxIndexerChainedSourceBinding | ||
: MvxChainedSourceBinding | ||
{ | ||
private readonly MvxIndexerPropertyToken _indexerPropertyToken; | ||
|
||
public MvxIndexerChainedSourceBinding(object source, MvxIndexerPropertyToken indexerPropertyToken, | ||
IList<MvxBasePropertyToken> childTokens) | ||
: base(source, "Item", childTokens) | ||
{ | ||
_indexerPropertyToken = indexerPropertyToken; | ||
UpdateChildBinding(); | ||
} | ||
|
||
protected override object[] PropertyIndexParameters() | ||
{ | ||
return new[] {_indexerPropertyToken.Key}; | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
Cirrious/Cirrious.MvvmCross.Binding/Bindings/Source/Chained/MvxSimpleChainedSourceBinding.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// MvxSimpleChainedSourceBinding.cs | ||
// (c) Copyright Cirrious Ltd. http://www.cirrious.com | ||
// MvvmCross is licensed using Microsoft Public License (Ms-PL) | ||
// Contributions and inspirations noted in readme.md and license.txt | ||
// | ||
// Project Lead - Stuart Lodge, @slodge, me@slodge.com | ||
|
||
using System.Collections.Generic; | ||
using Cirrious.MvvmCross.Binding.Bindings.Source.Construction.PropertyTokens; | ||
|
||
namespace Cirrious.MvvmCross.Binding.Bindings.Source.Chained | ||
{ | ||
public class MvxSimpleChainedSourceBinding | ||
: MvxChainedSourceBinding | ||
{ | ||
private readonly MvxPropertyNamePropertyToken _propertyNamePropertyToken; | ||
|
||
public MvxSimpleChainedSourceBinding( | ||
object source, | ||
MvxPropertyNamePropertyToken propertyNamePropertyToken, | ||
IList<MvxBasePropertyToken> childTokens) | ||
: base(source, propertyNamePropertyToken.PropertyName, childTokens) | ||
{ | ||
_propertyNamePropertyToken = propertyNamePropertyToken; | ||
} | ||
|
||
protected override object[] PropertyIndexParameters() | ||
{ | ||
return null; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...us.MvvmCross.Binding/Bindings/Source/Construction/PropertyTokens/IMvxPropertyTokeniser.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// IMvxPropertyTokeniser.cs | ||
// (c) Copyright Cirrious Ltd. http://www.cirrious.com | ||
// MvvmCross is licensed using Microsoft Public License (Ms-PL) | ||
// Contributions and inspirations noted in readme.md and license.txt | ||
// | ||
// Project Lead - Stuart Lodge, @slodge, me@slodge.com | ||
|
||
using System.Collections.Generic; | ||
|
||
namespace Cirrious.MvvmCross.Binding.Bindings.Source.Construction.PropertyTokens | ||
{ | ||
public interface IMvxPropertyTokeniser | ||
{ | ||
IList<MvxBasePropertyToken> Tokenise(string toParse); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...ous.MvvmCross.Binding/Bindings/Source/Construction/PropertyTokens/MvxBasePropertyToken.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// MvxBasePropertyToken.cs | ||
// (c) Copyright Cirrious Ltd. http://www.cirrious.com | ||
// MvvmCross is licensed using Microsoft Public License (Ms-PL) | ||
// Contributions and inspirations noted in readme.md and license.txt | ||
// | ||
// Project Lead - Stuart Lodge, @slodge, me@slodge.com | ||
|
||
namespace Cirrious.MvvmCross.Binding.Bindings.Source.Construction.PropertyTokens | ||
{ | ||
public class MvxBasePropertyToken | ||
{ | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...us.MvvmCross.Binding/Bindings/Source/Construction/PropertyTokens/MvxEmptyPropertyToken.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// MvxEmptyPropertyToken.cs | ||
// (c) Copyright Cirrious Ltd. http://www.cirrious.com | ||
// MvvmCross is licensed using Microsoft Public License (Ms-PL) | ||
// Contributions and inspirations noted in readme.md and license.txt | ||
// | ||
// Project Lead - Stuart Lodge, @slodge, me@slodge.com | ||
|
||
namespace Cirrious.MvvmCross.Binding.Bindings.Source.Construction.PropertyTokens | ||
{ | ||
public class MvxEmptyPropertyToken : MvxBasePropertyToken | ||
{ | ||
} | ||
} |
Oops, something went wrong.