Closed JoacimWall closed 3 years ago
@JoacimWall Thanks for the excellent bug report! I'll investigate and aim to get a fix into MFractor 4.4.4
@JoacimWall From what I can see in the provided XAML and from my local testin, MFractor is evaluating and reporting this correctly.
The Label in the provided sample uses the LabelStyleIconFontXXLargeWhite
, which overrides the TextColor
property and sets it to {StaticResource WhiteColor}
. The Label then also defines TextColor
as {StaticResource WhiteColor}
.
Please see reproduction below:
Hi Mfractor/Mfractor-Feedback The issue I was referring to is that if i add style and also set the TextColor="ColorWhite" mfractor highlights the i can remove TextColor="ColorWhite" as it already is in the style. but if i add VerticalOptions="Center" Mfractor don't highlight that i can remove it as it already in the style(Parent style).
//Regards Joacim Wall
On Tue, 8 Dec 2020 at 09:29, Matthew Robbins notifications@github.com wrote:
@JoacimWall https://github.com/JoacimWall From what I can see in the provided XAML and from my local testin, MFractor is evaluating and reporting this correctly.
The Label in the provided sample uses the LabelStyleIconFontXXLargeWhite, which overrides the TextColor property and sets it to {StaticResource WhiteColor}. The Label then also defines TextColor as {StaticResource WhiteColor}.
Please see reproduction below: [image: image] https://user-images.githubusercontent.com/3260473/101458943-4b320380-3983-11eb-9843-35e3c82d8685.png
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mfractor/mfractor-feedback/issues/310#issuecomment-740467657, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACGZLPBTZR2QR6HCHI4SBCDSTXPYJANCNFSM4UOMWSLQ .
Ah, thanks for clarifying. I've misunderstood the issue.
@JoacimWall Thanks for reporting the issue, I've tracked down the source of it and have now resolved it. This will be in MFractor 4.4.4, released today (AEST timezone).
hi if you have styles that are based on other styles in multiple steps you only get validation for the last step. I have removed start and end char in style to make this the post show correct.
Style: Style x:Key="LabelIconBaseStyle" TargetType="Label" Setter Property="HorizontalOptions" Value="Center" / Setter Property="VerticalOptions" Value="Center" / Setter Property="HorizontalTextAlignment" Value="Center" / Setter Property="VerticalTextAlignment" Value="Center" / Setter Property="FontFamily" Value="LiberoIconFont" / Setter Property="TextColor" Value="{StaticResource Primary500Color}" / /Style Style x:Key="LabelStyleIconFontXXLarge" BasedOn="{StaticResource LabelIconBaseStyle}" TargetType="Label" Setter Property="FontSize" Value="50" / /Style Style x:Key="LabelStyleIconFontXXLargeWhite" BasedOn="{StaticResource LabelStyleIconFontXXLarge}" TargetType="Label" Setter Property="TextColor" Value="{StaticResource WhiteColor}" / /Style
xaml: Label Grid.Row="0" HorizontalOptions="Center" VerticalOptions="Center" FontSize="50" TextColor="{StaticResource WhiteColor}" Style="{StaticResource LabelStyleIconFontXXLargeWhite}" Text="{StaticResource icon_article_library}" /
Mfratcor only says that TextColor is redundant but it's should say all except the text property.
Installation Information