In previous post, I demonstrated how to change the content of a grid based on the content of a property of bound object, now I want to take that example further. In the old example I change the source of an image, but now I want to set a complete different template based on content, [...]
Continue reading about WPF Swap the entire content in a column based on content
I’m moving the first serious steps on WPF trying to apply in real situation, the feeling is really good, and databinding and trigger are really exceptional. Suppose you have such a class public class DataItem { public String Name { get; set; } public Boolean IsTrue { get; set; } } Then you have a [...]
Continue reading about First steps on WPF, listview with template based on data
One of the most important characteristic of a test is readability, the test should be clear and its intent should be self evident. When working with domain object it is recurring to make test to assert that in some collection we have a fixed amount of objects with a given property equal to a given [...]
I usually adopt a custom simple HttpModule to compress programmatically the page content in my asp.net applications. Private Sub CompressRequest() If ((String.IsNullOrEmpty(HttpContext.Current.Request.Headers("Accept-encoding")) = False) AndAlso _ (HttpContext.Current.Request.Headers("Accept-encoding").Contains("gzip") = True)) Then Dim gzip As GZipStream = New GZipStream(HttpContext.Current.Response.Filter, CompressionMode.Compress, True) HttpContext.Current.Response.Filter = gzip HttpContext.Current.Response.AppendHeader("Content-encoding", "gzip") ElseIf ((String.IsNullOrEmpty(HttpContext.Current.Request.Headers("Accept-encoding")) = False) AndAlso _ (HttpContext.Current.Request.Headers("Accept-encoding").Contains("deflate") = True)) Then Dim [...]





