windows - How i can made TextBox like this -

how can made textbox in windows phone 8.1
you can create usercontrol has image , textbox in it. you'd need declare string text dependencyproperty , string imagesource dependencyproperty data bind to. xaml this:
<grid> <grid.columndefinitions> <columndefinition width="auto" /> <columndefinition /> </grid.columndefinitions> <image source="{binding imagesource, relativesource={relativesource ancestortype={x:type yourprefix:yourusercontrol}}}" /> <textbox grid.column="1" text="{binding text, relativesource={relativesource ancestortype={x:type yourprefix:yourusercontrol}}}" /> </grid> if you're not familiar creating dependencypropertys, can find out how in custom dependency properties page on msdn.
Comments
Post a Comment