Click here to Skip to main content
15,558,848 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good day,

I am wondering if there is an equivalent option to display an image in a TextBox/PasswordBox in Windows Phone 8.1. In Android Development I would simply use "android:drawableLeft="@drawable/image" or "android:drawableStart="@drawable/image".

How can I achieve this in Windows Phone 8.1?

What I have tried:

I used styling to achieve it with a normal Textbox, but that styling does not work with a PasswordBox AND it is over 40 lines of code, making me think that there should definitely be a better option.
Posted
Updated 19-Nov-16 23:29pm
Comments
Afzaal Ahmad Zeeshan 20-Nov-16 4:33am    
Create the button and add the graphic to it. Note that both of these frameworks have their own design rules, so it would be tough to make them both look alike.
Christopher Smit 20-Nov-16 4:36am    
Thank you for the reply. I am not using a button, I am using a Textbox and Password box. They do not have to look exactly the same, but I just need the image and the textbox/passwordbox as one item. I achieved this with the Textbox, but the same styling cannot be used with a passwordbox, so I need a better route.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900