Benedikt Schroeder
4e4c49b1e3
fix comments
8 years ago
Benedikt Schroeder
eb273c0fcb
Inital
8 years ago
achal7
a38fe5c915
Seprated InvalidateMeasure out from InvalidateFormattedText.
Whoever needs both the feature, calls then explicitly.
In this way TextPresenter's subscriber for SelectionStart/End doent invalidate measure,
since it should only focus on invalidate formatted text
Fixes #1448
8 years ago
achal7
16c2a181b2
Revert "Fix of issue #1448"
This reverts commit 1ed14986f1a94aef840f0505902c7ef237bb3825.
8 years ago
Achal Shah
7623a18a53
Revert "1) changed UpdateLastState to call UpdateLastState(TState) so that its the only one that has last update control"
This reverts commit 16ea6a31fc .
8 years ago
achal7
802729bd2d
Fix of issue #1448
InvalidateFormattedText was doing mainly 2 activities, resets formatted text and resets measure.
Splited it and extracted reset of formatted text in to seprate function and using it over there.
TextPresenter usis obervable stream for SelectionStart/End property, over there inside subscriber instead of calling InvalidateFormatedText now we use only ClearFormatedText.
The reason is SelectionStart/End is not going to make any changes regarding measurement and hence reseting formatted text alone is sufficient enough
8 years ago
achal7
8b9aace2e4
1) changed UpdateLastState to call UpdateLastState(TState) so that its the only one that has last update control
2) Clear function clean up the states, however currentNode by definition is depends upon one of the state value, hence made that also null,
since there is nothing now to link
8 years ago
temporaryuser0
ad675ded5e
Check if event was handled before in OnTextInput
8 years ago
boombuler
bcdc940cd9
removed unnecessary XmlnsDefinition
8 years ago
Steven Kirk
5491f4818e
Use standard naming for Read methods.
8 years ago
Steven Kirk
f83dd046a2
Use Contract.Requires for preconditions.
8 years ago
Steven Kirk
9ff123cc94
Moved StringTokenizer to Avalonia.Base.
And make it public instead of linking it from Avalonia.Visuals to Avalonia.Controls.
8 years ago
Steven Kirk
68f5cd6dd6
Move DnD classes to Avalonia.Input.
Fixes #1506 .
8 years ago
Steven Kirk
3b2012dcd8
Fixed focused control display in DevTools.
8 years ago
Steven Kirk
4ca13f2e3f
Added additional invalidation properties...
...to `ContentPresenter`
8 years ago
Dan Walmsley
8d07861e59
white space.
8 years ago
Dan Walmsley
2c9f3ede54
fix tests and and fixes.
8 years ago
Dan Walmsley
a98d289af8
Add arrange fix for border and content presenter.
8 years ago
Steven Kirk
2d1ab0a106
Only update clip bounds when ClipToBounds = true.
Fixes #1436
8 years ago
achal7
16ea6a31fc
1) changed UpdateLastState to call UpdateLastState(TState) so that its the only one that has last update control
2) Clear function clean up the states, however currentNode by definition is depends upon one of the state value, hence made that also null,
since there is nothing now to link
8 years ago
boombuler
6bb1cb471e
don't use OSX-Platform DragSource
this should be used when the DragSource does work with any object.
For now only strings and filenames work.
8 years ago
boombuler
d5d8d049a4
Renamed AcceptDrag to AllowDrop and added docs
8 years ago
boombuler
c09233e4b4
renamed DragSource to InProcessDragSource
8 years ago
lindexi
f03d0e9a4f
remove comment
8 years ago
Dan Walmsley
653372009a
[ContentPresenter] BorderThickness affects render and measure.
8 years ago
Dan Walmsley
27680c35e9
[Border] CornerRadius affects render.
8 years ago
Steven Kirk
ef44f2b908
Handle the click that opens a DropDown.
8 years ago
Steven Kirk
272939464e
Need to press a button to click it!
Only raise a `Button` click event on pointer release when the button has been pressed first!
8 years ago
ReeJK
f412c696f0
use Source in Binding
8 years ago
ahopper
a0b1ad62b3
Fix #1484
8 years ago
lindexi
31b88dc589
Change code
8 years ago
lindexi
d1b06cb784
Comments at this low level are't really necessary
8 years ago
Dan Walmsley
fedae81cb8
partial fix for 1436.
8 years ago
boombuler
7032b9b8eb
moved Drag+Drop sources to Avalonia.Input
Also the windows specific DragSource is
only used when the application runs as STA
8 years ago
boombuler
8713cd5c9f
code cleanup
8 years ago
Steven Kirk
fef1422fdb
Removed unused variable.
8 years ago
Steven Kirk
71c25cae2d
Allow null pen in GeometryImpl.
The `pen` parameter to `GeometryImpl.GetRenderBounds` and `StrokeContains` can be null. Don't try to dereference this null!
8 years ago
Benedikt Schroeder
f63b85f677
Remove comment
8 years ago
lindexi
c064d05e8c
Lasy new the dashes for if we new an array first that we may waste it when we use `dashes = pen.DashStyle.Dashes.Select(x => (float)x).ToArray()`. As a frequently used code I think this optimize is necessary.
8 years ago
lindexi
3e43fc221b
for this code in `pen.DashStyle?.Dashes != null` that pen.DashStyle isnt null and we dont need add `?`
8 years ago
lindexi
6b231ba335
fix comment
8 years ago
José Pedro
a89f9486f1
Implemented correct behavior for Command.CanExecute on MenuItem.
8 years ago
Benedikt Schroeder
50dd6cb66d
Requested changes
8 years ago
dzhelnin
19dbf38e1e
Cleanup remaining "double?" entries
8 years ago
dzhelnin
7c0f1f9374
Use "double" instead of "double?" for Value. DefaultValue removed.
8 years ago
dzhelnin
e120d9c157
Minimum/Maximum coercion functions implementation added
8 years ago
dzhelnin
d6b5e04f0c
Reworked to provide common NumericUpDown control which values are doubles.
8 years ago
Steven Kirk
6682c3e2dc
Moved the reentrancy check to TextBox.
8 years ago
Benedikt Schroeder
1b283105fe
Removed redundant if
8 years ago
Benedikt Schroeder
5b9de833a2
Clean complex rendering code
8 years ago