Creating Style Property in Silverlight:
Step 1: open new silverlight application and named of ur own.
Step2: we have to give properties of controls like color , appearance.. in app.xaml
Eg:
Step3:In page.xaml we will give our controls and use the properties by using the syntax:
Eg:
Grid.Row="1" Grid.Column="0" Style="{StaticResource Prompt}"/>
Step3:in page.xaml.cs we have to use the following code.
Style txt = this.Resources["Prompt"] as Style;
Step2: we have to give properties of controls like color , appearance.. in app.xaml
Eg:
Step3:In page.xaml we will give our controls and use the properties by using the syntax:
Eg:
Step3:in page.xaml.cs we have to use the following code.
Style txt = this.Resources["Prompt"] as Style;

Comments
Post a Comment