These are chat archives for AvaloniaUI/Avalonia

15th
Dec 2018
Nikita Tsukanov
@kekekeks
Dec 15 2018 05:11
@Gribochek277
I'm planning to take a shot at OpenTK integration after they release .NET Core capable version
But your code should still be aware of OpenGL/OpenGLES context types
dfkeenan
@dfkeenan
Dec 15 2018 05:55
Hi guys, I just started playing with Avalonia UI today. I was wondering if it was possibly to give windows custom chrome (caption/title bar, border etc.)?
dfkeenan
@dfkeenan
Dec 15 2018 08:24
So I should use a window with HasSystemDecorations="false" with a custom template for all the buttons etc.
Jumar Macato
@jmacato
Dec 15 2018 08:27
check out this example from ControlCatalog for custom chromed windows
dfkeenan
@dfkeenan
Dec 15 2018 08:30
thanks!
dfkeenan
@dfkeenan
Dec 15 2018 09:05
Is the BaseDark theme not in the current release?
dfkeenan
@dfkeenan
Dec 15 2018 09:14
I copied the BaseDark.xaml file into my project it sort of works. But all the text things are staying black and not getting the Foreground color set in the theme.
dfkeenan
@dfkeenan
Dec 15 2018 09:21
Also, Is there something I need to do so a console window doesn't open?
Nikita Tsukanov
@kekekeks
Dec 15 2018 09:29
Either update to .NET Core 3 and set output type to WinExe
Or apply workaround from our wiki
dfkeenan
@dfkeenan
Dec 15 2018 09:30
Thank you!
Nikita Tsukanov
@kekekeks
Dec 15 2018 09:30
Fun fact: you are the third person I'm sending this link to today
dfkeenan
@dfkeenan
Dec 15 2018 09:30
hahaha
dfkeenan
@dfkeenan
Dec 15 2018 10:17
:O This Grid RowDefinitions="5,*,5" ColumnDefinitions="5,*,5" is sexy. :thumbsup:
Jumar Macato
@jmacato
Dec 15 2018 10:18
@dfkeenan & super convenient too :smile: saves alot of keystrokes
and the folks at wpf repo have noticed it too dotnet/wpf#166
dfkeenan
@dfkeenan
Dec 15 2018 10:24
:D
I had a quick look to see if I could add it to WPF by creating a TypeConverter for RowDefinitionCollection or something. But those properties are getter only. :(
I guess a work around could be an attached property.
AvaloniaUIIsAwesome.RowDefinitions="5,*,5"
ahopper
@ahopper
Dec 15 2018 10:50
there are some interesting ideas for grid here Microsoft/microsoft-ui-xaml#54
dfkeenan
@dfkeenan
Dec 15 2018 10:54
areas are kind of interesting.
Q: Do style selectors support something similar to CSS comma separated selectors?
ahopper
@ahopper
Dec 15 2018 16:21
has anyone any clues as to why IRenderRoot.Invalidate(Rect rect) on TopLevel is not called?
braca
@braca
Dec 15 2018 19:13
Hi guys, Avalonia Catalog (latest code from master) running as net Core (windows), when selecting the text in a multiline textbox, it freezes the whole app.
I didn't find any bug report about this, is this a known issue, or should I open an issue in github?
Steven Kirk
@grokys
Dec 15 2018 23:15
@ahopper i think @kekekeks might have removed that call recently
sounds like we might need another way to signal that the scene has changed