As WinUI uses .NET 5, you can get the application directory with, for example :
string sDirectory = AppDomain.CurrentDomain.BaseDirectory;
For user files, you should store them like other Desktop applications do, in a subdirectory in %LOCALAPPDATA% :
string sLocalAppdata = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);