Cam
[AVALONIA] Polylines not displaying on Canvas
I have been having this issue for a while. My Polylines which I have generated are not being displayed in the Canvas.
I am using MVVM so I have created all the Models, ensured they are correctly populating, checked that they are inside the canvas using the F12 debugging tool but they just are not visible. Help?
Canvas Model
Panel View Model
69 replies
✅ [AVALONIA] Get all coordinates along a Polyline
Whilst you define the points for a Polyline, is there any way that I can get or calculate the rest of the coordinates in between the Polyline points.
Essentially wanting to return all the X and Y coordinates that make up the entire Polyline and store them in a List/Dictionary
1 replies
✅ Help with Simplifying Method further
Anyway to make this code smaller so that i dont have to write "new List<Avalonia.Point>" and "new Avalonia.Point(x,y)" so many times?
Preferably wanting a function where i can parse as many points into the method as i need.
I have already added a method to create the line but it still contains too much rubbish repetitive code
12 replies
✅ A* Algorithm Get Node where x and y is 1 less (Neigbour)
Any idea how to get the neighbours? ive tried to grab the neighbour pathnode item by subtracting 1 from x. Either im not doing it correctly or the list needs to be formatted better but all the ways i have tried are not seeming to work so help?.
137 replies
✅ Adding XAML code from a seperate file into the MainWindow
Is it possible to add XAML code into a file from own other. These are files that I will regularly need to edit and update so having them in a seperate file from the MainWindow is important.
E.g “Panel1.xaml” needs to have its code “injected” into MainWindow
20 replies