These are chat archives for AvaloniaUI/Avalonia

22nd
Feb 2018
kolejium
@kolejium
Feb 22 2018 02:41

Hello! Why does not it work? What should I specify instead of TargetType?
...
Everything is very, very strange ...
P.S. decided to remake from the old project vertical tabcontrol, in the end, I can not even regulate the Content in the Button ... Sadness

<Setter Property = "Button.Content">
<Setter.Value>
<ControlTemplate>
<ContentPresenter Margin = "10" HorizontalAlignment = "Left" VerticalAlignment = "Top" RecognizesAccessKey = "True" />
</ ControlTemplate>
</Setter.Value>

When will the normal documentation be ready?
Style selectors are actually documented quite well
We are using css-like styling system instead of TargetType
Also, you are trying to set ControlTemplate value for Content property
That won't work even in WPF/UWP
That's how our default button style is defined
Steven Kirk
@grokys
Feb 22 2018 08:49
i've been working a bit on docs. is there anything that i should concentrate on do you think?
AvaloniaUI/avaloniaui.net#8
i've started by reorganizing what we have and then filling in a few pieces that should be linked from there
ruselm
@ruselm
Feb 22 2018 11:29
Hi, can you check pls this resize bug https://gfycat.com/ImmenseDisloyalDairycow. Reproduced on win8.1,win10
danwalmsley
@danwalmsley
Feb 22 2018 13:06
@jkoritzinsky above resize bug looks like it might be to do with ref counting stuff?
sc
@StrongCod3r
Feb 22 2018 13:49
Hi, I need use Command from a MenuItem, Are there some example?
Jeremy Koritzinsky
@jkoritzinsky
Feb 22 2018 14:59
It’s not a bug in refcounting but I’ll take a look.
Steven Kirk
@grokys
Feb 22 2018 16:01
@StrongCod3r good point - i need to add some documentation about that
but you should just be able to bind to the command. what's not working?
Steven Kirk
@grokys
Feb 22 2018 16:16
also you don't actually need a command, you can also bind to methods
danwalmsley
@danwalmsley
Feb 22 2018 16:33
@grokys @kekekeks this looks like some weird rendering issue with avalonia...
AvaloniaUI/AvaloniaEdit#45
Steven Kirk
@grokys
Feb 22 2018 16:53
oh wow, expanding windows!
we should call it a feature
have you been able to repro dan?
danwalmsley
@danwalmsley
Feb 22 2018 16:55
I don't have access to a dual monitor atm!
I will tomorrow
Yaakov
@greatjack1
Feb 22 2018 19:55
I have some experience in c# and would like to help contribute to this repo. I am new to the oss world and was wondering if anyone here would be willing to help mentor me through the process of contributing
sc
@StrongCod3r
Feb 22 2018 21:45
image.png
What its the problem?
danwalmsley
@danwalmsley
Feb 22 2018 21:46
does it accept Color="##FF112233"?
sc
@StrongCod3r
Feb 22 2018 21:48
yes, but I need alpha channel
danwalmsley
@danwalmsley
Feb 22 2018 21:49
you can describe alpha channel
Color="#AARRGGBB"
does that work for you?
please open an issue for the way you tried to do it, it probably should have worked like that
sc
@StrongCod3r
Feb 22 2018 21:50
image.png
danwalmsley
@danwalmsley
Feb 22 2018 21:50
does that work
?
sc
@StrongCod3r
Feb 22 2018 21:51
Ok, now compile
yes
danwalmsley
@danwalmsley
Feb 22 2018 21:51
:)
sc
@StrongCod3r
Feb 22 2018 21:51
thx
danwalmsley
@danwalmsley
Feb 22 2018 21:51
np
Steven Kirk
@grokys
Feb 22 2018 22:11
@greatjack1 sure - how can we help?