These are chat archives for AvaloniaUI/Avalonia

16th
Nov 2017
danwalmsley
@danwalmsley
Nov 16 2017 10:04 UTC
guys I'm trying to convert this XAML to c#
just stuck on the attached property for canvas .Left
/*<Canvas x:Name="PART_Canvas" Width="16" Height="16" Background="#1a1a1a">
                        <Rectangle Height="8" Width="8" Fill="#1c1c1c" />
                        <Rectangle Height="8" Width="8" Canvas.Left="8" Canvas.Top="8" Fill="#1c1c1c" />
                    </Canvas>*/

            _canvas = new Canvas
            {
                Width = 16,
                Height = 16,
                Background = Brush.Parse("#1a1a1a"),

                Children = new Avalonia.Controls.Controls
                {
                    new Rectangle { Height=8, Width = 8, Fill = Brush.Parse("#1c1c1c") },
                    //new Rectangle { Height=8, Width=8, Fill = Brush.Parse("#1c1c1c") }
                }
            };
Nikita Tsukanov
@kekekeks
Nov 16 2017 10:05 UTC
Try SetValue(Canvas.LeftProperty)
danwalmsley
@danwalmsley
Nov 16 2017 10:05 UTC
@kekekeks hey
im trying manually setting the visual brush
as soon as it goes on the screen
FPS goes down to like 1
Nikita Tsukanov
@kekekeks
Nov 16 2017 10:07 UTC
weird
danwalmsley
@danwalmsley
Nov 16 2017 10:07 UTC
i'll post a repro somewhere
Might be worth to start updating our code base
Steven Kirk
@grokys
Nov 16 2017 18:32 UTC
Yeah I saw that! Definitely!
Assuming they get it right, I cannot wait!
But there's also the problem that we don't want to depend on an experimental version of the compiler...
danwalmsley
@danwalmsley
Nov 16 2017 23:09 UTC
@kekekeks @grokys the border PR seems nice, but must have been some breaking changes!
image.png
Harry
@cra0zy
Nov 16 2017 23:13 UTC
looks good to me