![]() For example, placing dotnet_bot.png in the root folder of a project named MyProject will result in a resource ID of MyProject.dotnet_bot.png. Load an embedded imageĮmbedded images can be added to an assembly as a resource by dragging them into your project, and ensuring their build action is set to Embedded resource in the Properties window.Įmbedded images are loaded based on their resource ID, which is compromised of the name of the project and its location in the project. In this example, the caching period is set to 10 days. The equivalent C# code is: Image image = new Image() To set a specific cache period, set the Source property to an UriImageSource object that sets its CacheValidity property: ![]() The default value of this property is true.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |