Dyl_Pickle88
Using LiveCharts 2 in Avalonia
I'm new to Avalonia and am trying to use livecharts. Been using "https://livecharts.dev/docs/Avalonia/2.0.0-rc2/Overview.Installation" but when I use
"
<lvc:CartesianChart
Series="{Binding Series}">
</lvc:CartesianChart>
"
it says "Cannot parse a compiled binding without an explicit x:DataType directive to give a starting data type for bindings". If there is an easier way to make graphs in avalonia lmk.
8 replies
✅ Whats the proper way to access Windows.Gaming.Input in a non-UWP C# project?
I'd like to make a winform that uses a racing wheel for kicks and giggles, but the only way I can find to interface with one with C# is via Windows.Gaming.Input, which is a UWP library (or whatever libs are called for C#). Is there some other library I can't find that would be better for it? Thanks
6 replies
❔ Making an async function or event system to get steps on an encoder.
I am using an encoder with the GPIO controller on my pi in C#, the main issue is I dont understand how to read the leading edges without making a constantly running function. I have ha 2 ideas of how to read the encoder in and its either an event to increase a counter, or an async function that is constantly running to look for the leading edge. the issue is im not particularly versed in either of those things.
we are using this library: https://learn.microsoft.com/en-us/dotnet/api/system.device.gpio.gpiocontroller?source=recommendations&view=iot-dotnet-latest
it has a async function for reading but I dont know how to use that to count without calling it every tick or something
640 replies