❔ Style auto apply to all target controls

I recently created this xaml style, I don't why UWP apply that thing to all the navigation view I only use it when I set the Style property to StoreNavigationViewStyle what going on? The style
xmlns:local="using:Microsoft.UI.Xaml.Controls"
<Style x:Key="StoreNavigationViewStyle" TargetType="local:NavigationView">
xmlns:local="using:Microsoft.UI.Xaml.Controls"
<Style x:Key="StoreNavigationViewStyle" TargetType="local:NavigationView">
The control got affected
<local:NavigationView
Grid.Column="1"
Margin="0,10,10,0"
Padding="0,0,0,15"
VerticalAlignment="Stretch"
ui:Effects.Shadow="{StaticResource PetGalleryPivotShadow}"
IsBackButtonVisible="Collapsed"
IsSettingsVisible="False"
PaneDisplayMode="LeftCompact">
<local:NavigationView
Grid.Column="1"
Margin="0,10,10,0"
Padding="0,0,0,15"
VerticalAlignment="Stretch"
ui:Effects.Shadow="{StaticResource PetGalleryPivotShadow}"
IsBackButtonVisible="Collapsed"
IsSettingsVisible="False"
PaneDisplayMode="LeftCompact">
1 Reply
Accord
Accord15mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?