Silverlight and basic authentication

Silverlight client does not support TransportCredentialOnly to enable Basic authentication. Here is some code to add the basic authentication http header to a standard Silverlight WCF proxy:                 ServiceReference1.ServiceClient svc = new ServiceReference1.ServiceClient(); // binding, new EndpointAddress(“any.txt://”));            svc.GetDataUsingDataContractCompleted += (s, a) =>      […]

Custom line caps in WPF

The attached project contains a custom element (FrameworkElement-derived), which allows definition of line paths (straight lines, Bezier curves, etc.) with custom-defined line caps. The following graphic contains two lines: a straight line with an arrow and filled rectangle at either end, and an irregular path with a circle and and arrow. (Note that this is […]