These are chat archives for AvaloniaUI/Avalonia

9th
Jan 2019
MonkAlex
@MonkAlex
Jan 09 05:02
And its not mvvm style
Arman Hayots
@ArmanHayots
Jan 09 12:34
Only one question: why XAML 2006 instead of 2009?
Roman Minyaylov
@roman-minyaylov
Jan 09 13:16
Hi. I'm getting "Not replacing existing, living, managed instance with new object." message while updating StackPanel (adding Image(s) on-the-fly). And after some time app exiting. How I can add Images to StackPanel correctly?
Benedikt Schroeder
@Gillibald
Jan 09 13:21
I would use an ItemsControl that is bound to a list of ImageViewModel. That way ItemsControl is responsible for managing items that are added removed from the underlying panel in your case a StackPanel.
@ArmanHayots Wpf doesn't support this either so that could be the reason.
Steven Kirk
@grokys
Jan 09 13:46
@ArmanHayots we should support XAML 2009. we use portable.xaml so we get whatever that supports
@roman-minyaylov can you give the exact message and a stacktrace?
Arman Hayots
@ArmanHayots
Jan 09 13:52
@grokys thank for explanation.
Steven Kirk
@grokys
Jan 09 13:57
what 2009 feature are you missing?
danwalmsley
@danwalmsley
Jan 09 14:17
@jeffreye iv a added a repro for the scolling issue on AvaloniaEdit
Steven Kirk
@grokys
Jan 09 14:33
@danwalmsley mac build is failing on Azure Pipelines with:
2019-01-09T14:33:06.2031250Z /usr/local/Homebrew/Library/Homebrew/config.rb:39:in `initialize': no implicit conversion of nil into String (TypeError)
2019-01-09T14:33:06.2031930Z     from /usr/local/Homebrew/Library/Homebrew/config.rb:39:in `new'
2019-01-09T14:33:06.2032550Z     from /usr/local/Homebrew/Library/Homebrew/config.rb:39:in `<top (required)>'
2019-01-09T14:33:06.2033080Z     from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
2019-01-09T14:33:06.2033690Z     from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
2019-01-09T14:33:06.2034200Z     from /usr/local/Homebrew/Library/Homebrew/global.rb:25:in `<top (required)>'
2019-01-09T14:33:06.2034680Z     from /usr/local/Homebrew/Library/Homebrew/brew.rb:13:in `require_relative'
2019-01-09T14:33:06.2035270Z     from /usr/local/Homebrew/Library/Homebrew/brew.rb:13:in `<main>'
2019-01-09T14:33:06.2208500Z ##[error]Bash exited with code '1'.
2019-01-09T14:33:06.2225890Z ##[section]Finishing: Install CastXML
Nikita Tsukanov
@kekekeks
Jan 09 15:37
Seems to be Azure/homebrew issue
Benedikt Schroeder
@Gillibald
Jan 09 15:39
Is there a reason FormattedText is recreated when the caret of a TextBox is updated?
Jeffrey Ye
@jeffreye
Jan 09 16:13
@danwalmsley good. I'll take a look at it
ahopper
@ahopper
Jan 09 17:27
@Gillibald so when performance matters is it good practice to avoid recreating FormattedText? This in in the context of a 30+fps graph where the axis may or may not change per frame.
Benedikt Schroeder
@Gillibald
Jan 09 18:22
If the text and text properties don't change it should be reused. The performance hit grows with a more complex layout. Single lines are cheaper to create than multi line layouts.
ahopper
@ahopper
Jan 09 18:31
thanks, it's great to have the views of the developer in mind when using stuff. Performance seems to get a bad press these days( with generations programmed with the 'premature optimization' mantra). I'd like to see all api docs with a call cost against them.
This invalidates the FormattedTextImpl and causes a recreate when the text is being rendered. So you can keep one instance of FormattedText and still see updates.
ahopper
@ahopper
Jan 09 18:38
thanks
Benedikt Schroeder
@Gillibald
Jan 09 18:45
When we have Glyphs(GlyphRun) support we get a more performant way to render text.
Nikita Tsukanov
@kekekeks
Jan 09 19:08
Should we still support Ubuntu 14.04?
It hits EOL April this year
Asking because 14.04 lacks RANDR 1.5 support
Which allows to query monitor info properly
Jeremy Koritzinsky
@jkoritzinsky
Jan 09 19:14
Considering we haven’t hit 1.0 yet, I’m totally fine with dropping support for EOL operating systems.
ahopper
@ahopper
Jan 09 20:22
@jjermann have you got a simple repro for the keybinding issue?
Jeremy Koritzinsky
@jkoritzinsky
Jan 09 23:07
@kekekeks the Mac build problem is an issue with homebrew. We should be able to just add brew update before our brew install to fix it. At least that’s the workaround we’re planning to use at work