© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
121 replies
Mek

❔ Creating A Share Button in avalonia

I have a button
<Button Grid.Column="2" Command="{Binding $parent[Window].DataContext.ShareEntry}" Content="Share Entry" />
<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()
{
            
}
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
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

✅ Creating a ToolTip on a TextBox Avalonia
C#CC# / help
2y ago
✅ Getting Button Command Parameter Avalonia
C#CC# / help
3y ago
✅ Creating An Accurate Loading Screen Avalonia
C#CC# / help
3y ago
✅ Collision in Avalonia
C#CC# / help
9mo ago