Steven Kirk
5cc5b91930
Fix xunit warnings.
9 years ago
Steven Kirk
ebc66cfaac
Added failing test for #1255 .
9 years ago
José Pedro
755531631e
Implemented three states on ToggleButton, CheckBox and RadioButton.
9 years ago
Steven Kirk
2bd26bd9b8
Added failing test for #1245 .
9 years ago
sdoroff
bd17aeffe2
Adds Unit Tests for the Calendar Control
9 years ago
Steven Kirk
181dd53e58
Notify DataContextChanged down tree.
When a data context changes, it should be notified to all descendant controls who inherit the data context. This allows the `SelectingItemsControl` to defer setting the selected item until the `DataContext` has changed for the whole tree.
Renamed `OnDataContextChanging`/`OnDataContextChanged` to `OnDataContextBeginUpdate`/`OnDataContextEndUpdate` because `DataContextChanged` is now called from the property changed notification.
Fixes #507 .
9 years ago
Steven Kirk
d6b6a0fa96
Refactored InstancedBinding creation.
Previously it wasn't clear which constructor on `InstancedBinding` must be called for a particular binding mode. Refactored the constructors:
- We now have a single public ctor which takes an `ISubject`, as a subject can be used for all binding modes.
- Instanced bindings with other sources such as single values and `IObservables` are now constructed via static methods which only allow the correct sources for that binding mode
9 years ago
Steven Kirk
268587c432
Fix DropDown popup opening.
When the `DropDown` control is clicked, toggle the opening of the popup.
Fixes #1169 .
9 years ago
Steven Kirk
815d3f719e
Report correct root in logical tree attach/detach.
Fixes #1192 .
9 years ago
José Pedro
cc7098583e
Fixed Assert.Null warnings.
9 years ago
Dan Walmsley
18e556a1b1
correct stack panel unit tests.
9 years ago
Nikita Tsukanov
3d3d4528f6
Burn, baby, BURN!
9 years ago
Eli Arbel
aa45cccec4
Fix slider
9 years ago
Nikita Tsukanov
913149d093
Switched to .NET Standard 2.0
9 years ago
Eli Arbel
aee42bad6c
Add scroll bar & slider buttons
9 years ago
Steven Kirk
e54f48b63c
React to application resources changing.
9 years ago
Steven Kirk
0e155bd2d4
Make dynamic resources work in more situations.
Fixes #492 in a fashion: `DynamicResource` now works for this scenario.
9 years ago
Steven Kirk
2a61bbcb64
Detect resources added in new styles.
9 years ago
Steven Kirk
4a9302b61e
More work on static resources.
Also found a scenario that Portable.Xaml can't seem to handle...
9 years ago
Steven Kirk
bf2d403f14
Fix faulty resource lookup.
9 years ago
Steven Kirk
22bda08a90
Lazily initialize DataTemplates.
Added an `IDataTemplateHost` interface with a `IsDataTemplatesInitialized` property to prevent the need for allocating empty `DataTemplates` collections for many controls.
9 years ago
Steven Kirk
090a1ec8cf
Lazily initialize Styles.
Added an `IStyleHost.IsStylesInitialized` property to prevent the need for allocating empty `Styles` collections for many controls.
9 years ago
Steven Kirk
84aa27162f
Made a start adding Control/Application.Resources.
9 years ago
Steven Kirk
474aa60403
Don't remove pseudoclasses when clearing Classes.
Fixes #1080
9 years ago
Steven Kirk
d2eca3968b
Removed IRendererFactory.
Make the `ITopLevelImpl` create the renderer instead.
9 years ago
Steven Kirk
c4aa2197b2
Fixed TreeView navigation.
Fixes #277 .
9 years ago
Steven Kirk
bb11b302b8
Added failing unit test for #277 .
9 years ago
Steven Kirk
a232b137b5
Allow reuse of existing tooltip popup.
To do this, had to fix a problem where templated children weren't notified of being re-attached to a logical tree.
9 years ago
Steven Kirk
0d492ca16a
Update ContentPresenter when ContentTemplate changed.
9 years ago
Steven Kirk
1150af791c
Reworked how ContentPresenter child is updated.
Update immediately when attached to a logical tree. Also separate tests for different scenarios.
9 years ago
Steven Kirk
daf59b8497
Start/stop the renderer on window show/hide.
9 years ago
Wiesław Šoltés
872575b9b7
Set project OutputType
9 years ago
Steven Kirk
4730ee1c41
Fix spelling of descendant.
While "descendent" is an acceptable English spelling, "descendant" is the common spelling.
9 years ago
Steven Kirk
5a819c1c87
Make Window.OpenWindows readonly
And hack around the fact that it's static in unit tests.
9 years ago
Steven Kirk
a7ff93450e
Fixed problems with Windows.OpenWindows.
- Showing a window was causing it to be added to the collection twice because `Show()` called `IsVisible = true` which called `Show()`
- The window wasn't getting removed when the `PlatformImpl` signalled it was closed
9 years ago
Steven Kirk
153a4532ae
Added failing test for #886 .
9 years ago
Steven Kirk
5f845632ce
Undo bad merge of csproj.
Not sure how these changes got made.
10 years ago
Jeremy Koritzinsky
aacb052253
Made changes requested by @grokys .
10 years ago
Steven Kirk
69a06e452e
Fixed some Visuals unit tests.
Ported some stuff from `scenegraph` that was missed in #956 , which fixes
some of the failing Avalonia.Visuals.UnitTests.
10 years ago
Steven Kirk
e9968a7606
Make WindowBase.IsVisible show/hide window.
10 years ago
Steven Kirk
4e719262c4
Make WindowBase.IsVisible return correct value.
`WindowBase.IsVisible` now tracks the visibility of the window. Still
needs to call `Show` and `Hide` when changed.
10 years ago
Wiesław Šoltés
ad65b6192e
Moved inports to test projects
10 years ago
Wiesław Šoltés
f8097cc27d
Added msbuild props for package references
10 years ago
Wiesław Šoltés
6d557f7819
Already included in coretests.props
10 years ago
Steven Kirk
d7703d619c
Fixed failing test.
And removed `TestServices.WindowImpl` as it was being ignored.
10 years ago
Steven Kirk
65dd1a423b
Use the default compile items in unit tests.
For the tests that have been ported to .net core at least.
10 years ago
Nikita Tsukanov
6cf037ad7c
One liners
10 years ago
Nikita Tsukanov
66ac05b2c2
Removed <Name> elements from new projects
10 years ago
Nikita Tsukanov
d1caaaca3e
Removed <Project>
10 years ago
Nikita Tsukanov
886a65beaa
Use dotnet test for layout and controls tests
10 years ago