Posts

Showing posts from February, 2013

WCF 4.5 Simplification

One of the main goals of WCF 4.5 release is to simplify the development. Many few features have been introduced to achieve this goal. 1. Simplified Auto generated Configuration files. In previous versions of WCF when an service reference is added to the client applications all the configurations for the bindings will be added to the client configuration even those values are default values,  In WCF 4.5 the generated configuration files contain only those binding properties that are set to a non-default value.   WCF 3.0 <?xml version="1.0" encoding="utf-8"?> <configuration> <system.serviceModel> <bindings> <basicHttpBinding> <binding name="BasicHttpBinding_IService1" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyO...

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">              ...