These are chat archives for AvaloniaUI/Avalonia

8th
Aug 2018
Steven Kirk
@grokys
Aug 08 2018 06:12
@YMIndustries hmm yes it's possible but not currently that easy. you'd have to look for a ScrollViewer in the TextBox's visual descendants
something like textBox.GetVisualDescendents().OfType<ScrollViewer>().First() should give you that
Joshua Walsh
@YMIndustries
Aug 08 2018 06:18
Sweet, thanks @grokys
Kyiv
@_VeTaLkO__twitter
Aug 08 2018 12:25
How can i receive an event SelectedItemChanged for Avalonia TreeView?
I'm checking MSBuildStructuredLog, and it is System.Windows.Control.TreeView is used there. I try to use Avalonia.Controls.TreeView, but i can see no events there
Probably UpdateSelectionFromEventSource(), but i'm not quite sure
Steven Kirk
@grokys
Aug 08 2018 16:29
@_VeTaLkO__twitter ah yeah we seem to be missing that event! could you add an issue?
in the meantime you could use treeView.GetObservable(TreeView.SelectedItemProperty) which will give you an observable which will be fired with the initial value of the selected item and the new value each time it changes
MonkAlex
@MonkAlex
Aug 08 2018 17:22
I wanna dialogs (yes no, ok cancel)
It must be windows or another toplevel control?
Kyiv
@_VeTaLkO__twitter
Aug 08 2018 17:48
@grokys Sure, i'll create an issue then. Thanks for workaround - will try it
Kyiv
@_VeTaLkO__twitter
Aug 08 2018 18:18
@MonkAlex Check the ControlCatalog sample - there is a sample of Dialogs, both modal and normal (spoiler: DecoratedWindow control is used for custom dialog)
MonkAlex
@MonkAlex
Aug 08 2018 18:56
its native OS dialogs. i wanna applied dialogs
Steven Kirk
@grokys
Aug 08 2018 20:41
@MonkAlex you mean a native MessageBox. we've still not got those yet!
shouldn't be hard to add though?