These are chat archives for AvaloniaUI/Avalonia

23rd
Dec 2015
danwalmsley
@danwalmsley
Dec 23 2015 09:23 UTC
@grokys thanks for that fix
danwalmsley
@danwalmsley
Dec 23 2015 09:43 UTC
@kekekeks Image brush doesnt work in designer...
@grokys im getting odd results... looks like it is confusing resources... I see it rendering the wrong image...
any information on SourceRect and DestRect?
danwalmsley
@danwalmsley
Dec 23 2015 10:25 UTC
got it to work in the end... I think then I saw the image getting replaced
it was because source rect and dest rect were wrong
and maybe the renderer was going overer into another resource...
@grokys I have a clip to bounds performance issue again...
in current master of AvalonStudio when the Sample project is opened
the treeview takes about 25 seconds to populate
so application is dead during that time...
perhaps the first time it loads its ignoring clip to bounds?
or do I need to implement lazy loading on my viewmodels?
danwalmsley
@danwalmsley
Dec 23 2015 10:36 UTC
blob
its when its measuring all the items,, so I suppose there is no real way around that...
I should probably load everything collapsed... or at least upto a point
Steven Kirk
@grokys
Dec 23 2015 10:39 UTC
i think the same thing will happen if you try to load an expanded treeview of the same size into WPF
danwalmsley
@danwalmsley
Dec 23 2015 10:39 UTC
yeh
I will implement binding to an is collapsed property which will sort that out
Steven Kirk
@grokys
Dec 23 2015 10:40 UTC
could probably be solved by virtualization
danwalmsley
@danwalmsley
Dec 23 2015 10:41 UTC
would it? I would have assumed even with virtualization it will have to measure everything to set the scroll bars first even with virtualization?
Darnell Williams
@Seeker1437
Dec 23 2015 11:46 UTC
FOr the best experience it would have to do it before it start virtualizing so everything still fits, but then from there you might have the power to modiy it's behavior during that step and create the needed experience.
danwalmsley
@danwalmsley
Dec 23 2015 11:47 UTC
yeh, once Solution explorer is properly implemented the sub folders wont load expanded
so hopefully it will be super fast then
Wiesław Šoltés
@wieslawsoltes
Dec 23 2015 20:20 UTC
@grokys The DropDown font is different than rest of UI in the latest version
DropDownFont.PNG
Steven Kirk
@grokys
Dec 23 2015 20:21 UTC
yeah, DropDown is completely messed up
it needs a big rethink
Wiesław Šoltés
@wieslawsoltes
Dec 23 2015 20:23 UTC
should I create issue ?
Steven Kirk
@grokys
Dec 23 2015 20:24 UTC
yeah, sure
Wiesław Šoltés
@wieslawsoltes
Dec 23 2015 20:24 UTC
ok
Wiesław Šoltés
@wieslawsoltes
Dec 23 2015 20:30 UTC
The leaks are still bad :(
Steven Kirk
@grokys
Dec 23 2015 20:36 UTC
aarrggg! i was hoping they would be better at least
they do seem to level off though
if i keep dragging the same rectangle, the memory stops increasing after a while
Wiesław Šoltés
@wieslawsoltes
Dec 23 2015 20:43 UTC
yeah the biggest memory increase is when changing selected shape, this result in loading new shape properties
                    <TabItem Header="Shape" Classes="property">
                        <ScrollViewer>
                            <ContentControl Content="{Binding Path=Project.CurrentContainer.CurrentShape, Mode=TwoWay}"/>
                        </ScrollViewer>
                    </TabItem>
Steven Kirk
@grokys
Dec 23 2015 21:34 UTC
trying to find the leaks, but obviously, can't reproduce in a simple app :(
looking at dotMemory, the problem seems to be related to styles with classes
Darnell Williams
@Seeker1437
Dec 23 2015 22:19 UTC
Yeah but @donandren pointed that out too before I thought?
sorry dan x3
Steven Kirk
@grokys
Dec 23 2015 22:21 UTC
i thought i fixed the ones that @donandren found
Wiesław Šoltés
@wieslawsoltes
Dec 23 2015 22:37 UTC

This:

<GridSplitter Orientation="Horizontal"/>

and this:

<GridSplitter Orientation="Vertical"/>

throws:

Error loading XAML: System.ArgumentException: Invalid value for Property 'Orientation': 'Horizontal' (System.String)
   w Perspex.PerspexObject.SetValue(PerspexProperty property, Object value, BindingPriority priority)
   w Perspex.Markup.Xaml.Context.PerspexXamlMemberValuePlugin.HandlePerspexProperty(Object instance, Object value)
   w Perspex.Markup.Xaml.Context.PerspexXamlMemberValuePlugin.SetValue(Object instance, Object value)
   w OmniXaml.ObjectAssembler.StateCommuter.AssignChildToParentProperty()
   w OmniXaml.ObjectAssembler.StateCommuter.AssociateCurrentInstanceToParent()
   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)
Wiesław Šoltés
@wieslawsoltes
Dec 23 2015 22:46 UTC

looking at dotMemory, the problem seems to be related to styles with classes

@grokys Removed all styles and classes in Core2D and no difference: https://github.com/Core2D/Core2D/tree/nostyles

Steven Kirk
@grokys
Dec 23 2015 23:16 UTC
oh, ok, thanks for trying that. in some ways that's good! ;)
Wiesław Šoltés
@wieslawsoltes
Dec 23 2015 23:29 UTC
one step closer to solution ;)