Skip to content
Discussion options

You must be logged in to vote

Hi @DevTKSS!

The .UseStorage() extension method should be automatically included as part of the CreateDefaultBuilder() in your App.xaml.cs. You can see this here.

But you can always add the method yourself if you wish by setting it inside of the .Configure(host => host

I have attached a sample app that uses the Storage feature and has the IStorage implementation injected into the MainModel. We then read file info as part of a button click as can be seen by the LoadStorageData method in the MainModel.

Before clicking

After clicking

Sample app: UnoApp124.zip

As for the .AddFileStorage() and .AddKeyedStorage() methods, these are internal extension methods that are not accessible from your …

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@DevTKSS
Comment options

@DevTKSS
Comment options

@kazo0
Comment options

kazo0 Feb 4, 2025
Maintainer

@DevTKSS
Comment options

@DevTKSS
Comment options

Answer selected by DevTKSS
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants