Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

memory usage of x:Static vs StaticResource

$
0
0

what is the memory usage of x:static values? are they hold in the memory all the time if class is not static bu only member like below

public partial class  Styles
    {
        public static  int ItemSize = 15;
}

I guess StaticResources are hold in memory if only defined in App.xaml or app.xaml.cs. if defined in the contentpage, once contentpage is disposed, they are as well. is it correct? so using StaticResources have more advantage over x:static. ?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>