© 2026 Hedgehog Software, LLC

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

✅ asking user where to save file avalonia

// MainWindowViewModel.cs
public void ShareItem()
{
  var vm = new ShareItemViewModel(List.SelectedItem);
}

// ShareItemViewModel.cs
public class ShareItemViewModel : ViewModelBase
{
  public ShareItemViewModel(DiaryModel selectedItem)
  {
  }
}
// MainWindowViewModel.cs
public void ShareItem()
{
  var vm = new ShareItemViewModel(List.SelectedItem);
}

// ShareItemViewModel.cs
public class ShareItemViewModel : ViewModelBase
{
  public ShareItemViewModel(DiaryModel selectedItem)
  {
  }
}
I'm wanting to use the ShareItemViewModel to prompt the user via their file explorer on where to save their entry that they want to share. When they select a location, I would like for the code to generate a Microsoft Word Document with the information saved within in the manor of
Date: <- date of entry
Time: <- time of entry
Title: <- title of entry
Entry: <- the entry itself
Date: <- date of entry
Time: <- time of entry
Title: <- title of entry
Entry: <- the entry itself
and then display a success label across the bottom of the home screen that their action has been successful. The application I'm working with is located here https://github.com/mekasu0124/Diary. 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

❔ Avalonia User Controls
C#CC# / help
4y ago
✅ File Searcher in Avalonia
C#CC# / help
12mo ago
Where is selectionForeground in avalonia
C#CC# / help
12mo ago
✅ Allow user to select profile image avalonia
C#CC# / help
2y ago