Welcome To Snipplr
Everyone's Recent C# Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
A base class for very simple value converters in WPF, Windows Phone 7 and Silverlight.
1
665
posted 14 years ago by jacob4u2
Add this code to your App.xaml.cs inside your App class to enable a static property that will give you the current theme at runtime.
0
771
posted 14 years ago by jacob4u2
A very liberal validation of phone number. Assures there are at least 10 digits in there somewhere.
1
775
posted 14 years ago by housecor
Class to shorten text. For example for an article where people can click read more to read the whole article.
1
734
posted 14 years ago by Fogh
Add this code to your Global.asax in your ASP.NET project, in the \"Application_BeginRequest\" event.
1
886
posted 14 years ago by Fogh
Using the CssRegistration control is the proper way to register CSS in a SharePoint master page/layout page, but it has drawbacks. Namely, no matter what order you put them on the page the server loads them in a seemingly arbitrary order, making it...
2
823
posted 14 years ago by rumremix