Geeks With Blogs
Keep It Simple Simple Solutions for Complex Scenarios NET Framework
Extending Type class to get a type that implements an interface <IsImplementationOf>
Is really simple know if any type implements an interface in the traditional way we can use the “is” keyword to know if the class instance implements the interface, by instance Interface Code Snippet public interface IMarkable { void Mark(); } Class that implements the interface Code Snippet public class Marker : IMarkable { #region IMarkable Members public void Mark() { Console.Write("Do Mark!!"); } #endregion } Interface validation Code Snippet Marker marker = new Marker(); if (marker is IMarkable) ......

Posted On Wednesday, September 30, 2009 12:21 AM

How to Load Application Templates dynamically from Resources files
Well on my last post, i talk about changes on controls in #Silverlight3, while i tried to use a demo about Navigation and Styles, Corrina and her team had developed 7 additional application templates, for the community to consume and they’ve put them up on the Expression Community Gallery for download: Aurora Frosted Cinnamon Toast Lime Shocker Pinky Retro Sky Line Subdued All templates are terrific and very easy to use only change the reference to the resource in the styles.xaml code file. But if ......

Posted On Thursday, July 30, 2009 3:17 AM

The tag 'XxX' does not exist in XML namespace 'clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls and other movements on Silverlight 3
I just downloaded the application styles from here and try to use, but thrown the unexpected error: “The tag 'Expander' does not exist in XML namespace 'clr-namespace:System.Windo... According to Ensuring That Your Silverlight 2 Applications Work with Silverlight 3, in the entry 3.1: 3.1 DockPanel, WrapPanel, Expander, HeaderedContentControl, Viewbox, DataForm moved to the Silverlight Toolkit The following controls and types have been removed from the Silverlight ......

Posted On Thursday, July 30, 2009 1:14 AM

Copyright © Juan Mestas J. (aka gotchas) | Powered by: GeeksWithBlogs.net