These are chat archives for AvaloniaUI/Avalonia

4th
Aug 2016
Andrey Kunchev
@donandren
Aug 04 2016 07:37 UTC
@grokys @danwalmsley #651 found simple reproduction of a issue with virtualized list
Andrey Kunchev
@donandren
Aug 04 2016 08:37 UTC
@grokys found the solution for #651 in PR #652
Steven Kirk
@grokys
Aug 04 2016 09:00 UTC
@donandren thanks! you're getting good at this virtualization stuff! ;)
Andrey Kunchev
@donandren
Aug 04 2016 09:01 UTC
Also found a solution for the horizontal scroll woth vert virtualization bit like a hack but it,s working properly
It could be a help for you to implement it properly
I didn,t wanted to change some base interfaces so i,ve just focused to make it work
Steven Kirk
@grokys
Aug 04 2016 09:04 UTC
ok, thanks. i don't think adding that should be difficult but i was going to wait until after alpha 4
Andrey Kunchev
@donandren
Aug 04 2016 09:05 UTC
It,s up to you i can make pr so you can decide
Steven Kirk
@grokys
Aug 04 2016 09:06 UTC
sure!
Andrey Kunchev
@donandren
Aug 04 2016 11:29 UTC
@grokys solved very strange behavior on 64 bit app, made PR #653
Steven Kirk
@grokys
Aug 04 2016 11:31 UTC
i wonder if the behavior might be due to this:
LPARAM is defined as LONG_PTR, which in 64-bit Windows is a signed, 64-bit value. WPARAM is defined as UINT_PTR, which in 64-bit Windows is an unsigned, 64-bit value.
so could be we have to treat LPARAM and WPARAM differently
Andrey Kunchev
@donandren
Aug 04 2016 11:35 UTC
in the cases for handling mouse events and keyboard events that shouldn't made difference as very probably the high 32 bits are not used
Steven Kirk
@grokys
Aug 04 2016 11:39 UTC
ah!
In C#, you should use IntPtr for LPARAM and UIntPtr for WPARAM.
I didn't even know UIntPtr existed!
Steven Kirk
@grokys
Aug 04 2016 11:43 UTC
yeah i saw that...
ok, well for now i'll just merge your PR
Andrey Kunchev
@donandren
Aug 04 2016 11:45 UTC
thanks
danwalmsley
@danwalmsley
Aug 04 2016 12:07 UTC
@grokys could it be that drop down doesn't have a vertical height limit
when I fill on with 100s of options it just goes off the bottom of the screen
not sure how to limit it, I set maxheight but doesn't work
Steven Kirk
@grokys
Aug 04 2016 12:09 UTC
ah, y eah that might well be a problem - could you add an issue?
Andrey Kunchev
@donandren
Aug 04 2016 12:11 UTC
@danwalmsley I'm using some code like this to limit the height of the dropdown and MaxHeight is working it need to be applied to Popup
    private void UpdateMaxPopupHeight()
    {
        Point topLeft = Popup.PointToScreen(Popup.Bounds.TopLeft) ;

        var maxHeight = TopLevel.PointToScreen(TopLevel.Bounds.BottomRight).Y - topLeft.Y - Bounds.Height;

        Popup.MaxHeight = maxHeight;
    }
danwalmsley
@danwalmsley
Aug 04 2016 12:12 UTC
@donandren thanks for workaround
i'll add an issue
Steven Kirk
@grokys
Aug 04 2016 12:23 UTC
also @danwalmsley DropDown doesn't currently virtualize - do you need it to?
before alpha 4 that is
danwalmsley
@danwalmsley
Aug 04 2016 12:31 UTC
not really
I guess it just contains a listbox
I don't have anything that requires virtualization in drop down
I should have amazing dark theme ready for after Alpha 4 :)
had some awesome ideas for it
Steven Kirk
@grokys
Aug 04 2016 12:33 UTC
ok, well fixed the max drop down height thing
danwalmsley
@danwalmsley
Aug 04 2016 12:33 UTC
perfect thanks for that
Steven Kirk
@grokys
Aug 04 2016 12:33 UTC
looking forward to the dark theme!
danwalmsley
@danwalmsley
Aug 04 2016 12:33 UTC
I'm working towards AvalonStudio Beta1 at the moment
Steven Kirk
@grokys
Aug 04 2016 12:34 UTC
cool!
danwalmsley
@danwalmsley
Aug 04 2016 12:34 UTC
and part of that will include DarkTheme, probably i'll get it done in next 2 - 3 weeks
Steven Kirk
@grokys
Aug 04 2016 12:34 UTC
so does avalonstudio actually work as a full IDE now?
danwalmsley
@danwalmsley
Aug 04 2016 12:34 UTC
for c and c++ yes
c# still has work to do
Steven Kirk
@grokys
Aug 04 2016 12:34 UTC
wow, nice work
danwalmsley
@danwalmsley
Aug 04 2016 12:35 UTC
but I'm using it every day at work for embedded c++ work
and some of our other engineers are using it now
Steven Kirk
@grokys
Aug 04 2016 12:35 UTC
wow, you use it at work?
cool!
that sort of stuff is really exciting for me
danwalmsley
@danwalmsley
Aug 04 2016 12:35 UTC
it has integrated unit testing, and CI (the command line build tools)
well just wait til I get c# working
Steven Kirk
@grokys
Aug 04 2016 12:35 UTC
i never imagined avalonia would actually be usable for writing applications and stuff ;)
danwalmsley
@danwalmsley
Aug 04 2016 12:35 UTC
iv prototyped it and I have a way to make it work
just need time
Steven Kirk
@grokys
Aug 04 2016 12:36 UTC
btw, i've written a draft of the alpha 4 announcement
danwalmsley
@danwalmsley
Aug 04 2016 12:36 UTC
yeh amazing how far you have come
you should be proud
Steven Kirk
@grokys
Aug 04 2016 12:36 UTC
is there anything i've missed/got wrong?
danwalmsley
@danwalmsley
Aug 04 2016 12:36 UTC
taking a look now
it says Alpha 4 of Perspex
Steven Kirk
@grokys
Aug 04 2016 12:37 UTC
ahah doh!
danwalmsley
@danwalmsley
Aug 04 2016 12:37 UTC
still not used to name change ;)
Steven Kirk
@grokys
Aug 04 2016 12:37 UTC
i updated it everywhere else but missed that
danwalmsley
@danwalmsley
Aug 04 2016 12:37 UTC
has anyone updated the designer recently
whenever I use it on my laptop it just flickers
Steven Kirk
@grokys
Aug 04 2016 12:38 UTC
yeah, i did a bit of work on it and submitted a PR
oh, but i've not seen that
danwalmsley
@danwalmsley
Aug 04 2016 12:38 UTC
was anyone aware of that problem?
Steven Kirk
@grokys
Aug 04 2016 12:38 UTC
not that i know of
it works for me
danwalmsley
@danwalmsley
Aug 04 2016 12:38 UTC
my brothers machine was same
might be todo with high dpi enabled screen
not sure
Wiesław Šoltés
@wieslawsoltes
Aug 04 2016 12:39 UTC
@grokys could you mention XamlBehaviors and the work what was done to get them working with attached properties
Steven Kirk
@grokys
Aug 04 2016 12:39 UTC
sure!
anything exactly you want me to say?
Wiesław Šoltés
@wieslawsoltes
Aug 04 2016 12:39 UTC
Just that Avalonia has added Xaml Behaviors support
same as UWP/WPF has
you can add this description: "XAML Behaviors is an easy-to-use means of adding common and reusable interactivity to your Avalonia applications with minimal code. "
Steven Kirk
@grokys
Aug 04 2016 12:41 UTC
ok
added that
Wiesław Šoltés
@wieslawsoltes
Aug 04 2016 12:43 UTC
nice
@grokys Did you mention Skia ?
Steven Kirk
@grokys
Aug 04 2016 12:46 UTC
ah no! has that all been done since the last alpha?
danwalmsley
@danwalmsley
Aug 04 2016 12:49 UTC
yeah skia is definitely new
really hard to remember
I think you split PerspexProperties into Styled, Direct, Dependency, etc
since last alpha
Steven Kirk
@grokys
Aug 04 2016 12:51 UTC
yeah, i was wondering whether to mention that but decided not to
i can't mention everything or it'd be too long ;)
danwalmsley
@danwalmsley
Aug 04 2016 12:53 UTC
true
Steven Kirk
@grokys
Aug 04 2016 12:53 UTC
ok added skia backend sectino
danwalmsley
@danwalmsley
Aug 04 2016 12:53 UTC
and its mainly of interest if your implementing your own controls
Steven Kirk
@grokys
Aug 04 2016 12:54 UTC
yeah, which very few people have done, and if they have they'll be in here ;)
Jared Hester
@cloudRoutine
Aug 04 2016 13:04 UTC
@wieslawsoltes +20 for behaviors :grinning:
Wiesław Šoltés
@wieslawsoltes
Aug 04 2016 13:04 UTC
:)
danwalmsley
@danwalmsley
Aug 04 2016 13:05 UTC
@grokys maybe you should highlight the fact that AvaloniaUI is the only way to bring a WPF / UWP / XAML based application to Windows, Mac and Linux
I don't think there is anything else that supports this
Steven Kirk
@grokys
Aug 04 2016 13:06 UTC
good idea
danwalmsley
@danwalmsley
Aug 04 2016 13:06 UTC
probably worth adding that to the main GitHub page too
I think its not obvious, but that is a huge "selling" point for Avalonia
Steven Kirk
@grokys
Aug 04 2016 13:07 UTC
Avalonia is the only way to bring XAML-based applications to Windows, Mac and Linux (and we have experimental mobile support too!)
sound good?
though tbh i'm wary of "selling" it atm because there's still so much to do!
great... docfx seems to be crashing on building the docs
This message was deleted
man i hate doing releases... so time-consuming
danwalmsley
@danwalmsley
Aug 04 2016 13:24 UTC
I think that sounds great
its pretty obvious we are still in alpha
Steven Kirk
@grokys
Aug 04 2016 15:02 UTC
ok, so if we want to update the docs site before release we're going to have to wait for some fixes for docfx i think
there are multiple problems
that's definitely a product that should be on version 0.2 rather 2.2
Steven Kirk
@grokys
Aug 04 2016 21:02 UTC
testing mono build on bash for windows and getting intermittent test failures there too
including hangs
Wiesław Šoltés
@wieslawsoltes
Aug 04 2016 21:06 UTC
I did manage to build avalonia using bash for windows :)
using latest mono
2016-08-04_23-06-59.png
Steven Kirk
@grokys
Aug 04 2016 21:15 UTC
yep, it builds fine :)
and most of the time the tests pass
i've found passing the -parallel none option seems to help
trying it on travis now
Wiesław Šoltés
@wieslawsoltes
Aug 04 2016 21:16 UTC
you can also try -noappdomain
Steven Kirk
@grokys
Aug 04 2016 21:19 UTC
yeah i tried that too but just -parallel none seemed to have fixed the problem in my brief testing
Wiesław Šoltés
@wieslawsoltes
Aug 04 2016 21:23 UTC
2016-08-04_23-22-56.png
Avalonia running on Bash for Windows :)
Steven Kirk
@grokys
Aug 04 2016 21:23 UTC
wow! i didn't know that would work!
that will make linux dev sooooo much easier for me
Steven Kirk
@grokys
Aug 04 2016 21:24 UTC
ubuntu runs like crap on a VM on this machine
Wiesław Šoltés
@wieslawsoltes
Aug 04 2016 21:24 UTC
and run export DISPLAY=:0
Steven Kirk
@grokys
Aug 04 2016 21:24 UTC
cool!
Wiesław Šoltés
@wieslawsoltes
Aug 04 2016 21:24 UTC
that is all it takes
will try Core2D in moment :)
Wiesław Šoltés
@wieslawsoltes
Aug 04 2016 21:31 UTC
2016-08-04_23-31-05.png
Core2D running on Bash for Windows using Avalonia :)
Wiesław Šoltés
@wieslawsoltes
Aug 04 2016 21:43 UTC
@grokys MonoDevelop also runs on Bash for Windows :)
Steven Kirk
@grokys
Aug 04 2016 21:46 UTC
nice!
danwalmsley
@danwalmsley
Aug 04 2016 22:00 UTC
@wieslawsoltes whats the steps I need to take to get this to work?
install mono. then vcxsrv?
or there are more steps?
Wiesław Šoltés
@wieslawsoltes
Aug 04 2016 22:00 UTC
export DISPLAY=:0
in bash for windows
danwalmsley
@danwalmsley
Aug 04 2016 22:01 UTC
wow
ok I'm going to try it now
Wiesław Šoltés
@wieslawsoltes
Aug 04 2016 22:01 UTC
use latest mono
danwalmsley
@danwalmsley
Aug 04 2016 22:03 UTC
thnx
going to get Avalon studio working!!!
this is major
!
whats the purpose of VcXsrv?
Steven Kirk
@grokys
Aug 04 2016 22:03 UTC
tests seem to be passing on linux now - i also added a bash script to run the unit tests automatically
Wiesław Šoltés
@wieslawsoltes
Aug 04 2016 22:04 UTC
@danwalmsley to get GUI working
Steven Kirk
@grokys
Aug 04 2016 22:04 UTC
@danwalmsley it's an X server for windows
danwalmsley
@danwalmsley
Aug 04 2016 22:04 UTC
I see ok right got to try this :)
Wiesław Šoltés
@wieslawsoltes
Aug 04 2016 22:04 UTC
I tested firefox, monodevelop, Avalonia XamlTestApplication and all run
danwalmsley
@danwalmsley
Aug 04 2016 22:05 UTC
and there is no performance cost?
Steven Kirk
@grokys
Aug 04 2016 22:05 UTC
i'm sure there will be
but hopefully less than running a VM
Wiesław Šoltés
@wieslawsoltes
Aug 04 2016 22:06 UTC
I think much better perf than VM
danwalmsley
@danwalmsley
Aug 04 2016 22:06 UTC
awesome
Wiesław Šoltés
@wieslawsoltes
Aug 04 2016 22:06 UTC
I did try running YT video and seems to be smooth :)
Steven Kirk
@grokys
Aug 04 2016 22:06 UTC
strange that Binding_To_Direct_Property_Gets_Collected_When_Completed still seems to be failing on osx but not on linux
danwalmsley
@danwalmsley
Aug 04 2016 22:08 UTC
is skia working on Ubuntu now?
or is it still gtk?
Wiesław Šoltés
@wieslawsoltes
Aug 04 2016 22:08 UTC
I think you need to build Skia yourself on Linux
danwalmsley
@danwalmsley
Aug 04 2016 22:08 UTC
or bash for windows ;)
did you have to build on mono
?
or just run the binaries from visual studio?
Wiesław Šoltés
@wieslawsoltes
Aug 04 2016 22:11 UTC
I did build on mono
I have build system made for linux/mono
danwalmsley
@danwalmsley
Aug 04 2016 22:33 UTC
@wieslawsoltes did you have this on Ubuntu?
The 'System.Reactive 3.0.0' package requires NuGet client version '2.12' or above, but the current NuGet version is '2.8.7.0'.
Steven Kirk
@grokys
Aug 04 2016 22:54 UTC
danwalmsley
@danwalmsley
Aug 04 2016 22:56 UTC
thanks
Steven Kirk
@grokys
Aug 04 2016 23:20 UTC
ok, so on my fixes/656-travis-test-failures it seems linux builds are always passing
still have a failing leak test on osx though - it's the same one that i fixed for linux#
strange that it fixed it there but not in osx
AvaloniaUI/Avalonia#657