Benedikt Stebner
894d2386ab
Calculate Bounds and InkBounds for TextLayout to be able to calculate the minmal required width. ( #17721 )
1 year ago
Julien Lebosquain
f4633e210c
Fix TextBlock re-measure in infinite container ( #17638 )
* Add failing test for TextBlock
* Fix TextBlock re-measure in infinite container
* Fix outdated test
---------
Co-authored-by: Max Katz <maxkatz6@outlook.com>
1 year ago
Benedikt Stebner
d411bd2156
Fix TextBlock TextAlignment issues when a HorizontalAlignment is defined ( #17402 )
* Always measure TextBlock with infinite width
* Make sure the constraint is always fulfilled
* Add some tests
* Adjust tests because we no longer retain the TextLayout in the arrange pass
1 year ago
Benedikt Stebner
82b048d58e
Rework how TextBlock skips redundant measure and arrange calls ( #17271 )
* Rework how TextBlock skips redundant measure and arrange calls
Add some tests
* Adjust tests
* Try this
* Make sure the TextBlock is arranged after it has been measured with a different availableSize
* Make it more clear that we are resetting and recreating the TextLayout
* Capture textLayout after inlines have been processed
1 year ago
Benedikt Stebner
9849da209c
Fixes/inline host change propagation ( #14914 )
* Add failing test
* Propagate InlineHost to children
2 years ago
Benedikt Stebner
e35e94902e
Recreate TextLayout on measure to make sure constraint is updated ( #14705 )
* Recreate TextLayout on measure to make sure constraint is updated
* Add failing test
2 years ago
Benedikt Stebner
599cf1f297
Fix InlinesCollection Logical/VisualParent update ( #14679 )
* Add failing test
* Update Visual/LogicalTree when parents change
2 years ago
Benedikt Stebner
0c2c3f1aeb
Fix InlineUIContainer focus ( #14590 )
* Fix TextBlock MeasureOverride visual child handling
* Make sure InlineUIContainer's child retains focus on measure
* Resolve merge error
2 years ago
Benedikt Stebner
2ecfbb9783
Fix Inlines clear handling ( #14247 )
* Make sure to clean up VisualChildren and created text runs when the TextLayout is invalidate
* Remove localized comment
---------
Co-authored-by: Tim <47110241+timunie@users.noreply.github.com>
2 years ago
Benedikt Stebner
21cc95a014
Fix failing test
3 years ago
Bill Henning
16ab9c595c
Fix for TextBlock.TextDecorations not inheriting down to inlines.
3 years ago
Benedikt Stebner
475f22f6f6
Fix visual tree handling when Inlines is reset
3 years ago
Nikita Tsukanov
64610c264b
Composition aware resources
3 years ago
Tom Edwards
86324dca77
Convert Text properties to StyledProperty
3 years ago
Benedikt Stebner
0d889da820
Remove redundant member
3 years ago
Benedikt Stebner
2f5c5494b4
Add failing test
3 years ago
Benedikt Stebner
93b77b1b6a
Move inlines support to TextBlock and rename RichTextBlock to SelectableTextBlock
3 years ago
Benedikt Stebner
f4a3843731
Fix unit test
4 years ago
Benedikt Stebner
a408ea10d7
Some Progress
4 years ago
Benedikt Stebner
95769ff007
Add TextBlock inlines support
4 years ago
Giuseppe Lippolis
c98918bc2a
Update tests
6 years ago
Steven Kirk
4d01dacd77
Remove copyright headers.
Some of our files had them, some didn't. They serve no purpose legally so best to remove the ceremony.
6 years ago
Steven Kirk
afdfb28da8
Added failing tests for brush invalidation.
8 years ago
Unknown
92ad156d83
Add test that default value of TextBlock.Text property is empty string.
8 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
bb759a8785
We can now override the default binding mode.
So make TextBlock and TextBox have different default binding modes.
10 years ago