Steven Kirk
e402eb8cdd
Make template bindings complete on Template change.
This fixes a leak - needs to be done in XAML as well though.
11 years ago
Steven Kirk
67835cc09b
Applied a bunch of resharper suggestions.
11 years ago
Steven Kirk
952e4a99f7
Created PerspexPropertyRegistry.
And move registration of properties, finding properties etc here.
11 years ago
Steven Kirk
e824458a00
Fix DataContext binding problem with SelectedItems.
This one has to be solved in SelectingItemsControl as the property is
not updated via a binding.
11 years ago
Steven Kirk
212426ee1a
Don't try to set direct properties to UnsetValue.
11 years ago
Steven Kirk
62b8c5a40c
Added default type converter for bindings.
To convert between basic types. Closes #256 . Closes #270 .
11 years ago
Nikita Tsukanov
d1c6b50911
Added VerifyAccess call to PerspexObject. We need to do something about Dispatcher and unit tests
11 years ago
Steven Kirk
a400a89003
Handle invalid values in direct property bindings.
Invalid values will be converted to default(TPropertyValue).
11 years ago
Steven Kirk
43a66901fc
Remove ExpressionValue.
Use PerspexProperty.UnsetValue instead.
11 years ago
Steven Kirk
c9d08fd691
Fix PerspexProperty.IsSet.
11 years ago
Steven Kirk
14ca308900
Log binding path.
11 years ago
Steven Kirk
0c837f87a8
Add demo of binding to array index.
Tried to add a button to shuffle ObservableCollection, but Command binding doesn't seem to work.
11 years ago
Steven Kirk
907505f194
Get simple two-way bindings working.
11 years ago
Steven Kirk
00613b2d67
Use correct Contract exception.
11 years ago
Steven Kirk
cbfbc52803
Use direct PPs for SelectedIndex/Items.
11 years ago
Steven Kirk
1268e612c6
Fix binding mode checks.
BindingMode.Default should be equivalent to BindingMode.OneWay.
11 years ago
Steven Kirk
133dd7aa80
Enable AddOwner for direct PerspexProperties.
11 years ago
Steven Kirk
637b980919
Moved BindingPriority to its own file.
11 years ago
Steven Kirk
247831a6c8
Implemented direct PersexProperties.
11 years ago
Steven Kirk
91dda4c2d0
Handle attached properties in PerspexPropertyConverter.
11 years ago
Steven Kirk
0c21bef168
Fix bug in error message.
'value' was getting overwritten with null.
11 years ago
Steven Kirk
7e2a28c91f
Initial implementation of PerspexPropertyConverter.
11 years ago
Nikita Tsukanov
3cd3579475
"field can be readonly"
11 years ago
Nikita Tsukanov
01e2c90bc5
Removed this.
11 years ago
Steven Kirk
145411020b
Ran .net core code formatter.
11 years ago
Steven Kirk
6151aef188
Removed file headers.
11 years ago
Nikita Tsukanov
7d416715fe
Register SyncContext in RegisterServices
11 years ago
Nikita Tsukanov
99af4bfdb3
Added SynchronizationContext support
11 years ago
Steven Kirk
6167bacf54
Moved to more standard filesystem layout.
Based on https://gist.github.com/davidfowl/ed7564297c61fe9ab814 and https://github.com/fsprojects/ProjectScaffold
11 years ago
Steven Kirk
e56b189124
Renamed Binding -> BindingDescriptor
And documented it.
11 years ago
Steven Kirk
217cbd1575
Latest added animation takes priority.
Previously BindingPriority.Animation was an even-numbered priority
level, meaning that the last fired binding would take precedence,
however this means that if two animations are active, they would fight.
Use the latest added instead.
11 years ago
Steven Kirk
eabf674027
Move more stuff from Control to IControl.
To do this, added the PropertyBag interfaces from ideas branch.
11 years ago
Steven Kirk
ee8c211683
Renamed PerpexProperty coercion as validation.
As it can be used to invalidate a property change by throwing an
exception as well as coerce the value.
11 years ago
Steven Kirk
254eaac9fa
Stylecop fixes.
11 years ago
Steven Kirk
26015acfd9
Handle implicit conversions in perspex properties.
Fixes #49 .
11 years ago
Steven Kirk
e125d7e10c
More stylecop fixes.
11 years ago
Steven Kirk
e83c2e06fd
Make sure bound property is registered.
11 years ago
Steven Kirk
2763e59adb
Use serilog for logging.
11 years ago
Steven Kirk
df77302d94
Another tweak to the binding system.
Binding levels with a an even number priority use the last fired binding
for the current value, those with odd number priorities use the latest
added.
11 years ago
Steven Kirk
8d7d04ffd3
Added diagnostic popup to devtools.
11 years ago
Steven Kirk
fe6e021cb5
Make PriorityValue internal.
Want to add computed/readonly values in the near future which will not
use PriorityValue.
11 years ago
Steven Kirk
aef34f810d
Stylecop fixes.
11 years ago
Steven Kirk
3479dc7b5a
Added missing doc comments.
11 years ago
Steven Kirk
2b661dc420
Set priority for one time bindings.
11 years ago
Steven Kirk
7859588621
Don't use StartWith in GetObservable
As it erases the Description.
11 years ago
Steven Kirk
cffe103acc
Added PerspexObservable.
Similar to Rx's AnonymousObservable that is created using
Observable.Create, but it also implements IDescription. This description
is populated when created by PerspexObject.GetObservable.
11 years ago
Steven Kirk
a4c88ca764
Reworked bindings.
Now, two way bindings work as expected and setting a local value on a
property with a binding sets the value temporarily until the binding
changes value.
11 years ago
Steven Kirk
274ff5cebf
Only return initial PP value once.
11 years ago
Steven Kirk
8218d18bc2
Make GetSetValues return PerspexPropertyValues.
11 years ago
Steven Kirk
fc4d5ce32a
Added simple property transition animation.
Animation's a bit choppy though!
12 years ago