Reporter |
|
---|---|
Created | Mar 29, 2018 10:48:48 PM |
Updated | Apr 5, 2018 5:49:58 PM |
Subsystem | XAML |
Assignee | Alexander Shvedov (shvedov) |
Priority | Major |
State | Submitted |
Type | Bug |
Fix version | 2018.1.1 |
Affected versions | 2017.3.5, 2017.3 |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
1. Create a new Mobile App (Xamarin.Forms) project using Visual Studio 15.6.4, choose Blank App, Code Sharing Strategy: .NET Standard.
2. Create a new ContentPage in the .Net Standard project and add the code below.
Reproduced. Solution attached. The red code in
2. Create a new ContentPage in the .Net Standard project and add the code below.
<ContentPage.Resources>
<ResourceDictionary>
<Style TargetType="Label" Class="Subhead" x:Key="Subhead">
<Setter Property="BackgroundColor" Value="{StaticResource SoftGreen}"/>
<Setter Property="FontAttributes" Value="Bold"/>
<Setter Property="TextColor" Value="{StaticResource DarkGreen}"/>
</Style>
<Style TargetType="Label" BasedOn="{StaticResource Subhead}" Class="SubheadGuard">
<Setter Property="BackgroundColor" Value="{StaticResource BrightGreen}"/>
<Setter Property="TextColor" Value="{StaticResource BrightGreenInverse}"/>
</Style>
<Style TargetType="Label" BasedOn="{StaticResource Subhead}" Class="SubheadComplete">
<Setter Property="BackgroundColor" Value="{StaticResource Orange}"/>
<Setter Property="TextColor" Value="{StaticResource OrangeInverse}"/>
</Style>
<Style TargetType="Label" BasedOn="{StaticResource Subhead}" Class="SubheadCompletePlus">
<Setter Property="BackgroundColor" Value="{StaticResource DarkGreen}"/>
<Setter Property="TextColor" Value="{StaticResource DarkGreenInverse}"/>
</Style>
<Style TargetType="BoxView" Class="VSep">
<Setter Property="WidthRequest" Value="2"/>
<Setter Property="BackgroundColor" Value="{StaticResource SoftGreen}"/>
</Style>
</ResourceDictionary>
</ContentPage.Resources>
Reproduced. Solution attached. The red code in
App1 | Page1.xaml