xamarin / SignaturePad

MIT License
245 stars 150 forks source link

Add BackgroundColor with a Style #157

Open MaxenceSAUNIER opened 5 years ago

MaxenceSAUNIER commented 5 years ago

Description

Add BackgroundColor Style to SignaturePadView not work. Margin, padding, etc... work.

Code

<ContentPage.Resources>
    <ResourceDictionary>
        <Style TargetType="signaturepad:SignaturePadView">
            <Setter Property="Margin" Value="50" />
            <Setter Property="BackgroundColor" Value="Black" />
        </Style>
    </ResourceDictionary>
</ContentPage.Resources>

        <signaturepad:SignaturePadView />

Expected Behavior

Add Background color and margin

Actual Behavior

add margin but nor the backgroundcolor

Basic Information