These are chat archives for AvaloniaUI/Avalonia

17th
Feb 2017
Nikita Tsukanov
@kekekeks
Feb 17 2017 08:15
@curea We don't have global menu support yet
It's planned, but we aren't sure how exactly it should work
Since it would be nice to just get regular menu items exported to the global menu bar and get your main menu hidden if global menubar is available
Currently there are at least two global menubars that we need to support: OS X and Ubuntu ones
Nikita Tsukanov
@kekekeks
Feb 17 2017 08:22
Ubuntu, on the other hand, uses some voodoo to extract window's menu and synchronize it "automatically"
Not sure if we should use that or just find a way to talk directly with underlying DBus-based client
Nvm, GTK3 seems to have built-in support for that
Or may be not...
Need further investigation
As I said, we don't know yet how it should work
Nikita Tsukanov
@kekekeks
Feb 17 2017 08:39
@curea #898
Nikita Tsukanov
@kekekeks
Feb 17 2017 08:51
@grokys as far as I understand, we could still add trigger model from WPF
so styles would be compatible
Steven Kirk
@grokys
Feb 17 2017 09:21
well the main use of triggers in WPF are handled by selectors in avalonia, but there are some triggers that aren't, you're right
Nikita Tsukanov
@kekekeks
Feb 17 2017 09:23
That would be nice for portability purposes
Since when you are porting something, you need to get it working first
And then think about all awesome features that new platform provides
Steven Kirk
@grokys
Feb 17 2017 09:34
yeah i would really like to have a portability library. we could put hooks into e.g. styles that would allow writing WPF triggers
of course we coudn't make everything completely portable, but using a few tricks we might be able to let people get started more easily
Nikita Tsukanov
@kekekeks
Feb 17 2017 09:41
BTW, pseudoclasses are tied to properties, right?
Why not use properties as pseudoclasses directly?
however pseudoclasses are more abstract and can reflect more complex siutations, and apply to multiple controls where a state could be caused by different things etc
so i guess what i'm saying is that they don't always have to be tied to a single property
curea
@curea
Feb 17 2017 15:59
@kekekeks Thanks, didn’t want to start down a road if someone already had a solution. Researching yesterday came up with the same thought you had...
Nikita Tsukanov
@kekekeks
Feb 17 2017 16:01
It was planned already, just not documented
milkinllc
@milkinllc
Feb 17 2017 23:03
win10 platformdetect on nightly. is f12 broken or it's me only?
milkinllc
@milkinllc
Feb 17 2017 23:19
once any control has focused and then hitting f12 activates dev tools window.
Steven Kirk
@grokys
Feb 17 2017 23:22
devtools F12 is activated by AttachDevTools
remove that line if you don't want it
milkinllc
@milkinllc
Feb 17 2017 23:50
yea, i know. thank you. i was actually trying to invoke those and wasn't able until put focus in textbox clicking mouse.
i am navigating through pages using carousel with virtualization.
so view detached and new attached on page change. nothing gets focused initially.
and f12 not working.
Steven Kirk
@grokys
Feb 17 2017 23:54
ah ok. that is strange. sounds like key input isn't going to your window for some reason
milkinllc
@milkinllc
Feb 17 2017 23:55
yeah. i am using hack on visual tree attachment setting focus.
weird hack since can't hook into layoutupdate anyway. no events.
Steven Kirk
@grokys
Feb 17 2017 23:57
there's a PR for a LayoutUpdated event: AvaloniaUI/Avalonia#840
i've not merged it yet because no-one has tested it to see if it works
(the WPF layoutupdated event logic seems to be quite complex and this is simple)