Try our conversational search powered by Generative AI!

Per Nergård
Dec 14, 2013
  2092
(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

Comments

Please login to comment.
Latest blogs
Fix your Search & Navigation (Find) indexing job, please

Once upon a time, a colleague asked me to look into a customer database with weird spikes in database log usage. (You might start to wonder why I a...

Quan Mai | Apr 17, 2024 | Syndicated blog

The A/A Test: What You Need to Know

Sure, we all know what an A/B test can do. But what is an A/A test? How is it different? With an A/B test, we know that we can take a webpage (our...

Lindsey Rogers | Apr 15, 2024

.Net Core Timezone ID's Windows vs Linux

Hey all, First post here and I would like to talk about Timezone ID's and How Windows and Linux systems use different IDs. We currently run a .NET...

sheider | Apr 15, 2024

What's new in Language Manager 5.3.0

In Language Manager (LM) version 5.2.0, we added an option in appsettings.json called TranslateOrCopyContentAreaChildrenBlockForTypes . It does...

Quoc Anh Nguyen | Apr 15, 2024