internal DevicePickerAppearance() { #if WINDOWS_UWP _appearance = new Windows.Devices.Enumeration.DevicePickerAppearance(); #elif WINDOWS_PHONE_APP AccentColor = ((Windows.UI.Xaml.Media.SolidColorBrush)Windows.UI.Xaml.Application.Current.Resources["PhoneAccentBrush"]).Color; BackgroundColor = (Color)Windows.UI.Xaml.Application.Current.Resources["PhoneBackgroundColor"]; ForegroundColor = (Color)Windows.UI.Xaml.Application.Current.Resources["PhoneForegroundColor"]; #elif WINDOWS_APP AccentColor = (Color)Windows.UI.Xaml.Application.Current.Resources["SystemColorControlAccentColor"]; BackgroundColor = (Color)Windows.UI.Xaml.Application.Current.Resources["SystemColorWindowColor"]; ForegroundColor = (Color)Windows.UI.Xaml.Application.Current.Resources["SystemColorWindowTextColor"]; #endif }
private DevicePickerAppearance(Windows.Devices.Enumeration.DevicePickerAppearance appearance) { _appearance = appearance; }