These are chat archives for AvaloniaUI/Avalonia

30th
Mar 2018
MonkAlex
@MonkAlex
Mar 30 2018 18:21
Want to create custom ListBoxExt : ListBox
in xaml use as <v:ListBoxExt...>
but not work when use itemteplate
Portable.Xaml.XamlObjectWriterException: Cannot set unknown member '{clr-namespace:...Avalonia.View;assembly=....Avalonia}ListBoxExt.ItemTemplate'
в Portable.Xaml.XamlObjectWriterInternal.OnWriteStartMember(XamlMember property)
William Humphreys
@WHumphreys
Mar 30 2018 21:44
I suppose this could apply to WPF and Avalonia but lets say I was about to develop some type of diagram software I suppose something like a flowchart editor maybe a circuit diagram editor you know the type of thing. Would you tend to use the canvas for this generally speaking?
DmitryZhelnin
@DmitryZhelnin
Mar 30 2018 21:45
In WFP I'd use canvas with controls drag logic etc.
William Humphreys
@WHumphreys
Mar 30 2018 21:46
When you say controls drag logic what do you mean?
DmitryZhelnin
@DmitryZhelnin
Mar 30 2018 21:47
I mean you can drag the shapes inside your canvas
resize them etc.
William Humphreys
@WHumphreys
Mar 30 2018 21:48
I was just in my head thinking of using canvas as a base and creating some sort of DragCanvas though this is simply me speculating in my head I havnt really thought it through yet.
DmitryZhelnin
@DmitryZhelnin
Mar 30 2018 21:50
Yea, I mean DragCanvas. Have to use something similar in WPF recently.
William Humphreys
@WHumphreys
Mar 30 2018 21:51
Do you know of any exmples online anywhere of a similar idea. Ive tried googlig but just get loads of adverts for Flowchart software to buy etc.
DmitryZhelnin
@DmitryZhelnin
Mar 30 2018 21:56
I think I used this article as a reference for WPF: https://www.codeproject.com/Articles/15354/Dragging-Elements-in-a-Canvas
Or do you mean a library for this?
DmitryZhelnin
@DmitryZhelnin
Mar 30 2018 22:01
there is a series of articles about diagrams: links on stackoverflow https://stackoverflow.com/a/139715/2189031
didn't read them, just googled :)
Steven Kirk
@grokys
Mar 30 2018 22:13
@WHumphreys you might want to take a look at Core2D: https://github.com/wieslawsoltes/Core2D
William Humphreys
@WHumphreys
Mar 30 2018 22:41
@DmitryZhelnin The same thing that got me thinking about it.
@grokys Cool Ill have a look.