Steven Kirk
cd37520b71
Trim invalid selection when Source first assigned.
`SelectionModel` can have a selection set before its `Source` is initialized. In this case, be sure to trim invalid selections from the model before continuing.
Fixes #3919
6 years ago
Dan Walmsley
957eef7dba
share linebouds helper with render demo. remove hacky test code.
6 years ago
Steven Kirk
07fd1731e7
Fix PixelRect snapping.
6 years ago
Steven Kirk
fc5c814cfa
Correctly snap dirty rects to device pixels.
6 years ago
Steven Kirk
cf155200a7
Don't inflate geometry by stroke width twice.
We're already passing the stroke width to `UpdatePathCache` which should include it in its calculations. Here we were applying the stroke width twice.
6 years ago
Nikita Tsukanov
39501e5b30
DnD support for OSX
6 years ago
Steven Kirk
9ef91f9e10
Fix notifications when removing parent item.
6 years ago
Steven Kirk
fcdac73e75
Fix select range logic.
Make sure the item we're selecting is within the requested range. Also refactored the unit tests to do a simple test on `SelectedIndices` instead of using `IsSelectedWithPartial` because both can't really be tested together using the old testing method.
6 years ago
Steven Kirk
2b5d7fb28d
Don't allow selection of non-expanded TreeViewItems.
And remove child selection when a `TreeViewItem` is un-expanded.
This is necessary because we don't get enough information about a materialized `TreeViewItem` to select it when materialized, so the `SelectionModel` and `TreeViewItem` selection state gets out of sync.
6 years ago
Steven Kirk
d5f0110ca6
Raise SelectionChanged when nested children change.
6 years ago
Steven Kirk
1c5d048543
Only do a node cleanup when all operations have finished.
Fixes #3918 .
6 years ago
Nikita Tsukanov
d9c5bbb106
Updates for master
6 years ago
Dan Walmsley
f270a1eafd
remove pen argument from DrawOperation and BrushDrawOperation
6 years ago
Nikita Tsukanov
d3cde7cc82
Removed duplicated code
6 years ago
Dan Walmsley
2943d5c83b
fix whitespace.
6 years ago
Dan Walmsley
41bf3f6919
remove unused code.
6 years ago
Dan Walmsley
c49e2c66be
whitespace
6 years ago
Nikita Tsukanov
75bb196b4f
Workaround for ItemsRepeater producing nonsensical values
6 years ago
Nikita Tsukanov
09382cf4df
Use SKBlurImageEffect instead of SKDropShadowImageEffect
6 years ago
Nikita Tsukanov
caa11a4cc7
Fixed shadow clip for non-rounded rects
6 years ago
Dan Walmsley
287352f92a
fix demo repro
6 years ago
Dan Walmsley
5eba04f06c
do all calculations in radians.
6 years ago
Steven Kirk
b1d34acdc6
Handle requesting children of unrealized containers.
6 years ago
Dan Walmsley
9ee748f35e
correct the terminology of the helper methods
6 years ago
Dan Walmsley
bf40f69a5a
inflate rectangle nodes to take into account the pen thickness.
6 years ago
Dan Walmsley
0808e2810e
move to static LineBoundsHelper class.
6 years ago
Dan Walmsley
b429f3e850
move calculate bounds to LineNode.
6 years ago
Dan Walmsley
1dc40aad68
dont inflate in draw operation
6 years ago
Nikita Tsukanov
c8615cbd99
OpenGL 4.0 fix
6 years ago
Nikita Tsukanov
118dcdbe66
X11
6 years ago
Nikita Tsukanov
861b417911
Moved non-mandatory gl functions to a demo-specific gl interface
6 years ago
Nikita Tsukanov
ce018324a0
Support for conditional gl imports
6 years ago
Steven Kirk
af12a3e9cc
Replace use of InitialDirectory in file dialogs.
6 years ago
Steven Kirk
be316e9aaf
Disable warnings when implementing deprecated API members.
6 years ago
Steven Kirk
b79b225e33
Improve deprecation messages.
6 years ago
Steven Kirk
bc079008d1
Remove usage of deprecated input APIs.
6 years ago
Steven Kirk
c9a385bd5a
Allow SelectionNode children to change.
Make `SelectionModelChildrenRequestedEventArgs.Children` an observable, so that the we can react to the children collection object changing, as well as the children inside the collection changing.
Upstream issue: https://github.com/microsoft/microsoft-ui-xaml/issues/2404
6 years ago
Dan Walmsley
811c7c6d65
check either bound of the image.
6 years ago
Dan Walmsley
8fa983d5bc
image class will not make invalid render calls if its size is 0 causing divide by zero and passing .NaN to drawing context.
6 years ago
Dan Walmsley
6853969be9
set dialog title
6 years ago
Dan Walmsley
e91238965a
100mb default gpu resource graphics memory
6 years ago
Dan Walmsley
4033dff3da
add default argument.
6 years ago
Dan Walmsley
33dca75d4f
Allow user to set GPU VMem limit.
6 years ago
Nikita Tsukanov
20754f9291
[X11] Remove BorderOnly support for now since it doesn't work anyway
6 years ago
Dan Walmsley
0cae901e2e
move const declaration
6 years ago
Dan Walmsley
0608ad6008
prevent restoring window styles from overwriting windowstates.
6 years ago
Dan Walmsley
4d6166e3cc
make class internal.
6 years ago
Dan Walmsley
0e12f98419
move TaskbarList interop into UnmanagedMethods and a wrapper class.
6 years ago
Dan Walmsley
172de036be
fix glitch with window decorations transitioning from fullscreen to maximized.
6 years ago
Dan Walmsley
1c4a56a406
ensure style is always up to date before entering fs.
6 years ago