Trying to put an image for button background

So, I am just to make these buttons have an image as the background, like a notification and search button being a little envelope and magnifying glass, heres one of the buttons

<Panel ux:Class=“CBL.NotificationButton” Margin=“10” Padding=“10” FontSize=“20”>

<string ux:Property=“Text” />

<float ux:Property=“FontSize” />

<Rectangle Layer=“Background” Color="#003366" CornerRadius=“2”>

<ImageFill File=“notification” ux:Name=“notification”/>

<DropShadow Angle=“90” Distance=“1” Spread=“0.2” Size=“2” Color="#00000060" />


<CBL.Text Value="{ReadProperty Text}" FontSize="{ReadProperty FontSize}" TextAlignment=“Center” />


<Scale Factor=".95" Duration=".08" Easing=“QuadraticOut” />



And its throwing an error that "E8001: File does not exist: C:…\cbl-app\Components\ (the image name, “search” and “notification” for example)

Never mind, realized I wasn’t putting .jpg on the end of the file name. Fixed

1 Like