e/3 :clock3:help wantedinactivet/bug :bug:up-for-grabs
仓库指标
- 星标
- (5,644 个星标)
- PR 合并指标
- (30 天内没有已合并 PR)
描述
Description
Resource Keys override style classes.
Steps to Reproduce
- MainPage.xaml
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="XFBindingTest.MainPage">
<ContentPage.Resources>
<ResourceDictionary>
<Style TargetType="BoxView" Class="Base">
<Setter Property="BackgroundColor" Value="Lime"/>
</Style>
</ResourceDictionary>
</ContentPage.Resources>
<BoxView StyleClass="Base"/>
</ContentPage>
- Run
- See lime color
- <Style TargetType="BoxView" Class="Base">
+ <Style TargetType="BoxView" Class="Base" x:Key="Key">
- Run
- See white color
Expected Behavior
- See lime color
Actual Behavior
- See white color
Basic Information
- Version with issue: 3.4.0.1008975
- IDE: Visual Studio 2017
- Platform Target Frameworks:
- UWP: 16299
Screenshots
6.

Related
#4895