These are chat archives for AvaloniaUI/Avalonia

10th
Jan 2016
I think we can use that for CoreCLR-compatible GTK bindings for the time being
Basically it's some kind of dynamic on top of GTK
Steven Kirk
@grokys
Jan 10 2016 10:58
hi all back from holidays
got a few things to do today but should be back properly tomorrow
won't skia work with coreclr?
Nikita Tsukanov
@kekekeks
Jan 10 2016 11:02
It should be working if they have P/Invoke and Marshal.GetDelegateFromFunctionPointer
Whoops
They don't
dotnet/coreclr#324 this issue is closed however
Steven Kirk
@grokys
Jan 10 2016 12:43
seems be be closed because it's been implemented
Nikita Tsukanov
@kekekeks
Jan 10 2016 12:51
Meh, we need to migrate some desktop platform-specific stuff to project.json format
I'm not sure that AppVeyor is capable of building that
José Manuel Nieto
@SuperJMN
Jan 10 2016 13:17
Is JSON the new XML?
XD
Nikita Tsukanov
@kekekeks
Jan 10 2016 13:18
Ehm?
danwalmsley
@danwalmsley
Jan 10 2016 13:30
@SuperJMN project.json is looking to replace visual studio project files
José Manuel Nieto
@SuperJMN
Jan 10 2016 13:32
yes, it's a trend!
like XML was back in "the 00s"
danwalmsley
@danwalmsley
Jan 10 2016 13:33
hahaha yeh
José Manuel Nieto
@SuperJMN
Jan 10 2016 13:38

Is JSON the new XML?

That is what I was referring to!

danwalmsley
@danwalmsley
Jan 10 2016 13:46
iv been working more with json lately , its definately more human readable than xml
Nikita Tsukanov
@kekekeks
Jan 10 2016 13:46
try HOCON
Darnell Williams
@Seeker1437
Jan 10 2016 13:47
magpack :)
...
msgpack
danwalmsley
@danwalmsley
Jan 10 2016 14:08
@grokys I have a ContentPresenter bound to the views datacontext...
<ContentPresenter Content="{Binding DataContext}">
          <ContentPresenter.DataTemplates>
            <DataTemplate DataType="ViewModels:PackageManagerDialogViewModel">
              <Controls:PackageManagerDialog />
            </DataTemplate>
            <DataTemplate DataType="ViewModels:ProjectConfigurationDialogViewModel">
              <Controls:ProjectConfigurationDialog />
            </DataTemplate>
          </ContentPresenter.DataTemplates>
        </ContentPresenter>
depending on they type of the datacontext
it displays 1 form or another
however it doesnt work
even though developer tools shows the data context is selected.
the content remains unset
blob
danwalmsley
@danwalmsley
Jan 10 2016 14:13
is this a bug or am I doing something wrong?
Steven Kirk
@grokys
Jan 10 2016 15:37
Try using ContentControl - ContentPresenter is a little buggy outside templates at the moment
danwalmsley
@danwalmsley
Jan 10 2016 16:30
@grokys thanks will give it a go
hmm contentcontrol doesnt work either!
Adam Davidson
@Arlorean
Jan 10 2016 16:53
I've just added a small fix for Issue #70 the DPI scaling issue. It makes the GUI look great on a 4K screen.
danwalmsley
@danwalmsley
Jan 10 2016 16:53
@Arlorean awesome
Richard Bennett
@dealproc
Jan 10 2016 16:56
so i'm reading through everything, and the one thing i can't seem to see is if you setup the .xaml files in a PCL project, or what the desired setup is for this?
Darnell Williams
@Seeker1437
Jan 10 2016 17:00
I thought we used .paml for that?
It would be in main project
Nikita Tsukanov
@kekekeks
Jan 10 2016 17:00
@Arlorean that won't work
Darnell Williams
@Seeker1437
Jan 10 2016 17:01
Can you explain @kekekeks
Nikita Tsukanov
@kekekeks
Jan 10 2016 17:02
Commented on PR
Darnell Williams
@Seeker1437
Jan 10 2016 17:02
oh
Nikita Tsukanov
@kekekeks
Jan 10 2016 17:02
SnapToDevicePixels handling code breaks things
You'll get black lines at the edges of the window
Darnell Williams
@Seeker1437
Jan 10 2016 17:04
Is there a plauable solution for that?
Nikita Tsukanov
@kekekeks
Jan 10 2016 17:04
Yep, we need to fix layout code
It should somehow be aware of the actual pixel grid
@dealproc
Designer doesn't currently work with class libraries that don't reference Perspex.Desktop, the workaround for that is to manually copy binaries to output directory
We also use .paml file extension instead of .xaml
Richard Bennett
@dealproc
Jan 10 2016 17:05
strange.. can't even try to build a demo project. the visx extension i think is for vs2015?
Nikita Tsukanov
@kekekeks
Jan 10 2016 17:05
Yep
Richard Bennett
@dealproc
Jan 10 2016 17:06
bummer
Nikita Tsukanov
@kekekeks
Jan 10 2016 17:06
You also need VS2015 to build Perspex
It uses C# 6 features
Richard Bennett
@dealproc
Jan 10 2016 17:06
wanted to see what the capabilities are. need to wait for my msdn to come back and then i can play.
Nikita Tsukanov
@kekekeks
Jan 10 2016 17:06
You can use VS Community Edition
It's like VS Professional but free for individual developers and small teams
Richard Bennett
@dealproc
Jan 10 2016 17:07
so what's the story... if i want to build for iOS/Android/Windows... do i use PCL for the perspex stuff, or do i create a straight 4.5.2 dll?
yea, we're on BizSpark.
... at least until Dec.
Darnell Williams
@Seeker1437
Jan 10 2016 17:07
Errm I perfer shared project over PCL
Nikita Tsukanov
@kekekeks
Jan 10 2016 17:08
VS2013 doesn't support creating shared projects
You need an extension to do that
Darnell Williams
@Seeker1437
Jan 10 2016 17:08
but you have the option of the two PCL Profile 7
Or Shared
Oh gottcha
I like some of the improvements in 2015 anyways xD
Richard Bennett
@dealproc
Jan 10 2016 17:10
have they finally gotten the build issue(s) fixed with using PCLs on a build server (have to install visual studio to get the libs)
Steven Kirk
@grokys
Jan 10 2016 18:34
thanks for the PR @Arlorean
unfortunately what kekekeks says is true, we should probably have made this clear in the PR
but we should take this as an opportunity to fix the other issue too
Steven Kirk
@grokys
Jan 10 2016 18:50
@danwalmsley strange, ContentControl should work. If you have the code in git, I will investigate.
danwalmsley
@danwalmsley
Jan 10 2016 19:31
@grokys try this commit
VitalElement/AvalonStudio@b55024d
just run it
then click Tools->Packages
it should show a form in the middle
but its just blank
the relevant file is: ModalDialog.paml
Richard Bennett
@dealproc
Jan 10 2016 22:31
ok, blind question... i'm fighting PCL libs right now. If my end-goal would be to use something like Perspex in a project to make it closer to x-plat, is the investment in the headache overhead vs. just using .netfx 4.5.1 libs worthwhile?
so, like, i'm really drooling over what is possible with Perspex, which is what is prompting this.