These are chat archives for AvaloniaUI/Avalonia

22nd
Feb 2015
José Manuel Nieto
@SuperJMN
Feb 22 2015 00:01
sorry, my fiancée came
it's unbelievable, but I have a fiancée!
even programming hard
It don't believe it, either :)
Well, after a lot of work, I implemented DI and Ambient Contexts across all my branch of Perspex
it looks really extensible and maintenable
Maybe I can make the showcase application I told you yesterday
I think I already have the "features" I need to do it
José Manuel Nieto
@SuperJMN
Feb 22 2015 16:27
hey! I'm trying to port the code and found a major impediment :(
no ShowDialog
the application uses one to ask the user for an API key
José Manuel Nieto
@SuperJMN
Feb 22 2015 16:41
also, there is no Shutdown method
I will have to think a bit to go around those
José Manuel Nieto
@SuperJMN
Feb 22 2015 22:32
Woohoooo!!!
I've managed to make it work!
Capture.PNG
I've ported the application!
The layout is horrible, I know
but you type the query and it shows the search results just like the WPF application
Steven Kirk
@grokys
Feb 22 2015 22:37
Awesome! What problems did you come across? Just the lack of dialog and shutdown?
José Manuel Nieto
@SuperJMN
Feb 22 2015 22:38
Untitled.png
This is the look in WPF
  1. The lack of ShowDialog (the application asks with a dialog for the API key the first time)
  2. The lack of Application.ShutDown (the application exits explicitly) (Current.ShutdownMode = ShutdownMode.OnExplicitShutdown)
  3. No hyperlinks
This message was deleted
but most importantly:
the second search result, that involves updating the Items property in the ListBox, throws an exception
Steven Kirk
@grokys
Feb 22 2015 22:43
Ok I will take a look at that as soon as possible
Is the project on github?
Things like this are really useful!
José Manuel Nieto
@SuperJMN
Feb 22 2015 22:43
Untitled2.png
it's absolutely internal
Steven Kirk
@grokys
Feb 22 2015 22:44
I'm quite pleased you can already nearly make a simple application!
José Manuel Nieto
@SuperJMN
Feb 22 2015 22:44
but yes, it's on GitHub
Steven Kirk
@grokys
Feb 22 2015 22:44
Ok that looks like it should be simple to fix
José Manuel Nieto
@SuperJMN
Feb 22 2015 22:44
under my branch called ShowCase
With a friend of me, we're trying to set up a NuGet feed
whoops, I've hidden the exact exception in the snapshot
José Manuel Nieto
@SuperJMN
Feb 22 2015 22:53
the exception is KeyNotFoundException, by the way

"A first chance exception of type 'System.Collections.Generic.KeyNotFoundException' occurred in mscorlib.dll

Additional information: The given key was not present in the dictionary."

after updating ListBox.Items
(for the 2nd time)