These are chat archives for AvaloniaUI/Avalonia
PointPairseems like a bit of a strange addition. is there another library/framework you took the idea from?
PerspexObject, changes to the points will not be picked up by the control
Pointis immutable so should be fine for binding
Linewould be preferable for me
PointPair.P1there's no way for Line to tell the point has changed
Polylinewon't currently work with binding either, but WPF has that limitation too
Shapewas taken from moonlight
I think I'm right. So, that is the question occured. What is the best way to scale Thickness for Path, Polygon and Polyline (thickness is setting up here)? There are three strategies:
Direct 2D scales by the following way (Average):
So, I suppose to use Average strategy for non-uniform scaling (Stretch.Fill for example).
<Window xmlns="https://github.com/perspex" Width="500" Height="400"> <Grid ColumnDefinitions="*,250"> <ScrollViewer Grid.Column="1"> <DockPanel> <TextBlock Text="Top" DockPanel.Dock="Top" /> <DockPanel> <TextBlock Text="Top" DockPanel.Dock="Top" /> <StackPanel Background="Red"> <CheckBox Content="CheckBox1"/> <CheckBox Content="CheckBox2"/> <CheckBox Content="CheckBox3"/> <CheckBox Content="CheckBox4"/> <CheckBox Content="CheckBox5"/> <CheckBox Content="CheckBox6"/> <CheckBox Content="CheckBox7"/> <CheckBox Content="CheckBox8"/> <CheckBox Content="CheckBox9"/> </StackPanel> </DockPanel> </DockPanel> </ScrollViewer> </Grid> </Window>
FormattedText::SetForegroundBrushand has some minor rendering issues that you won't see in our test app
wgetdoesn't exist on OS X by default.
Set the TestApplication project as the startup project and click Run.
There is no
DockPanelis completely wrong in just about every test i've done...