Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

Can't style control... Error: Can't resolve BorderWidth on EnhancedEntry #16

@msivers

Description

@msivers

Trying to style EnhancedEntry control but when setting an enhanced property (not base Entry property) then get a build error "Can't resolve on EnhancedEntry". For example, the following style definition will error with "Can't resolve BorderWidth on EnhancedEntry".

<ResourceDictionary xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:ee="clr-namespace:LeoJHarris.FormsPlugin.Abstractions;assembly=LeoJHarris.FormsPlugin.Abstractions" x:Class="Cirkles.Themes.Styles"> <Style x:Key="EntryStyle" TargetType="ee:EnhancedEntry"> <Setter Property="TextColor" Value="{DynamicResource TextColor}" /> <Setter Property="PlaceholderColor" Value="{DynamicResource TextColorPlaceholder}" /> <Setter Property="FontFamily" Value="{DynamicResource FontFamilyRegular}" /> <Setter Property="BorderColor" Value="{DynamicResource AccentGray}" /> <Setter Property="BorderWidth" Value="1" /> <Setter Property="HeightRequest" Value="50" /> </Style> </ResourceDictionary>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions