These are chat archives for AvaloniaUI/Avalonia

5th
Dec 2015
BTW, do we have some kind of DependencyProperty.UnsetValue?
José Manuel Nieto
@SuperJMN
Dec 05 2015 10:56 UTC

https://github.com/SuperJMN/OmniXAML/commit/cb9d3b1f052da88b50a6efb57fc0e98da6083388#diff-a7e99ad1d48bbda3a4814d8ae4f00009R53

@SuperJMN what happens if property type is int?

@kekekeks It will throw deliberately. You shouldn't be assigning null to a type that doesn't accept null :)

I could wrap it into another exception to make it more explicit, but I don't think it's avoidable.
what do you do if you receive null and you have to assign it to an int? :S
José Manuel Nieto
@SuperJMN
Dec 05 2015 11:19 UTC
Super Perspex Fighter Alpha 3
great title!
featuring Akuma, Ryu and Agapornius
Wiesław Šoltés
@wieslawsoltes
Dec 05 2015 12:35 UTC
Yeah, but "the number of devices it tested was not sufficient to make statistically significant comparisons between individual smartphones"
Darnell Williams
@Seeker1437
Dec 05 2015 12:52 UTC
@kekekeks @wieslawsoltes Yeah, I can attest to this. I had the Samsung Galaxy S 4G as my first ever phone. It could run faster, sounded nicer, was root and had wonder battery life compare tot he Galaxy S 3 which was my second phone ever.
I wish I never gave that thing to a family friend. I did everything I could ever want. It would automatically boot for me if I turned off to charge so I could still hear my alarm.... all the fun feature that don't exist anymore (no noar pwah)
Steven Kirk
@grokys
Dec 05 2015 13:09 UTC
looking at your changes now @donandren - interesting
so Observable.Never<bool>() causes a leak even if it's followed by an Until?
Darnell Williams
@Seeker1437
Dec 05 2015 13:13 UTC
@grokys I don't think FormattedText is being Disposed properly. Not that I know how to tell, but in AvalonStudio, using a foreach loop should dispose of FormattedText right? Same for the using statement?
private void RenderText(DrawingContext context, DocumentLine line)
{
    using (var formattedText = new FormattedText(TextDocument.GetText(line.Offset, line.EndOffset - line.Offset), FontFamily, FontSize, FontStyle.Normal, TextAlignment.Left, FontWeight.Normal))
    {
        foreach (var lineTransformer in DocumentLineTransformers)
        {
            lineTransformer.ColorizeLine(line, formattedText);
        }

        context.DrawText(Brushes.WhiteSmoke, VisualLineGeometryBuilder.GetTextPosition(this, line.Offset).TopLeft, formattedText);
    }
}
Kevin
@KeKl
Dec 05 2015 13:17 UTC
Created prism for perspex: https://github.com/KeKl/Prism
Darnell Williams
@Seeker1437
Dec 05 2015 13:17 UTC
:D
Darnell Williams
@Seeker1437
Dec 05 2015 13:23 UTC
ALready looking at the source
Darnell Williams
@Seeker1437
Dec 05 2015 13:31 UTC
@grokys weird nevermind, it is fine now. Maybe I had a bad build before
Steven Kirk
@grokys
Dec 05 2015 13:36 UTC
@KeKl awesome! thanks
Andrey Kunchev
@donandren
Dec 05 2015 13:39 UTC

@grokys

so Observable.Never<bool>() causes a leak even if it's followed by an Until? yes, but the problem can be also that event for detaching is not raised or somehting else

Steven Kirk
@grokys
Dec 05 2015 13:39 UTC
ok, we need some tests to check for these things then i think
Kevin
@KeKl
Dec 05 2015 14:20 UTC
Yeah, but i have to work on it a little bit :-)
Andrey Kunchev
@donandren
Dec 05 2015 15:44 UTC
@kekekeks done with the ios text support, there is PR
Nikita Tsukanov
@kekekeks
Dec 05 2015 16:01 UTC
We need to expose some API for on-screen keyboard management
Why do you need scale there?
On iOS touch events are already scaled
Nikita Tsukanov
@kekekeks
Dec 05 2015 16:08 UTC
Anyway, looks good to me, merged
Darnell Williams
@Seeker1437
Dec 05 2015 16:39 UTC
@kekekeks I am having problems being able to test my edits for the extension, VS refuses to build the extension, I think it's because of the sdk update.
José Manuel Nieto
@SuperJMN
Dec 05 2015 17:12 UTC
hey @kekekeks ! I've seen you've updated the VS extension :D
do you think it's close to implement the line/pos error info?
José Manuel Nieto
@SuperJMN
Dec 05 2015 18:27 UTC
BTW, another issue fixed for OmniXAML! SuperJMN/OmniXAML#62
Darnell Williams
@Seeker1437
Dec 05 2015 18:27 UTC
I give up.
José Manuel Nieto
@SuperJMN
Dec 05 2015 18:27 UTC
what?
Darnell Williams
@Seeker1437
Dec 05 2015 18:28 UTC
I must actually try and get stuff working on my end without asking so many questions. :)
José Manuel Nieto
@SuperJMN
Dec 05 2015 18:28 UTC
asking questions is the way to go
Darnell Williams
@Seeker1437
Dec 05 2015 18:28 UTC
I really am stuck though because I can't build my extension but I will just downgrade my SDK then XD
José Manuel Nieto
@SuperJMN
Dec 05 2015 18:29 UTC
do you want to build an extension? I didn't know. Extensions are an advanced topic, I think
Darnell Williams
@Seeker1437
Dec 05 2015 18:31 UTC
Well, even with my lack of skill, before kekekeks started working on it, I didget some of the stuff working.
I just simply am having issues witht he build process for some reason that I can't seem to find the solution to anywhere on the net
TBH, I just want to be comparable to you guys.
I feel compelled and driven to try.
I don't even have to be very good at it, I just want to be a subject matter expert on something XD
José Manuel Nieto
@SuperJMN
Dec 05 2015 18:33 UTC
don't worry, dude! I feel the same when I compare myself to some people here
they're true masters!
Darnell Williams
@Seeker1437
Dec 05 2015 18:34 UTC
Right, I just need help starting fromt he bottom.
If I start from the bottom, I bet I can move in anything I want.
So i feel like I am holding myself back, yet I am so driven to do bigger things than I can do on my own or even with people.
Anyways, you guys rock!
Andrey Kunchev
@donandren
Dec 05 2015 18:43 UTC
@kekekeks if the touch events are already scaled then only the correction 0.02 must be taken into account for the scrolling
and scale=1 is my mistake you can remove it, or the entire scale factor for the mouse, only the correction must remain
Nikita Tsukanov
@kekekeks
Dec 05 2015 20:26 UTC

do you think it's close to implement the line/pos error info?

I need to implement some stuff in Perspex.Designer first

@ImaBrokeDude

I am having problems being able to test my edits for the extension, VS refuses to build the extension, I think it's because of the sdk update.

Make sure that packages folder has required packages (you can copy them from installed extension)

Darnell Williams
@Seeker1437
Dec 05 2015 20:58 UTC
I was able to use download.sh for that, but that isn't the cause x3
@kekekeks the error is during build one of the tasks is not being feed something it needs.
The "FindInstalledExtension" task was not given a value for the required parameter "InstallableExtensionVersion".
I have no idea how I could fix this error either.
Nikita Tsukanov
@kekekeks
Dec 05 2015 21:02 UTC
Try to reinstall extensibility tools
Darnell Williams
@Seeker1437
Dec 05 2015 21:08 UTC
In porgress
Darnell Williams
@Seeker1437
Dec 05 2015 21:17 UTC
[Task 1/2]
Removing
  • Visual Studio Extensibility Tools Update 1
  • Visual Studio Software Development Kit Update 1
Darnell Williams
@Seeker1437
Dec 05 2015 21:37 UTC
[Task 2/2]
Installing:
  • Visual Studio Extensibility Tools Update 1
  • Visual Studio Software Development Kit Update 1
José Manuel Nieto
@SuperJMN
Dec 05 2015 23:19 UTC
@kekekeks OK! I'll be the first to download the updated extension. And I'll raise it in my hands like Link, in The Legend Of Zelda while... TAA NA NA NAAAAA!!