These are chat archives for AvaloniaUI/Avalonia

17th
Apr 2018
lindexi
@lindexi
Apr 17 2018 06:11
i found xarmain wpf
Achal Shah
@achal7
Apr 17 2018 06:12
ahh.. my changes got submitted in earlier open PR
Florian
@boombuler
Apr 17 2018 08:19
@grokys #184 might be closed?
Steven Kirk
@grokys
Apr 17 2018 08:20
ah yeah. i guess it can be!
Benedikt Schroeder
@Gillibald
Apr 17 2018 09:37
Is there a roadmap what needs to be implemented for future releases? Would be good to know what features are requested.
danwalmsley
@danwalmsley
Apr 17 2018 09:38
I know one feature we really need
embedded fonts
and fallback fonts
we currently support FontFamily="Arial"
but not = "Arial Consolas" etc
Benedikt Schroeder
@Gillibald
Apr 17 2018 13:10
So you want to be able to load custom fonts from resources? That involves some work but should be possible.
danwalmsley
@danwalmsley
Apr 17 2018 13:28
resources
and fallbacks either from resource or system fonts
Benedikt Schroeder
@Gillibald
Apr 17 2018 13:30
Loading them should not be hard but defining them. Just saw AvaloniaUI/Avalonia#1313
Maybe i should work on the loading part and we find a way to register them later.
danwalmsley
@danwalmsley
Apr 17 2018 13:33
if we had method to do it in code
that would be a big step forward
then we can work out some really nice XAML to do it later
I guess this feature will require some interface in each of the rendering backends perhaps
Benedikt Schroeder
@Gillibald
Apr 17 2018 13:38
I could introduce a global registry for custom fonts. Using them in XAML isnt a problem you just set FontFamily to your customfont's name and the renderer looks them up in our registry before checking systemfonts.
danwalmsley
@danwalmsley
Apr 17 2018 13:41
on skia I know we use this typeface cache
might give you some clues on how it interacts with skia
Benedikt Schroeder
@Gillibald
Apr 17 2018 13:43
Already checked how it is done. Loading customfonts in skia and adding them to a existing cache should be easy.
danwalmsley
@danwalmsley
Apr 17 2018 13:44
cool, maybe we can get it to work on skia then look what we need to do to add to direct2d backend
Benedikt Schroeder
@Gillibald
Apr 17 2018 13:45
In theory i found a solution for SharpDX too. That needs some work but is possible.
lindexi
@lindexi
Apr 17 2018 14:14
Can we use opengl?
danwalmsley
@danwalmsley
Apr 17 2018 14:23
@Gillibald I tested the unit test on current code and your code
I think you will need @grokys to tell you if its a bug in existing code
I think it might be
Steven Kirk
@grokys
Apr 17 2018 14:23
the content presenter thing? yeah quite possibly
what does the same layout on UWP give?
Benedikt Schroeder
@Gillibald
Apr 17 2018 14:24
Haven't checked that probably have to
danwalmsley
@danwalmsley
Apr 17 2018 14:25
@grokys I was thinking it was because contentpresenter ClipToBounds = false
but I tested with that true and it still ignores the maxwidth/height
Steven Kirk
@grokys
Apr 17 2018 14:27
ClipToBounds shouldn't affect layout
Josh Pearce
@joshpearce
Apr 17 2018 14:41
'morning, total noob. Can I develop a UI with Avalonia on OSX in vscode?
Wiesław Šoltés
@wieslawsoltes
Apr 17 2018 14:43
Exception thrown: 'Portable.Xaml.XamlObjectWriterException' in Avalonia.Markup.Xaml.dll
An exception of type 'Portable.Xaml.XamlObjectWriterException' occurred in Avalonia.Markup.Xaml.dll but was not handled in user code
Cannot set unknown member '{clr-namespace:Avalonia.Controls;assembly=Avalonia.Controls}Border.DragDrop.AllowDrop'
I get this when I run control catalog on .NET Core, the desktop version works.
danwalmsley
@danwalmsley
Apr 17 2018 14:44
@joshpearce you can, but there is no previewer for vscode
so if your not familiar with XAML might be a bit tricky
we have previewer for Visual Studio and experimental IDE AvalonStudio (which is still a bit buggy)
Josh Pearce
@joshpearce
Apr 17 2018 14:47
@danwalmsley Thanks. I just want to make a primative window display to visualize some algorithms I'm developing. Just like draw colored boxes, handle clicks, display text. Is that pretty easy to do without the previewer?
danwalmsley
@danwalmsley
Apr 17 2018 14:48
its ok
its doable
you can probably start with this...
that's our control catalog
once you get that building you can strip bits out and add your stuff
Benedikt Schroeder
@Gillibald
Apr 17 2018 14:50
MaxWidth/MaxHeight are evaluated in MeasureCore. That happens before the override is called.
Josh Pearce
@joshpearce
Apr 17 2018 14:50
Great! Thanks!
Shimmy
@weitzhandler
Apr 17 2018 18:44
@grokys I wish Microsoft officially adopted Avalonia.
Many people refrain from using this awesome project because it has a big fog of uncertainty surrounding it. Are you in relationship with MS officials regarding adopting Av?
danwalmsley
@danwalmsley
Apr 17 2018 18:46
that's possibly more likely to happen if more people start to adopt it
the good news is there appears to have been a bit of an explosion recently of people starting to try it out
we know they seem to be aware of it
Jeremy Koritzinsky
@jkoritzinsky
Apr 17 2018 19:20
They’re definitely aware of it. During my internship there I had a few meetings with some people about Avalonia.
Specifically with the XAML Standard people.
danwalmsley
@danwalmsley
Apr 17 2018 19:25
I'm having trouble update the nuget packages
for sharpgen sdk
is myget down perhaps