One of the interesting control that was introduced with Silverlight 5 is the RichTextBoxOverflow control. This control will show up the portion of the RichTextbox which is overflown to it. A special property called OverflowContentTarget is added to the RichTextBox control to specify the Overflow control.
Silverlight 5 introduces Binding in style Setters. Hence you can use Binding, StaticResource or any markup extension inside the style Setters. Let you have a class that defines your resource based on some custom logic : Now from your style setters you can easily point to the class to get the value of the Thickness. In the code,… Read More »
As this is a new features if Silverlight 5 beta, you need below prerequisite To try the features You first need to download Visual Studio 2010 (SP 1) if you didn’t have done that already. After you install Visual studio update you need Silverlight tools for Visual Studio Optionally you can also try Silverlight help tools to get… Read More »
WPF comes with lots of fun and advantages. We can change the look and behavior of a control very easily which would have been very cumbersome when we are in normal winforms applications. WPF has few flexibilities like Superior Binding capabilities, Animation, Transformation, Virtualizations etc. Each of these made the framework richer in all respect. In WPF, ListBox… Read More »
With the introduction of MVVM pattern and WPF code structure, we have gradually mould ourselves to separate our presentation layer more with the actual Views. In doing so, we have implemented a lots of interfaces, some corresponds to the Command interfaces using ICommand interface which lets you define your object to handle an Button Click event handlers while… Read More »
This is small piece of code snippet which I wanted to share as we face this necessity in our day to day programming. Suppose you have a need when you need to search multiple string, say you need to search strings like “int”, “float”, “string” in a piece of text. Below is how you will achieve it without… Read More »