Steven Kirk
d75af69307
Fix tests.
7 years ago
Steven Kirk
b91df127ea
Remove :valid and :invalid pseudoclasses.
`:valid` and `:invalid` pseudoclasses are being added to all `ContentControls` simply in order to show/hide the `ContentPresenter` in `CheckBox`. Instead of this, add some `ObjectConverters` and use them to set the visibility of the `ContentPresenter.`
Also renamed the converters in `StringConverters` to add an `Is` prefix as the `ObjectConverters` didn't look right as just `Null` and `NotNull`.
7 years ago
Nikita Tsukanov
591ecc4ded
[RENDER] Don't crash on Paint call when renderer is already disposed
7 years ago
Steven Kirk
2b6a65a199
Merge pull request #2067 from ahopper/fix-pointerleave-not-always-set
allow for control being removed from visual tree in :pointerover logic
7 years ago
Steven Kirk
bf81aaa7c7
Merge branch 'master' into fix-pointerleave-not-always-set
7 years ago
Steven Kirk
2451f3b30f
Merge pull request #2218 from AvaloniaUI/fixes/2191-tabcontrol-contentcontrolmixin
Register TabControl with ContentControlMixin.
7 years ago
Steven Kirk
3b9702bfae
Merge branch 'master' into fixes/2191-tabcontrol-contentcontrolmixin
7 years ago
Steven Kirk
9bd182d8c5
Merge pull request #2250 from AvaloniaUI/refactor/window-position
Refactored Window Positioning
7 years ago
Steven Kirk
b5fac96d70
Fixed whitespace nit.
7 years ago
Steven Kirk
cf504b4e08
Fix nonsensical comment.
7 years ago
Steven Kirk
abfe467784
Use Window.Owner as owner in Show.
We probably want to change this and pass the owner to the `Show` method as we do for dialogs: having owner specified in different places for dialogs vs non-dialogs is not a good API.
7 years ago
Steven Kirk
13aafcc540
Show dialog centered on owner.
7 years ago
Steven Kirk
10522a95a6
Fix PointToClient logic.
7 years ago
Steven Kirk
db44faf4ad
Make ShowDialog respect WindowStartupLocation.
`SetWindowStartupLocation` needs to be called _after_ the window is shown as is done in `Show`. In addition, the owner window needs to be passed so we can get the correct screen.
Renamed the `parent` parameter to `ShowDialog` to `owner` as its `WindowStartupLocation.CenterOwner` not `CenterParent`.
7 years ago
Steven Kirk
9a2f828ba6
Modify DialogsPage to allow testing of startup location.
7 years ago
Steven Kirk
4ec2b1c554
Use PixelPoint and PixelRect for device points/rects.
The affected members are:
- `IWindowBaseImpl.Position`
- `IWindowBaseImpl.PositionChanged`
- `ITopLevelImpl.PointToClient`
- `ITopLevelImpl.PointToScreen`
- `IMouseDevice.Position`
- `Screen.Bounds`
- `Screen.WorkingArea`
7 years ago
Steven Kirk
580a7adbe4
Added PixelPoint and PixelRect.
In addition to `PixelSize`.
7 years ago
Steven Kirk
009b9a1ae7
Make PixelSize accept a scaling factor for conversions.
For conversions between `PixelSize` and `Size` use a scaling factor by default; rename the DPI overloads to have a `WithDpi` suffix.
7 years ago
Jumar Macato
50a3877c42
Merge pull request #2248 from DmitryZhelnin/fix-numericupdown
Fix ValueChanged event of NumericUpDown
7 years ago
Dmitry Zhelnin
985a3e7f2e
fix ValueChanged event of NumericUpDown
7 years ago
Steven Kirk
ccf82d011a
Merge branch 'master' into fix-pointerleave-not-always-set
7 years ago
Steven Kirk
65234e8e43
Allow for null renderer.
This can happen in unit tests.
7 years ago
danwalmsley
0b3a3e1668
Merge pull request #2011 from kekekeks/x11
X11 backend
7 years ago
Nikita Tsukanov
fb783c98db
Reformat X11Atoms.cs
7 years ago
Nikita Tsukanov
e1f4a243d7
[SKIA] Don't crash the entire renderer if one of the text lines have 0 length
7 years ago
Nikita Tsukanov
ec6973e903
[X11] Fixed default cursor (KDE wasn't happy)
7 years ago
Nikita Tsukanov
f10373a1cc
[X11] Fixed clipboard
7 years ago
Nikita Tsukanov
9a1fde5a3d
Merge branch 'x11' of github.com:kekekeks/Perspex into x11
7 years ago
Nikita Tsukanov
ad018c604c
[RENDERER] Postpone layers and render target dispose until lock can be acquired
7 years ago
Nikita Tsukanov
55577cf2b5
[SKIA] Throw if asked to render to GL target with invalid dimensions
7 years ago
Nikita Tsukanov
a1256978dc
Wrap access to GrContext in locks
7 years ago
Nikita Tsukanov
fd149b80dc
Dispose disposables
7 years ago
Dan Walmsley
b6ac24095d
Merge remote-tracking branch 'origin/master' into x11
7 years ago
Steven Kirk
38a3db18cb
Added IRenderer.SceneInvalidated event.
And use this event to trigger an update of the mouse pointer-over state.
7 years ago
Steven Kirk
dee10d0482
Merge branch 'master' into fix-pointerleave-not-always-set
7 years ago
Steven Kirk
5e159b95ba
Merge pull request #2231 from AvaloniaUI/uri-type-provider-mono-fix
Fixes #2228
7 years ago
Steven Kirk
ff6d890f76
Merge branch 'master' into uri-type-provider-mono-fix
7 years ago
Nikita Tsukanov
7766d71f61
Use X11 backend for Linux by default
7 years ago
Nikita Tsukanov
22acc5147e
[X11] Changed event loop to avoid handling events too late
7 years ago
Dan Walmsley
025c973435
[RENDER] Don't crash if UpdateScene produced a null scene
7 years ago
Dan Walmsley
b33d8a3a8d
[X11] Various fixes
7 years ago
Nikita Tsukanov
2e305451f0
Properly set size hints
7 years ago
Nikita Tsukanov
dc67ec44dc
[X11] Fix motif masks and enforce noresize by setting min/max size
7 years ago
danwalmsley
fdd9a68bd1
Merge branch 'master' into x11
7 years ago
Nikita Tsukanov
0275907997
[X11] Handle Expose events using dispatcher with Render priority
7 years ago
Nikita Tsukanov
2104982ef0
[X11] Use XTranslateCoordinates for configure events with override_redirect and send_event being false
7 years ago
Nikita Tsukanov
db5d3aa854
[X11] Fixed maximize behavior for transient windows
7 years ago
Jeremy Koritzinsky
e201311a99
Merge pull request #2245 from AvaloniaUI/fixes/treeview-expanders
Fix selectors with classes in addition to name/type.
7 years ago
Dan Walmsley
359f15f7a1
fix text input
7 years ago
Nikita Tsukanov
6105b64b66
Pass CurrentTime to XUngrabPointer
7 years ago