<UserControl x:Class="BamlTest.UserControl1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:bamltest="clr-namespace:BamlTest">
	<FrameworkElement.Resources>
		<ResourceDictionary>
			<Style x:Key="baseStyle" TargetType="{x:Type Control}" />
		</ResourceDictionary>
	</FrameworkElement.Resources>
	<Grid>
		<FrameworkElement.ContextMenu>
			<ContextMenu>
				<FrameworkElement.Resources>
					<ResourceDictionary>
						<Style x:Key="{x:Type Control}" BasedOn="{StaticResource baseStyle}" TargetType="{x:Type Control}" />
					</ResourceDictionary>
				</FrameworkElement.Resources>
			</ContextMenu>
		</FrameworkElement.ContextMenu>
	</Grid>
</UserControl>