Steven Kirk
7ac3556983
Fixed StackPanel arrange pass.
Now follow's WPF's behavior better. In order to get the desired outcome, the `.Constrain(availableSize)` call in `Layoutable.Measure` had to be removed. Controls that relied on that (`Image` and `ViewBox`) have to now call `Constrain` themselves.
Fixes #2350
7 years ago
Steven Kirk
3ee48b25e4
Fix image arrange.
`Image` was calculating its desired size correctly according to the value of `Stretch` but then was not applying that calculation to the arrange pass.
Fixes #2260
7 years ago
Dan Walmsley
63928f6242
[Image] Measure is triggered when source or stretch property is changed.
8 years ago
Steven Kirk
a0e8dca6e9
Use PixelSize for device-dependent sizes.
8 years ago
Steven Kirk
fad2e317ba
Make AffectsMeasure/Arrange/Render typed.
8 years ago
Benedikt Schroeder
fb30bcd9bd
Some minor issues fixed
8 years ago
Benedikt Schroeder
4c63eb37d2
Namespace fixes
8 years ago
Benedikt Schroeder
81008bd5f7
Naming fixes
8 years ago
Benedikt Schroeder
c0dd75bcce
Refactoring
Add interpolation to TileBrush
8 years ago
Benedikt Schroeder
881069fd5d
Introduce RenderOptions
8 years ago
Benedikt Schroeder
b108ffcab4
Initial implementation of BitmapScaleMode
8 years ago
Steven Kirk
6cc829a132
Renamed Rect.CenterIn -> CenterRect.
The previous naming suggested that the `Rect` that the method was being
called on was the one being centered.
9 years ago
Steven Kirk
e79a144c14
WIP: Working on getting VisualBrush working
Don't try to render `VisualBrush`es in TileBrushImpl - visual brushes
need first to be transformed into images and then rendered as an
`ImageBrush`. To this end, renamed `TileBrushImpl` as `ImageBrushImpl`
(in D2D backend only for now as that's what I'll get working first).
Actual visual brush implementation not yet done.
9 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
67ff6c474f
Removed tabs and moved static ctor.
10 years ago
Jason Jarvis
361d3ad861
added AffectsRender to Image control
10 years ago
Steven Kirk
1f71d941fb
Fix Image measure.
Should return a DesiredSize which fits in the constraint.
10 years ago
Steven Kirk
1202eaa876
Updated PerspexProperties to new classes
i.e. AttachedProperty, DirectProperty or StyledProperty.
10 years ago
Steven Kirk
9efbfc182e
Use IBitmap for Image.Source
And register converter for that interface. This is to conform with
ImageBrush.
11 years ago
Nikita Tsukanov
3fc62506df
Introduced DrawingContext class responsible for matrix transformation and push/pop order validation
11 years ago
Steven Kirk
e354887311
Fix Image measurement.
11 years ago
Steven Kirk
846df81b76
Whitespace.
11 years ago
Steven Kirk
0e812bb0d6
Whitespace.
11 years ago
Nikita Tsukanov
01e2c90bc5
Removed this.
11 years ago
Steven Kirk
145411020b
Ran .net core code formatter.
11 years ago
Steven Kirk
6151aef188
Removed file headers.
11 years ago
Steven Kirk
a1ee3efab8
More work on VisualBrush, not entirely correct yet.
11 years ago
Steven Kirk
6167bacf54
Moved to more standard filesystem layout.
Based on https://gist.github.com/davidfowl/ed7564297c61fe9ab814 and https://github.com/fsprojects/ProjectScaffold
11 years ago
Steven Kirk
4e443c87bd
More porting docs etc from ideas branch.
11 years ago
Steven Kirk
c27ddbb17c
Removed ActualSize property - use Bounds instead.
11 years ago
Steven Kirk
a9a569557b
Moved some properties around.
- Moved Background out of Control. Fixes #14 .
- Added Font properties to TemplatedControl.
12 years ago
Steven Kirk
cf959fd8eb
Added RadioButton control.
12 years ago
Steven Kirk
a833a5e883
Stylecop fixes.
Also added solution-wide stylecop settings.
12 years ago
Steven Kirk
bfadaac5d9
Non-building checkpoint in MAJOR refactor.
12 years ago
Steven Kirk
d034952c6a
Added Image control.
12 years ago