Hello,
Welcome to our Microsoft Q&A platform!
Let us to reproduce this issue.
First of all, you create a enum type, for testing, I add three value in it like following code.
[System.Flags]
public enum SettingsEnum
{
Low=1,
Medium=2,
High=3
}
Then I save value in the App's constructor.
public App()
{
InitializeComponent();
Application.Current.Properties["id"] = (int)SettingsEnum.Low;
MainPage = new MainPage();
}
In the MainPage, we can get the saved value.
public MainPage()
{
InitializeComponent();
if (Application.Current.Properties.ContainsKey("id"))
{
var id = Application.Current.Properties["id"];
SettingsEnum foo = (SettingsEnum)id;
// do something with id
}
}
Here is running screenshot, I can get the value.
Best Regards,
Leon Lu
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.