These are chat archives for AvaloniaUI/Avalonia

26th
Nov 2018
Nikita Tsukanov
@kekekeks
Nov 26 2018 10:42
@danwalmsley @donandren Since latest bulk of changes to Avalonia.IDE has caused some regressions
I've added unit tests
I don't know the entire feature set that you've been implementing
So, please, add tests for the features you've implemented
danwalmsley
@danwalmsley
Nov 26 2018 10:50
@kekekeks
Fetched in submodule path 'src/external/pngcs/pngcs', but it did not contain 7f447a40bb4bbfd08a96e56bc9b1a5822d06b41d. Direct fetching of that commit failed.
Nikita Tsukanov
@kekekeks
Nov 26 2018 11:10
+
Roman Minyaylov
@roman-minyaylov
Nov 26 2018 11:12
Hi. How I can catch scroll / change value event for Slider control?
Nikita Tsukanov
@kekekeks
Nov 26 2018 11:15
slider.GetObservable(Slider.ValueProperty);
Roman Minyaylov
@roman-minyaylov
Nov 26 2018 11:17
no non-reactive way like simple Click event for Button?
Nikita Tsukanov
@kekekeks
Nov 26 2018 11:21
slider.GetObservable(Slider.ValueProperty)
    .Subscribe(value => Console.WriteLine(value));
Roman Minyaylov
@roman-minyaylov
Nov 26 2018 11:22
Oh, correct, thank you!
Roman Minyaylov
@roman-minyaylov
Nov 26 2018 13:53
Hi. Any ways to show message box, native or Avalonia-based?
Roman Minyaylov
@roman-minyaylov
Nov 26 2018 14:07
@kekekeks Value property is not what I need... I want to capture value change by used, if value changed from code I got event (value property change) too.
Steven Kirk
@grokys
Nov 26 2018 15:36
@roman-minyaylov there's no difference to the framework whether the change comes from a user interaction or from code. if you want to ignore changes from code, you'll need to set a flag
do other frameworks have a better way of doing this?
Roman Minyaylov
@roman-minyaylov
Nov 26 2018 15:37
yes, using flag now. yes, in WinForms user event and new value set in code is independent
Roman Minyaylov
@roman-minyaylov
Nov 26 2018 18:52
I'm unable to find some message box, and as I see no color picker dialog.
Roman Minyaylov
@roman-minyaylov
Nov 26 2018 19:18
@kekekeks thank you. In UI preview got an error: System.NotSupportedException: Current operation is valid only when the underlying type on a XamlType is known, but it is unknown for '{https://github.com/avaloniaui}ColorPicker'
Andrey Kunchev
@donandren
Nov 26 2018 21:10
@kekekeks AvaloniaUI/AvaloniaVS#76 this PR designer is working much better for me than before in general and in terms of completion, not sure what's broken, but unit tests are always a good idea
Roman Minyaylov
@roman-minyaylov
Nov 26 2018 21:19
@donandren thank you.
I think I want to made my own dialogs and share it with community. How I can show modal dialog? Because of lack of demos and docs I have many questions...
Andrey Kunchev
@donandren
Nov 26 2018 21:23
Roman Minyaylov
@roman-minyaylov
Nov 26 2018 21:27
@donandren in 0.7 ShowDialog do not have parent parameter.
Roman Minyaylov
@roman-minyaylov
Nov 26 2018 21:37
so, don't know how to show it modal
danwalmsley
@danwalmsley
Nov 26 2018 21:40
@roman-minyaylov you need to use nightly builds
this api changed recently
Roman Minyaylov
@roman-minyaylov
Nov 26 2018 21:43
@danwalmsley thank you!
Brian Hoary
@battlebottle
Nov 26 2018 22:23
Hi guys. I'm trying to understand some of the architecture here. Am I right in thinking that the rendering process is roughly as such: A visual tree is rendered by the DeferedRenderer, which renders out a SceneGraph. All this is done on the UI Thread. Then on the render thread, the SceneGraph is rendered to the render target (window surface), or only any changes that need re-rendering. Would that be accurate?
John Källén
@uxmal
Nov 26 2018 23:51
Howdy folks. I'm writing an application that displays some data in a TreeView. This data can be up to 10000's of items. Disregarding the issue that a TreeView may not be the correct control for this sort of data, I'm noticong that when I bind 10000 items to the TreeView, the Avalonia UI goes catatonic as it allocates 500 MiB of memory (and still increasing as I write this). I thought this would a virtualized bind operation; do I need to adjust my expectations?