Граф коммитов

10 Коммитов

Автор SHA1 Сообщение Дата
Stephane Delcroix a9a68c6e60 [C] fix TargetNullValue Bindings (#3468)
Due to a flux in the matrix, Bindings with a TargetNullValue assigned
were always returning that value. It had the advantage of being right
sometimes, but the inconvenient for being wrong, most of the times.

By properly aligning the bits of the register with the sun at beer time,
we can avoid that side effect, and actually returns a value when the
binding is succesful, and the TargetNullValue whem the Binding returns
null.

- fixes #3467
2018-08-02 16:56:19 -07:00
Stephane Delcroix 11b1496db5 [Binding] FallbackValue and TargetNullValue (#2742) fixes #1803
- fixes #1803
2018-06-07 13:17:04 -07:00
Stephane Delcroix f9b0b4ee29
[C/XamlC] BindingMode.OneTime (#1805)
* [C/XamlC] BindingMode.OneTime

Bindings with mode == OneTime:
 - are only applied when the BindingContext changes
 - do not subscribe to INPC

if the Binding is compiled and the mode explicitely set in the
`{Binding}` Markup extension, the setters and handlers aren't even
created.

 - fixes #1686

* update docs
2018-02-07 09:43:15 +01:00
Stephane Delcroix 2a177eca47
[C] bind to ValueTuples (#1317)
* [C] bind to ValueTuples

* [C] allow indexing on ValueTuples
2017-12-11 22:32:46 +01:00
Stephane Delcroix 0714a189e5
[C] do not reapply a Binding with a Source when the Context changes (#983)
* [C] do not reapply a Binding with a Source when the Context changes

* apply the same to typedBindings

* [C] Use a flag to Apply()

* [C] Remove 2 other unnecessary Binding refreshs
2017-11-21 13:59:41 +01:00
Stephane Delcroix c0e89187bb [Test] Make sure we always test with different Cultures (#1219)
also get rid of the 'Turkey' build configuration
2017-10-24 10:41:33 +02:00
kingces95 e6d5186c8a Remove InternalsVisibleTo from Core to XF.Platforms.* (#782)
* Remove InternalsVisibleTo from Core to XF.Platforms.*

* Changes per Jason's code review

* Move LockableObservableListWrapper to internals namespace

* Changes per Stephane's code review

* update docs

* Touch code to get CI to run tests

* Rebase; Update documentation
2017-03-07 14:56:24 -05:00
Stephane Delcroix a6bbed029c [XamlC] TypedBindings, some tests, a compiler, ... (#489) 2016-11-15 11:39:48 -08:00
Jonathan Peppers f6febd4c81 Fix for BindingExpression memory leak (#279)
* Unit test proving a memory leak with Binding

What we were seeing in our app was that Binding objects stay around when
bound to long-lived ViewModels, even when the View is long gone

* BindingExpression - INotifyPropertyChanged should use WeakReference

I had to make a WeakPropertyChangedProxy class for this, I could not
think of a way to get around creating a new object for this
2016-08-16 11:19:21 -07:00
Jason Smith 17fdde66d9 Initial import 2016-03-22 16:13:41 -07:00