These are chat archives for AvaloniaUI/Avalonia

15th
Aug 2016
Tim Boyle
@Timboski
Aug 15 2016 08:29 UTC
Hi guys. Loving the framework but have a couple of issues since porting from Perspex to Avaolnia:
  1. When running in Linux (Ubuntu using Mono), the application freezes if the window is resized (using the mouse).
  1. I need to have a TabControl where some items are disabled. I was doing this in Perspex using the IsEnabled and Foreground properties. This no longer works, these seem now to affect the Pages rather than the TabStrip elements.
James Walmsley
@jameswalmsley
Aug 15 2016 08:48 UTC
Got Skia integration working on Linux:
blob
You can see the few lines of code I used to get the SkiaBitmap data into a Pixbuf, I think its even a zero-copy.
I'll clean the code up with @danwalmsley and create a pull-request.
Some of the menu's on the XamlTestApplication cause a crash (Lists) but not sure why... will investigate if this is anything related to the Skia stuff.
danwalmsley
@danwalmsley
Aug 15 2016 08:54 UTC
@jameswalmsley awesome!! open a WIP PR and we can do a tidy up ;)
Darnell Williams
@Seeker1437
Aug 15 2016 10:17 UTC
epic!
soerendd
@soerendd
Aug 15 2016 11:33 UTC
Hi guys, impressive framework. My question is if you see a chance to run application on the raspberry pi? It would allow me to develop and debug my app in VS and deploy it to the raspi. Next question would be that i need to run the UI on the 7" tft display and not on the hdmi port. Thanks
danwalmsley
@danwalmsley
Aug 15 2016 11:33 UTC
@soerendd hi, it has been tried on raspberry pi a while a go, and ran very very slowly
however I don't think it has been tried on newer raspberry pi 3, which may be fast enough
the 7" tft instead of HDMI would I guess be an issue with configuring the pi?
soerendd
@soerendd
Aug 15 2016 11:35 UTC
@danwalmsley Do you by any chance know what needs to be setup and what needs to be deployed to the raspi?
danwalmsley
@danwalmsley
Aug 15 2016 11:36 UTC
you need to install mono
so you have to have probably Ubuntu running firsty
so yeh
1) install latest ubuntu
2) install mono
soerendd
@soerendd
Aug 15 2016 11:36 UTC
@danwalmsley as far as i understand the application decides which physical output it wants to connect to
danwalmsley
@danwalmsley
Aug 15 2016 11:37 UTC
hmmm I'm not sure, I guess I would try and get it to run on normal HDMI first
and then see if the performance suits your needs
and we can then help you to get it to show on tft
you can the run XamlTestApplication
soerendd
@soerendd
Aug 15 2016 11:38 UTC
Ok thanks. I dont need much animation. I would like to build a remote control for kodi because the web front end is not sufficient
danwalmsley
@danwalmsley
Aug 15 2016 11:38 UTC
the slowness was like 20minutes just for main window to come up
but was a long time ago
soerendd
@soerendd
Aug 15 2016 11:38 UTC
:smile:
danwalmsley
@danwalmsley
Aug 15 2016 11:38 UTC
and maybe there has been a lot of optimization since then
I will be really interested to hear your results
nice project by the way
soerendd
@soerendd
Aug 15 2016 11:39 UTC
is this platform here a good place to report the results?
danwalmsley
@danwalmsley
Aug 15 2016 11:39 UTC
yes
soerendd
@soerendd
Aug 15 2016 11:41 UTC
Yes i'm much more comfortable with C# than with c++. If i need to do it in c++ i would use QT. There is also a nice UI library for python (kivy). But C# and especially Avalonia is what seems to be the best for me
danwalmsley
@danwalmsley
Aug 15 2016 11:41 UTC
yeh I completely agree, if this works you can have your UI exactly as you want it
and will be much easier to develop
soerendd
@soerendd
Aug 15 2016 11:42 UTC
One thing what comes to mind is the touch support. Maybe i can get it working and maybe i can donate some code than. But time will show ;)
danwalmsley
@danwalmsley
Aug 15 2016 11:43 UTC
yeh, I'm not sure if touch is implemented I think it is.. see how it goes
at least basic touch support is there
great thing is you can develop your app on windows, test it
then deploy to Linux or mac
and they should look identical
soerendd
@soerendd
Aug 15 2016 11:44 UTC
yeah that would be sufficient. i dont need fancy multi touch. For that reason i like this framework. The bindings and styling seem to be also superior to wpf
danwalmsley
@danwalmsley
Aug 15 2016 11:45 UTC
yeah styling system is really neat, and things like touch, etc are getting better all the time
soerendd
@soerendd
Aug 15 2016 11:46 UTC
do you know what ui interface is used when running the application under linux?
danwalmsley
@danwalmsley
Aug 15 2016 11:46 UTC
which Pi are you using?
either Gtk and Cairo or Gtk and Skia
soerendd
@soerendd
Aug 15 2016 11:46 UTC
I have 3 pi's. one pi 1B and two pi 3
danwalmsley
@danwalmsley
Aug 15 2016 11:46 UTC
(well skia support for Linux is currently waiting in a PR)
I don't think its likely to run on 1B
but be nice to see what happens anyway
but Pi3 is likely to work
soerendd
@soerendd
Aug 15 2016 11:48 UTC
no the pi 1B will be used for something else. Maybe a small weather station. One of the pi 3 will be used for libreelec (kodi) and the other pi 3 will be used to control the others
soerendd
@soerendd
Aug 15 2016 11:58 UTC
Many thanks for the moment and bye
danwalmsley
@danwalmsley
Aug 15 2016 12:11 UTC
@soerendd have you heard of osmc
I run that on a Pi3 at home for my Kodi media center
Darnell Williams
@Seeker1437
Aug 15 2016 12:11 UTC
I ran it o raspberry pi
danwalmsley
@danwalmsley
Aug 15 2016 12:11 UTC
couldn't recommend it enough
@Seeker1437 pi 1, 2 or 3?
Darnell Williams
@Seeker1437
Aug 15 2016 12:11 UTC
It doesn't run well on Raspberry pi right now, I do believe that one Avaloia optimizations are in place it can be done
danwalmsley
@danwalmsley
Aug 15 2016 12:12 UTC
@Seeker1437 there are 3 pis
Darnell Williams
@Seeker1437
Aug 15 2016 12:12 UTC
especially sense gtk and skin are generally suck for low end devices, I blame omnixaml for the latency truly
danwalmsley
@danwalmsley
Aug 15 2016 12:12 UTC
and the 2 and 3 are infinitely more powerfull than the first one
Darnell Williams
@Seeker1437
Aug 15 2016 12:12 UTC
1 and 2
danwalmsley
@danwalmsley
Aug 15 2016 12:12 UTC
ok so pi 3 might have a chance
Darnell Williams
@Seeker1437
Aug 15 2016 12:13 UTC
Yeah I'm waiting on the 3 to come in :D
Im such a nerd xD
now I run a smaller application on the pi 2
Let me say this
Unless the pi 3 is 2 ghz
I doubt it will be useable
I had a smaller simpler application it literally took 25 minutes to show on the screen
(though it was Perspex alpha 2)
danwalmsley
@danwalmsley
Aug 15 2016 12:15 UTC
I think its generally about 10x faster than pi2
yeh
Darnell Williams
@Seeker1437
Aug 15 2016 12:15 UTC
Yeah Im excited!
m order 5 of the 3
danwalmsley
@danwalmsley
Aug 15 2016 12:15 UTC
I think it might work ok once we support .net core
and compile to native code
Darnell Williams
@Seeker1437
Aug 15 2016 12:16 UTC
I hope to build my IoT integration for my new house :D
danwalmsley
@danwalmsley
Aug 15 2016 12:16 UTC
that will be a huge performance boost
awesome
Darnell Williams
@Seeker1437
Aug 15 2016 12:16 UTC
Yeah the big thing is the Avalonia needs to support net core
soerendd
@soerendd
Aug 15 2016 12:18 UTC
what are the stoppers currently to support net core?
Darnell Williams
@Seeker1437
Aug 15 2016 12:18 UTC
dependancies
danwalmsley
@danwalmsley
Aug 15 2016 12:18 UTC
progress is being made
AvaloniaUI/Avalonia#620
soerendd
@soerendd
Aug 15 2016 12:18 UTC
i love projects with progress :)
Darnell Williams
@Seeker1437
Aug 15 2016 12:18 UTC
@danwalmsley I tried making a .net core application
The only thing that is weird to me is deployment
I really really hope the project is not required to run them assemblies
docs say dotnet run path/to/program is supposed to run that assembly, but it doesn't run without the project.json
But it's really cool!
I have an application I want to make net core ready but idk the alternative to app domains xD
soerendd
@soerendd
Aug 15 2016 13:38 UTC
An other idea from me is to use Windows 10 IoT. Can Windows 10 IoT run Avalonia projects? What do you think?
Jeremy Koritzinsky
@jkoritzinsky
Aug 15 2016 14:14 UTC
We need to build a UWP windowing system and then it can run on UWP
Which includes Win 10 IoT
Ethan Smith
@ethanhs
Aug 15 2016 15:04 UTC
^ :+1:
danwalmsley
@danwalmsley
Aug 15 2016 19:34 UTC
in order for us to support custom fonts, would something need to be added to avalonia?
danwalmsley
@danwalmsley
Aug 15 2016 19:42 UTC
or does it rely on the application deploying fonts used before hand?
@wieslawsoltes what did you do on Core2d font wise?
Wiesław Šoltés
@wieslawsoltes
Aug 15 2016 20:00 UTC
@danwalmsley I depend on fonts being installed system wide.
danwalmsley
@danwalmsley
Aug 15 2016 20:00 UTC
if I wanted to guarantee my fonts look exactly the same, do you think the fonts should get deployed or be embedded into the application?
Wiesław Šoltés
@wieslawsoltes
Aug 15 2016 20:03 UTC
I did not consider this options, but would opt for deployment, make it easier for user to customize
danwalmsley
@danwalmsley
Aug 15 2016 20:03 UTC
sure
so when I make an installer, have installer load fonts onto user system if they don't already exist
ok cool
Wiesław Šoltés
@wieslawsoltes
Aug 15 2016 20:04 UTC
or in app folder
danwalmsley
@danwalmsley
Aug 15 2016 20:04 UTC
ok, if they were in the appfolder, I don't know how Avalonia would be able to use them is all
Wiesław Šoltés
@wieslawsoltes
Aug 15 2016 20:23 UTC
@danwalmsley In skia there is avaibale SKTypeface.FromFile
not sure about other