Created
April 3, 2019 08:37
-
-
Save MartinZikmund/25e13551a33a3ae389bc0835f3c928fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void RefreshDisplayInformation() | |
{ | |
var info = Windows.Graphics.Display.DisplayInformation.GetForCurrentView(); | |
var type = info.GetType(); | |
var typeInfo = type.GetTypeInfo(); | |
var propertyInfos = typeInfo.GetProperties(); | |
var properties = propertyInfos.Select(p => new PropertyInformation() { Name = p.Name, Value = SafeGetValue(p, info) }).ToArray(); | |
PropertyListView.ItemsSource = properties; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment