C#C
C#3y ago
Mek

❔ Creating A Share Button in avalonia

I have a button
<Button Grid.Column="2" Command="{Binding $parent[Window].DataContext.ShareEntry}" Content="Share Entry" />
This button is bound to a function in the MainWindowViewModel.cs file
public void ShareEntry()
{
            
}
When this button is clicked, I'm wanting it to take the selected item the user has chosen in the DataGrid and pretty print it to a microsoft word document file, open the users file explorer so that the user can select where they want to save the file to, and then create and save the file to that desired location. I have zero idea how to do this. Thanks in advance
Was this page helpful?