[UWP] Adjust AutoSuggestBox's TextBoxStyle style name to prevent possible crash ...
authorPaul DiPietro <pauldipietro@users.noreply.github.com>
Tue, 7 Mar 2017 09:56:54 +0000 (03:56 -0600)
committerRui Marinho <me@ruimarinho.net>
Tue, 7 Mar 2017 09:56:54 +0000 (09:56 +0000)
Xamarin.Forms.Platform.UAP/AutoSuggestStyle.xaml

index 3c85a01..75609c9 100644 (file)
@@ -7,7 +7,7 @@
        <Style TargetType="AutoSuggestBox">
                <Setter Property="VerticalAlignment" Value="Top" />
                <Setter Property="IsTabStop" Value="False" />
-               <Setter Property="TextBoxStyle" Value="{StaticResource AutoSuggestBoxTextBoxStyle}" />
+               <Setter Property="TextBoxStyle" Value="{StaticResource AutoSuggestBoxFormsTextBoxStyle}" />
                <Setter Property="Template">
                        <Setter.Value>
                                <ControlTemplate TargetType="AutoSuggestBox">
@@ -58,7 +58,7 @@
                </Setter>
        </Style>
 
-       <Style TargetType="uwp:FormsTextBox" x:Key="AutoSuggestBoxTextBoxStyle">
+       <Style TargetType="uwp:FormsTextBox" x:Key="AutoSuggestBoxFormsTextBoxStyle">
                <Setter Property="MinWidth" Value="{ThemeResource TextControlThemeMinWidth}" />
                <Setter Property="MinHeight" Value="{ThemeResource TextControlThemeMinHeight}" />
                <Setter Property="Foreground" Value="{ThemeResource SystemControlForegroundBaseHighBrush}" />