I am overriding style for combobox in universal app using wpf. Everything works fine on windows 8.1, but on windows phone 8.1 I got error stating that no resources with the key/name ComboBoxThemeMinWidth
exists.
<Application
x:Class="wcc.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:wcc"
RequestedTheme="Dark">
<Application.Resources>
<Style TargetType="ComboBox">
<Setter Property="Padding" Value="8,0" />
<Setter Property="MinWidth" Value="{ThemeResource ComboBoxThemeMinWidth}" />
<Setter Property="Foreground" Value="{ThemeResource ComboBoxForegroundThemeBrush}" />
...
What am I doing wrong? All I need is different style for combobox, but I can't figure how I can do it for windows phone.
MergedDictionaries
in your App.xaml file to reference it. – Mike Eason