Try our conversational search powered by Generative AI!

Per Nergård
Dec 14, 2013
(0 votes)

Get a list of all display resolutions

Recently I needed to get a list of all display resolutions. I couldn’t find any info about it so I struggled a bit. This post is a note to self if I ever need to do it again. Hopefully it can be of use for someone else.

private IEnumerable<IDisplayResolution> GetDisplayResolutions()
  ServiceLocationHelper helper = new ServiceLocationHelper(ServiceLocator.Current);
  DisplayResolutionService resolutionservice =      helper.Advanced.GetInstance<DisplayResolutionService>();
   return resolutionservice.Resolutions;
Dec 14, 2013


Please login to comment.
Latest blogs
Microsoft announces Natural language to SQL

Finally, Microsoft launches "Natural language to SQL," after it has been available for several months in Optimizely CMS!

Tomas Hensrud Gulla | May 23, 2024 | Syndicated blog

Five easy ways to start personalizing your content right now

If you clicked on this article, you already know that getting the right message to the right person at the right time helps drive conversions and...

Kara Andersen | May 23, 2024

ExtendedCms.TinyMceEnhancements – serwer side webp support

Today I will introduce another small feature of TinyMceEnhancements plugin. The functionality is used to automatically detect whether a browser...

Grzegorz Wiecheć | May 22, 2024 | Syndicated blog

Azure AI Language– Detect Healthcare Content in Optimizely CMS

In this blog post, I showcase how the Azure AI Language service's Text Analytics for health feature can be used to detect healthcare content within...

Anil Patel | May 22, 2024 | Syndicated blog