Skip to main content
Home Forums Silverlight Design Designing with Silverlight rounded corner, textbox, button, dropdown etc.
6 replies. Latest Post by Revathi Kota on November 19, 2009.
(0)
joji777
Member
84 points
218 Posts
01-08-2009 10:10 AM |
how can i set the rounded corner look for different components in silvelright 2, i.e text box, button, drop down... ???
prujohn
Contributor
3567 points
703 Posts
01-08-2009 10:16 AM |
Just about every SL control allows you to customize the default look & feel via templates. There are some videos on this website in the 'Learn' section that demonstrate this technique (on a button control I think). It will help to do this type of customization, if you also are using Expression Blend (in my opinion) because much of the templating work is design work.
01-08-2009 10:38 AM |
could you please refer me to exact video, i have seen some, but could not find what i am looking for.
MoHassan
467 points
149 Posts
01-08-2009 10:51 AM |
Here http://silverlight.net/learn/videocat.aspx?cat=2#HDI2Controls
Good luck
01-08-2009 10:55 AM |
i already visited "controls" videos, i could not find the video which shows how to round the corners of textbox or butoon, etc. although i found one video in which he showed to create a rectangle with rounded cornerns and create a textbox inside it wityh no border, which is not a nice a way to achieve this, is there any better way. ?????
01-08-2009 11:52 AM |
First you have to crerate TextBox:
And then you need to create TextBoxStyle that will target TextBox inside the Page.XAML or App.XAML.
<
Good Luck
Revathi ...
7 points
18 Posts
11-19-2009 1:21 AM |
Hi MoHassan,
ur code is working fine with textbox...
i have applied it to passwordbox .. but it showing the scrollbar... can u pls tell me how to remove it?
Thanks