These are chat archives for AvaloniaUI/Avalonia

15th
May 2018
Peter Worden
@Sn3akyP3t3_gitlab
May 15 2018 00:02
Also needed
using Avalonia.Interactivity;
Its functional again! Awesome!
image.png
I meant to have a question before that photo. Do you perhaps know a workaround for this behavior?
That's from a TextBox
<TextBox Name="Input" Grid.Column="0" HorizontalAlignment="Stretch" AcceptsReturn="True" Margin="10,32,5,50" TextWrapping="Wrap" VerticalAlignment="Stretch" Text=""/>
Jeremy Koritzinsky
@jkoritzinsky
May 15 2018 00:16
Hmm. That might actually be a bug. We might already have an open issue for it but I'm not sure. If we don't have an open one, make an issue and we'll take a look!
danwalmsley
@danwalmsley
May 15 2018 08:41
@RayyanTahir we now have passwordchar on TextBox 😀
Rayyan Tahir
@RayyanTahir
May 15 2018 09:09
@danwalmsley FINALLY! :D
I took the latest from master, and ran your script, but now i'm getting an exception at startup: Could not load file or assembly 'Avalonia.Controls, Version=0.6.0.0, Culture=neutral, PublicKeyToken=null'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
danwalmsley
@danwalmsley
May 15 2018 09:11
@RayyanTahir do you need to debug into avalonia code? because it may be easier to use the nightly nuget feed?
@grokys did anything happen on this? AvaloniaUI/Avalonia#1576
I will give the readonly structs on a test shortly
Steven Kirk
@grokys
May 15 2018 09:13
not had time to do that yet, all my time is currently spent reviewing PRs!
Rayyan Tahir
@RayyanTahir
May 15 2018 09:17
@danwalmsley are nightly builds automatically updated based on latest code of master branch?
danwalmsley
@danwalmsley
May 15 2018 09:18
yes
Rayyan Tahir
@RayyanTahir
May 15 2018 09:18
Right, that'll work for me, thanks
danwalmsley
@danwalmsley
May 15 2018 09:18
whenever something is pushed to master they are automatically built
Rayyan Tahir
@RayyanTahir
May 15 2018 09:18
Sounds good
danwalmsley
@danwalmsley
May 15 2018 09:23
you only need the script if you want to debug avalonias code
Rayyan Tahir
@RayyanTahir
May 15 2018 09:24
Right
danwalmsley
@danwalmsley
May 15 2018 09:37
@grokys id like to submit a PR for this AvaloniaUI/Avalonia#1374, should we rename the property (StackPanel.Gap to StackPanel.Spacing) or should we add an alias?
if the latter how do we do that?
Steven Kirk
@grokys
May 15 2018 09:46
lets just rename it
now's the time
Nikita Tsukanov
@kekekeks
May 15 2018 09:54
There is that XAML compatibility thingy
That should allow to remap property names
We could probably do that in our xaml context implementation though
Wiesław Šoltés
@wieslawsoltes
May 15 2018 10:14
This is looking like a nice tool https://github.com/Microsoft/Rapid-XAML-Toolkit
danwalmsley
@danwalmsley
May 15 2018 10:22
@kekekeks skia natives work on ubuntu 18.04 here just fine
although perhaps you can push this change directly to master? https://github.com/AvaloniaUI/Avalonia/pull/1586/files#diff-fa39f60e21f05eae6d51b01db36b72baR313
just that line since text layout is messed up now
danwalmsley
@danwalmsley
May 15 2018 10:35
@kekekeks id like to also resolve this AvaloniaUI/Avalonia#1407 today
if you can point me in the right direction I can probably do it
Rayyan Tahir
@RayyanTahir
May 15 2018 10:38
@danwalmsley is there an Avalonia way of doing this: PresentationSource.FromVisual(this).CompositionTarget.TransformToDevice.M11
danwalmsley
@danwalmsley
May 15 2018 10:38
converting to screen coordinates?
Rayyan Tahir
@RayyanTahir
May 15 2018 10:38
Yes, to make sure coordinates are accurate for different screen sizes
danwalmsley
@danwalmsley
May 15 2018 10:39
yes there is, i'll need to look it up though
give me a few minutes
Rayyan Tahir
@RayyanTahir
May 15 2018 10:39
Sure, thanks
danwalmsley
@danwalmsley
May 15 2018 10:53
you can use PointToScreen
like this
to transform individual points, does that work for you?
or do you need an actual transform?
Rayyan Tahir
@RayyanTahir
May 15 2018 11:33
@danwalmsley With the click of a button I basically open a child window over the parent window. So when I move the parent window, I need the child window to move along with it, but needs to be kept next to the button that opened it. Using simple PointToScreen does help for a resolution (say 1366 x 768), but won't work for 1920 x 1080. For this purpose (in WPF) I was using PresentationSource.FromVisual(this).CompositionTarget.TransformToDevice.M11 to find the factor with which i can multiply and get the same result for different resolutions
Manuel
@CommonGuy
May 15 2018 11:35
Hi there, great work! As a relatively new contributor, what issues should I target to solve? "Up for grabs" or just the easier ones from the current milestone?
Also, there are some outdated/closeable issues I found while looking through the issues list:
AvaloniaUI/Avalonia#1533
AvaloniaUI/Avalonia#1454
AvaloniaUI/Avalonia#1445
AvaloniaUI/Avalonia#1431
AvaloniaUI/Avalonia#1151
AvaloniaUI/Avalonia#857
AvaloniaUI/Avalonia#437
Nikita Tsukanov
@kekekeks
May 15 2018 12:19
@danwalmsley https://github.com/AvaloniaUI/Avalonia/blob/master/src/Shared/SharedAssemblyInfo.cs#L17 - this needs to be frozen for the particular assembly
We can add a conditional compilation symbol to exclude assembly version from the build
And set it manually
when needed
danwalmsley
@danwalmsley
May 15 2018 13:09
hmmm @grokys @kekekeks has something changed in recent merges that could cause this error?
dotnet AvalonStudio.dll
Could not load file or assembly 'Avalonia.Controls, Version=0.6.2.0, Culture=neutral, PublicKeyToken=null'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
   at AvalonStudio.App.BuildAvaloniaApp()
   at AvalonStudio.App.Main(String[] args) in C:\Users\dan\repos\AvalonStudio\AvalonStudio\AvalonStudio\App.paml.cs:line 35
PS C:\Users\dan\repos\AvalonStudio\AvalonStudio\AvalonStudio\bin\Debug\netcoreapp2.0>
Steven Kirk
@grokys
May 15 2018 14:04
hmm @danwalmsley could it have been AvaloniaUI/Avalonia#1549 ?
Steven Kirk
@grokys
May 15 2018 14:51
try doing a git clean -xdff and rebuilding?
Nikita Tsukanov
@kekekeks
May 15 2018 16:09
I guess that's what we get for "works on my machine ©" when dealing with tests ;)
zii-dmg
@zii-dmg
May 15 2018 17:32
Last CI build "artifacts\zip\ControlCatalog.Desktop-0.6.2-build5141-beta.zip" is 22 bytes, empty archive.
zii-dmg
@zii-dmg
May 15 2018 17:51
RadioButtons.png
Last master, Windows 7, no circles on RadioButtons
danwalmsley
@danwalmsley
May 15 2018 18:04
Last master, Windows 7, no circles on RadioButtons
that could be related to the PropertyOverhaul issue where some properties don't get set? @grokys perhaps
try doing a git clean -xdff and rebuilding?
didn't work
i'll try reverting the csproj tidy and see if it helps
danwalmsley
@danwalmsley
May 15 2018 18:28
@grokys @jmacato reverting the csproj tidy PR fixes the issue for me
@wieslawsoltes that RapidXaml toolkit looks amazing
if only I had the time to port it to avalon studio
danwalmsley
@danwalmsley
May 15 2018 18:33
that would really help develop apps very quickly
eschneider999
@eschneider999
May 15 2018 21:23
FYI; you quick start guide link on the following page is broke : http://avaloniaui.net/
eschneider999
@eschneider999
May 15 2018 21:32
has anyone here done win-forms control development?
eschneider999
@eschneider999
May 15 2018 21:43
Anyway; I have a multi-column user drawn list control I wrote on win-forms, was wondering on thought of converting to this platform. http://schneidersoft.com/Products/Arthropods/VisualList/VisualList.aspx
Steven Kirk
@grokys
May 15 2018 21:43
ohhh crap - i've broken master?
I guess that's what we get for "works on my machine ©" when dealing with tests ;)
yeah... mea culpa
thing is everything else passed
Jeremy Koritzinsky
@jkoritzinsky
May 15 2018 21:44
And this is why we really should add back code coverage metrics haha
except artifacts\zip\ControlCatalog.Desktop-0.6.2-build5141-beta.zip (22 bytes)
yeah, that doesn't look right
Steven Kirk
@grokys
May 15 2018 21:51
looks like the output path has changed from bin\Release\ to bin\Release\net461
that doesn't explain @danwalmsley's problem though
hmm seems the assembly version info isn't being set
eschneider999
@eschneider999
May 15 2018 21:59
I also have a tree control which shares most of the code of the list, so could get two controls out of it.
Steven Kirk
@grokys
May 15 2018 22:16
strange - it's definitely picking up directory.build.props and sharedversion.props as it's setting the <LangVersion> correctly
@eschneider999 avalonia isn't very similar to winforms so it might not be straightforward
Steven Kirk
@grokys
May 15 2018 23:37
ok AvaloniaUI/Avalonia#1588 should fix master, hopefully