Jeremy Koritzinsky
da5fd06fcd
Moved validation filtering into ExpressionObserver and out of InstancedBinding, PerspexObject, and the Priority* system. Renamed some methods in this system to be more descriptive.
10 years ago
Jeremy Koritzinsky
6714806dc0
Added a missing documentation comment.
10 years ago
Jeremy Koritzinsky
814b6ebac7
Removed now unused test.
10 years ago
Jeremy Koritzinsky
774c6e6fa4
Made validation enable-able during binding construction, similar to WPF. Now validation events are only raised when the validation type is enabled on the property.
10 years ago
Jeremy Koritzinsky
e399424911
Added missing documentation.
10 years ago
Jeremy Koritzinsky
6a8e5e2390
Fixed validation propogation on direct properties.
10 years ago
Jeremy Koritzinsky
ee486113e5
Finished wiring up validation support. Now exceptions and INotifyDataErrorInfo implementers will set controls into their ":invalid" pseudo-class state.
10 years ago
Jeremy Koritzinsky
76f5249f59
Created modular validation plugin system instead of being hard-coded to just INotifyDataErrorInfo. Current plugins are for Exception validation and INotifyDataErrorInfo. Currently not in use anywhere.
10 years ago
Jeremy Koritzinsky
59b88fe7e9
Added copyright header to some new files.
10 years ago
Jeremy Koritzinsky
f882e14e41
Added support for IPropertyAccessor's to listen for error notifications from a target that implements INotifyDataErrorInfo.
10 years ago
Steven Kirk
f7f4f6492c
Fix #500 .
When updating DataContext, defer changes to SelectedIndex/Items until
after DataContext has finished changing. Use the same method between
BeginInit and EndInit meaning that [DependsOn] is no longer needed.
10 years ago
Steven Kirk
8cccc84609
Added (failing) init test for SelectingItemsControl.
10 years ago
Steven Kirk
4c8384db5f
Failing unit test for issue #500 .
10 years ago
Steven Kirk
07f854eb9a
Fixed Shape.AffectsGeometry.
Make sure the object on which the property changed occurred is the
correct type. Previously, e.g. the `AffectsGeometry(BoundsProperty,
StrokeThicknessProperty)` call in `Rectangle` caused *all* shapes to be
invalidated when `Bounds` changed, where it should only affect
`Rectangle.
10 years ago
Steven Kirk
43be59a7f9
Added docs for DirectProperty.AddOwner.
10 years ago
Steven Kirk
2feca0b691
Bind to correct property.
10 years ago
Steven Kirk
4241fd8331
Binding ContentPresenter's DataContext.
To the owner control's Content property. In WPF this is done
automatically, but from looking on the internet it seems that causes
some confusion so do it explicitly.
Fixes #499 .
10 years ago
Steven Kirk
f6853de65c
Managed to make test fail.
10 years ago
Steven Kirk
37273c2bce
Forgot to save csproj.
Again.
10 years ago
Steven Kirk
c9df1415bb
Tried to reproduce #499 .
But can't...
10 years ago
Steven Kirk
a06e3ffd73
Fix ContentControlMixin.
Correctly track the current ContentControl child. Fixes a bug in
MenuItem where the first child MenuItem was not a logical child after
the template got applied.
10 years ago
Steven Kirk
23a3f81420
Coerce CarouselPresenter.SelectedIndex.
10 years ago
Steven Kirk
d4de5bb520
Close menu on non-client clicks.
10 years ago
Steven Kirk
2acd1f5494
Close Popup with !StaysOpen on non-client click.
10 years ago
Steven Kirk
47491612c1
Merge branch 'binding-changes'
10 years ago
Steven Kirk
ea47f225f4
Merge pull request #498 from donandren/canvassmallbug
canvas attached properties arrange improvement
10 years ago
donandren
4365e9b9c0
canvas attached properties arrange improvement
10 years ago
Steven Kirk
e7d29357ea
Merge pull request #496 from donandren/expander
expander properties made direct
10 years ago
Steven Kirk
df204ce01d
Fix TextBox template binding.
10 years ago
Steven Kirk
6a5208621e
Return BindingError from property plugins.
10 years ago
donandren
3613986bf2
expander properties made direct
10 years ago
Steven Kirk
3865198be4
Use Logger.Error instead of .Log.
10 years ago
Steven Kirk
58271ec6f2
Added BindingError.
Which can be passed in observables to log binding errors.
10 years ago
Steven Kirk
4f7e7cad1b
Make PriorityBindingEntry have ref to owner.
10 years ago
Steven Kirk
7b371f8d2d
Give PriorityLevel a reference to its PriorityValue.
And directly call the LevelValueChanged method on it rather than using callbacks.
10 years ago
Steven Kirk
c984a504a2
Change the way PriorityValue notifies.
Directly call a Changed method on the PriorityValue owner rather than using an observable.
10 years ago
Steven Kirk
a91d21d0a4
Make some TextBox/Block properties direct.
10 years ago
Steven Kirk
87fa632707
Removed LevelPrecedenceMode.
You should use direct properties if you want Latest mode.
10 years ago
Steven Kirk
9c12fe4462
Merge branch 'style-initialized'
10 years ago
Steven Kirk
1c3b1672b8
Added failing test.
StyleResources cannot currently be found in other style resources
because the style resource binding is evaluated before the style is
attached to the parent. Described in #492 .
10 years ago
Steven Kirk
a40f0be1d9
Make SolidColorBrush properly immutable.
Previous its color was immutable but because it inherited from Brush, its Opacity was mutable. This wasn't good, as it meant that e.g. Brushes.Red could be changed. Make it properly immutable by using the IBrush interface everywhere and not inheriting from Brush.
10 years ago
Steven Kirk
63790f750d
Merge remote-tracking branch 'refs/remotes/origin/master' into style-initialized
10 years ago
Steven Kirk
152b4000a8
Added Image to ControlCatalog.
10 years ago
Steven Kirk
85f1c3a5c7
Added Expander to ControlCatalog.
And fixed bug with CrossFade.
10 years ago
Steven Kirk
adf30e529d
Added RadioButton to ControlCatalog.
And added disabled style.
10 years ago
Steven Kirk
b43b5947b9
Make ControlCatalog SideBar scrollable.
10 years ago
Steven Kirk
594e8dc702
Display ScrollViewer.Background.
10 years ago
Steven Kirk
b63a5b3e7c
WIP
10 years ago
Steven Kirk
3bb9fe0b58
Added BindingError class.
10 years ago
Steven Kirk
70a6b6dcb8
Prevent controls appearing twice in logical tree.
10 years ago