0

I'm developping a Windows Store 8 Application. For this I would like some custom TextBox controls. How can I make something like in the picture? (XAML) specifically those corners

Custom TextBox

2
  • you can make a usercontrol wherein theres an image(the green arrow) and a text box above on it.. Commented Apr 25, 2013 at 10:15
  • Yes i thought to do it like this, but is it an appropriate way? Commented Apr 25, 2013 at 10:19

1 Answer 1

2

Just make yourself a custom Control Template (Yes the link says Silverlight, but you wont see much difference in the win8 XAML etc) and you could use a Path for your backgrounds and even add things like color changing for the different MouseOver, Focused, States etc.

<Path Data="M130.32379,0 L142.74992,0 L157.743,15.01704 L142.73584,30.000004 L130.30968,30.000004 L0.31890577,29.99987 L15.159052,15.183544 L0,0.00013974622 z" 
      Fill="#FF1FCD99" Height="30" Width="150" Stretch="Fill" UseLayoutRounding="False"/>

Once you have your custom Control Template for your TextBox TargetType it's just a matter of applying it where needed with a Style tag pointing to your resource like Style="{StaticResource BlahTextBox}".

Hope this helps.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.