These are chat archives for AvaloniaUI/Avalonia

9th
Nov 2015
Darnell Williams
@Seeker1437
Nov 09 2015 01:19
WHo has time for me
Denis Zaporozhets
@QuantumDeveloper
Nov 09 2015 09:29
Hi all
wanted to ask developers about mechanisms of their framework. Especially how you integrate your framework in VS and in MSBuild to receive errors during compilation
Steven Kirk
@grokys
Nov 09 2015 10:06
hi @QuantumDeveloper we don't currently have build integration
Denis Zaporozhets
@QuantumDeveloper
Nov 09 2015 10:08
ok, but how you display compile errors to user?
I mean XAML errors
Steven Kirk
@grokys
Nov 09 2015 10:10
we don't, they only get detected at runtime and design time currently
Denis Zaporozhets
@QuantumDeveloper
Nov 09 2015 10:11
Ok, I got it
But is it really possible to integrate such feature?
that your framework become part of MS build process?
Steven Kirk
@grokys
Nov 09 2015 10:12
yeah, i thnik you have to inject tools into the msbuild system
it's not something i've ever done, but i think it's do-able
Denis Zaporozhets
@QuantumDeveloper
Nov 09 2015 10:13
ok, thanks
and another one question: you now in design time using VS edit control for xaml. Right?
Steven Kirk
@grokys
Nov 09 2015 10:15
i'm not entirely sure about that - i'm sure someone else knows the answer though
Denis Zaporozhets
@QuantumDeveloper
Nov 09 2015 10:35
With whom I can talk about it?
Steven Kirk
@grokys
Nov 09 2015 10:36
@kekekeks and @ImaBrokeDude developed the VS designer
Denis Zaporozhets
@QuantumDeveloper
Nov 09 2015 10:36
thanks
Darnell Williams
@Seeker1437
Nov 09 2015 12:45
Hi!
José Manuel Nieto
@SuperJMN
Nov 09 2015 12:48
Hi!
@QuantumDeveloper I'm sure that better Design Time support is coming
Denis Zaporozhets
@QuantumDeveloper
Nov 09 2015 12:49
its good to hear that
Darnell Williams
@Seeker1437
Nov 09 2015 12:49
Yeah in fact because I am working on a project where I will need it more, I will put in some time to get it working.
Will work closely with @kekekeks and any other contributors
José Manuel Nieto
@SuperJMN
Nov 09 2015 13:02
@kekekeks do you have a newer version of the VS extension on your personal backlog ? :) Maybe I can take a look
Nikita Tsukanov
@kekekeks
Nov 09 2015 13:03
It's after proper scaling and iOS support
Darnell Williams
@Seeker1437
Nov 09 2015 13:03
pie is tasty
Nikita Tsukanov
@kekekeks
Nov 09 2015 13:04
BTW, it seems that matrix transformations handle fonts just fine
So we can safely use post-transform for scaling the whole window
José Manuel Nieto
@SuperJMN
Nov 09 2015 13:05
wow
sounds like it's coming soon
BTW, how is Android support coming along?
Nikita Tsukanov
@kekekeks
Nov 09 2015 13:06
blob
José Manuel Nieto
@SuperJMN
Nov 09 2015 13:06
I'm so focused on adding features and solving issues in OmniXAML that I haven't checked!
Nikita Tsukanov
@kekekeks
Nov 09 2015 13:07
Do you see the difference between two text blocks?

BTW, how is Android support coming along?

I've got Skia-based rendering backend up and running

It's merged to master
iOS support will be tricky since it seems that I need some ObjC code
So I'll focus on scaling first

Basically, my idea of scaling is:

1) Use scale transformation to transform everything on the render side
2) Transform coordinates in MouseDevice
3) Transform coordinates in some decorator for IWindowImpl

Or may be the second part won't be needed and coordinates can be transformed directly in IWindowImpl decorator
Nikita Tsukanov
@kekekeks
Nov 09 2015 13:12
We'll need some more intelligent code for platform management through
Darnell Williams
@Seeker1437
Nov 09 2015 13:16
hmmm
Steven Kirk
@grokys
Nov 09 2015 13:35
@SuperJMN is the Name problem now fixed?
also have you seen SuperJMN/OmniXAML#56 ?
Steven Kirk
@grokys
Nov 09 2015 13:53
oh sorry, i only just saw the messages in the omnixaml room!
José Manuel Nieto
@SuperJMN
Nov 09 2015 16:47

also have you seen SuperJMN/OmniXAML#56 ?

Merged! sorry, I'm trying to implement the x:Name<=>Name "feature"

it has more crumbs than expected!
Wiesław Šoltés
@wieslawsoltes
Nov 09 2015 20:33
Can not get this style working:
            <Style Selector="Rectangle.separator">
                <Setter Property="Fill" Value="#ffd7d7d7"/>
                <Setter Property="HorizontalAlignment" Value="Stretch"/>
                <Setter Property="IsHitTestVisible" Value="False"/>
                <Setter Property="Height" Value="1"/>
                <Setter Property="Margin" Value="29,1,0,1"/>
            </Style>
<Rectangle Classes="separator"/>
Error loading XAML: OmniXaml.XamlParseException: Could not find PerspexProperty 'Rectangle.Fill'.
   w Perspex.Markup.Xaml.Converters.PerspexPropertyTypeConverter.ConvertFrom(IXamlTypeConverterContext context, CultureInfo culture, Object value)
   w OmniXaml.ObjectAssembler.ValuePipeline.ConvertValueIfNecessary(Object value, XamlType targetType)
   w OmniXaml.ObjectAssembler.StateCommuter.AssignChildToParentProperty()
   w OmniXaml.ObjectAssembler.Commands.ValueCommand.Execute()
   w OmniXaml.ObjectAssembler.ObjectAssembler.Process(XamlInstruction instruction)
   w OmniXaml.TemplateHostingObjectAssembler.Process(XamlInstruction instruction)
   w Perspex.Markup.Xaml.Context.PerspexObjectAssembler.Process(XamlInstruction node)
   w OmniXaml.XamlXmlParser.Parse(IEnumerable`1 xamlNodes)
   w OmniXaml.XamlXmlParser.Parse(IXmlReader stream)
   w OmniXaml.XamlXmlLoader.Load(Stream stream, IXamlParser parser)

Changing to:

<Style Selector="Shape.separator">

does not throw, but still style is not applied properly to Rectangle

This renders properly:
<Rectangle Fill="#ffd7d7d7" HorizontalAlignment="Stretch" IsHitTestVisible="False" Height="1" Margin="29,1,0,1"/>
José Manuel Nieto
@SuperJMN
Nov 09 2015 21:20
whoops, it seems the Style is looking for the wrong property. @Grokys do you know why?
Steven Kirk
@grokys
Nov 09 2015 22:41
i saw the issue, looks like it should work, i will have to investigate
Wiesław Šoltés
@wieslawsoltes
Nov 09 2015 22:45
@grokys Can you have a look at pull request #310, I have implemented the Separator control.
Steven Kirk
@grokys
Nov 09 2015 22:50
looks great!
Darnell Williams
@Seeker1437
Nov 09 2015 22:57
@SuperJMN
Steven Kirk
@grokys
Nov 09 2015 23:06
ok, the Shape static ctor hasn't been run by that point
i would've thought it should have but there seem to be various bugs with static ctors
moved where RuntimeHelpers.RunClassConstructor(type.TypeHandle); is called and it seems to be fixed
Steven Kirk
@grokys
Nov 09 2015 23:12
should be fixed in latest nightly