Posts

Showing posts with the label Silverlight

Change Background of Silverlight Button

Image
I have com accross some areas when working with setting. silverlight button background. Thought of sharing with all. 1. Change Background Color when you try to change the background color of a silverlight button as below it will show the button as below with the gradient effect. <Button Content="Button" Height="31" HorizontalAlignment="Left" Background="DarkGreen" Name="btn" VerticalAlignment="Top" Width="142" Margin="30,60,0,0" /> if you want to change the background color without the gradient effect below code is the solution. <Button Content="Button" Height="31" HorizontalAlignment="Left" Background="DarkGreen" Name="btn" VerticalAlignment="Top" Width="142" Margin="30,60,0,0"  >           <Button.Template>               <ControlTemplate TargetType="Button">              ...

Silverlight with Self hosted WCF with NetTcpBinding

Image
Advantages of using NetTcpBinding Performance: Silverlight applications using NetTcpBinding to with WCF service in your intranet   can obtain a performance gain compared to HTTP polling duplex in duplex communication scenarios. Duplex Communication: Supports Duplex communication between client and service. Helps optimize the Silverlight application (XAP) size. Applications that utilize only Steps Create WCF enabling NetTcpBinding Sample WCF Config, < system.serviceModel >     < behaviors >       < serviceBehaviors >         < behavior name = " NetTcpWCFService.ServiceBehavior " >           < serviceMetadata />           < serviceDebug includeExceptionDetailInFaults = " false " />         ...