❔ WF to WPF Help Needed
Hello sharpers. I have a issue where I need to convert at least the LoadFileSyncs to work with CommunityToolkit.MVVM in WPF
I know how to Bind a ICommand to a button, I know how to do very basic ViewModel stuff so far but this is very new to me.
OG Code is @ https://pastebin.com/EQyMRsvf
My VM is @ https://pastebin.com/7cxT0ntv
I appreciate you all!
Pastebin
using System.Data;using TitanSTUDIO.Helpers.Parsers;using TitanSTUD...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
using CommunityToolkit.Mvvm.ComponentModel;using CommunityToolkit.M...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
3 Replies
😦
Is this an arbitrary schema? Or is it exactly known at compile time?
For a fixed schema, I would start off with something like:
<Button Command="{Binding LoadFileAsyncCommand}" />
The DB stuff is more complex. If it's arbitrary schema, then you need to use DataTable
as part of your DataGrid
.
If it's a static schema, then as long as your StringDatabaseModel
is well-designed, you can bind rows/columns easily in XAML.Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.