These are chat archives for AvaloniaUI/Avalonia

21st
Nov 2018
Mehmet Akbulut
@mehmetakbulut
Nov 21 2018 04:08
hey guys, i am evaluating avalonia for a project and was unable to find a control similar to PropertyGrid from WPF/Winforms. would anyone have suggestions or will we have to port/implement from scratch?
Jumar Macato
@jmacato
Nov 21 2018 05:21
@mehmetakbulut perhaps our DataGrid control can be converted to that? But the simplest approach would be to just start from scratch imho
Benedikt Schroeder
@Gillibald
Nov 21 2018 08:56
I usually avoid using a propertygrid and define everything from scratch. There should be open source solutions that could be ported.
Nikita Tsukanov
@kekekeks
Nov 21 2018 13:11
DataGrid with grouping should be OK as property grid, I think
Will require just a custom view model
Rick Martin
@rickpmartin
Nov 21 2018 19:29
Hi all, really amazing work you’re doing! I’m trying to build the Avalonia samples project on mac os x and ran into this error when doing a “dotnet run”. Any tips for resolving it?

/Users/rmartin/.nuget/packages/sharpgentools.sdk/1.1.2/build/SharpGenTools.Sdk.targets(162,5): Process error CX0003: Unable to generate XML file with castxml [/Users/rmartin/Source/AvaloniaUI/Avalonia/src/Avalonia.Native/obj/Debug/netstandard2.0/SharpGen/SharpGen-MSBuild.xml]. Check previous errors. [/Users/rmartin/Source/AvaloniaUI/Avalonia/src/Avalonia.Native/Avalonia.Native.csproj]
Jeremy Koritzinsky
@jkoritzinsky
Nov 21 2018 19:34
Do you have castxml installed on your machine?
Rick Martin
@rickpmartin
Nov 21 2018 19:37
i suppose not? i was following the steps outlined here:
http://avaloniaui.net/contributing/build
Jeremy Koritzinsky
@jkoritzinsky
Nov 21 2018 19:37
Yeah we need to update that.
Rick Martin
@rickpmartin
Nov 21 2018 19:38
i’d be happy to help with that, i know how quickly these docs can get out of date
are there recommended steps for installing castxml?
Jeremy Koritzinsky
@jkoritzinsky
Nov 21 2018 19:39
That’d be great! I’d suggest taking a look at the Azure-pipelines.yaml file to see the dependencies we have. If there are any missing (probably just castxml), then you can add them to the docs
Rick Martin
@rickpmartin
Nov 21 2018 19:39
fantastic! ok i’ll take a look
Jeremy Koritzinsky
@jkoritzinsky
Nov 21 2018 19:39
On Mac via homebrew
Rick Martin
@rickpmartin
Nov 21 2018 19:40
ok perfect
Rick Martin
@rickpmartin
Nov 21 2018 19:51
ok the first error is fixed, but now i get a more generic error about unable to load libAvaloniaNative:
Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'libAvaloniaNative': The specified module or one of its dependencies could not be found.
 (Exception from HRESULT: 0x8007007E)
   at Avalonia.Native.AvaloniaNativePlatform.CreateAvaloniaNative()
   at Avalonia.Native.AvaloniaNativePlatform.Initialize(Action`1 configure) in /Users/rmartin/Source/AvaloniaUI/Avalonia/src/Avalonia.Native/AvaloniaNativePlatform.cs:line 52
   at Avalonia.AvaloniaNativePlatformExtensions.<>c__DisplayClass0_0`1.<UseAvaloniaNative>b__0() in /Users/rmartin/Source/AvaloniaUI/Avalonia/src/Avalonia.Native/AvaloniaNativePlatformExtensions.cs:line 19
   at Avalonia.Controls.AppBuilderBase`1.Setup() in /Users/rmartin/Source/AvaloniaUI/Avalonia/src/Avalonia.Controls/AppBuilderBase.cs:line 276
   at Avalonia.Controls.AppBuilderBase`1.Start[TMainWindow](Func`1 dataContextProvider) in /Users/rmartin/Source/AvaloniaUI/Avalonia/src/Avalonia.Controls/AppBuilderBase.cs:line 122
   at ControlCatalog.NetCore.Program.Main(String[] args) in /Users/rmartin/Source/AvaloniaUI/Avalonia/samples/ControlCatalog.NetCore/Program.cs:line 33
i see in the azure-pipelines.yml file that cake is used to build the target “Azure-OSX”, should i also be using cake to build?
Jeremy Koritzinsky
@jkoritzinsky
Nov 21 2018 20:08
You have to build the native library. That currently builds via XCode.
Our Mac development experience is a little funky nowadays since we added our new Mac backend. As you’ve discovered
Rick Martin
@rickpmartin
Nov 21 2018 20:09
well i’m happy to be a guinea pig :)
Rick Martin
@rickpmartin
Nov 21 2018 20:50
Ok, I’m now able to build the project using cake with all tests passing. I’m not sure if there are scripts for getting the native library built, but these are the steps I’ve done so far (the commands are pulled straight out of azure-pipelines.yml):
  1. brew install castxml
  2. dotnet tool install -g Cake.Tool --version 0.30.0
  3. build native library:
    a. build xcode project: native/Avalonia.Native/src/OSX/Avalonia.Native.OSX.xcodeproj
    b. copy built libAvalonia.Native.OSX.dylib to Build/Products/Release/libAvalonia.Native.OSX.dylib
  4. dotnet cake build.cake -target="Azure-OSX" -configuration=“Release"
Running dotnet run in samples/ControlCatalog.NetCore still results in the same error as before though
Rick Martin
@rickpmartin
Nov 21 2018 21:04
I got the samples project to run by copying libAvalonia.Native.OSX.dylibto samples/ControlCatalog.NetCore/bin/Debug/netcoreapp2.0/libAvaloniaNative.dylib and then dotnet run
:smile:
Jeremy Koritzinsky
@jkoritzinsky
Nov 21 2018 21:09
👍 Awesome!
Rick Martin
@rickpmartin
Nov 21 2018 21:12
thanks for the help :bow:
Jason Taylor
@JTtheGeek
Nov 21 2018 21:25
Hi guys, very new to avalonia, wondering if there is a roadmap somewhere to look at, specifically wondering about the ability to play back video in avalonia