New WPF Features: LayoutRounding

This is part of a series on New WPF Features LayoutRounding – If you are familiar with Silverlight, this is nothing new. If you are unfamiliar with it, all it does is that it rounds up lengths.. Take for example the code below (hypothetical case)  <Border Width=”33.9111111″ Height=”80.11111″ BorderBrush=”Red” Margin=”2.1222222″ BorderThickness=”3.955″><Border Width=”15.3333333″ Height=”40.11111″ BorderBrush=”Black” Margin=”2.3333333″…


MVVM Frameworks

Cinch Author: Sacha Barber Silverlight support: no Documentation: excellent, 6 articles published on CodeProject Hosting : CodePlex License:  Code Project Open License Features: attached behaviors validation suing IDataErrorInfo support for IEditableObject weak events creation and subscription mediator messaging using weak events IOC/DI support (using Unity) services: event logger, message box, open save dialog, popup threading helpers…


New WPF Features: KeyGesture Binding

This is part of a series on New WPF Features We got a lot of feedback to improve the way a developer could set binding to the input keys and modifiers. Earlier, the command property on the inputbinding class was not a Dependency property – so binding to it was out of question. Also it…


New WPF Features: ClearTypeHint

This is part of a series on New WPF Features WPF enforces grayscale rendering when text is rendered on a transparent area. However, its possible that the background of a control is opaque even though its inside a transparent area. For example, popups have rounded edges and will have the allowstransparency property set. Same is…


New WPF Features: CaretBrushSelectionBrush

This is part of a series on New WPF Features There have been quite a few asks for changing the selection color and the caret color. We have now provide 2 properties to make this possible CaretBrush SelectionBrush   An example usage would be like SelectionBrush=”RED” SelectionOpacity=”0.3″  (Default value is 0.6) CaretBrush=”Red”   These properties are…


New WPF Features: Custom Speller Dictionary

This is part of a series on New WPF Features In previous versions, adding a custom dictionary was an unsupported scenario. You could still do it but it required writing a bunch of code. In this release, we have provided suport for adding custom dictionaries.      <RichTextBox FontSize=”24″ SpellCheck.IsEnabled=”true” >             <SpellCheck.CustomDictionaries>                   <sys:Uri>Dictionary1.lex</sys:Uri>                  …


New WPF Features: Jumplists

This is part of a series on New WPF Features Jumplists is a feature of Win7 where in you can the context menu is richer than the usual close\restore options. WPF provides a managed API to work with these features in Win7. Now that we have seen how it looks like, lets look at how…


New WPF Features: Easing Functions

This is part of a series on New WPF Features Easing functions enables adding custom math formulas to your animations. The animations also looks more realistic and smoother. WPF now provides this functionality and as in SL there are 11 such inbuilt functions. Each of these come with 2 Easing Modes – EaseIn,EaseOut,EaseInOut.                                                                                The functions…


New WPF Features: TextFormattingMode for clear text

This is part of a series on New WPF Features Now there has been feedback since 3.0 that the WPF text doesnt render clearly when the fontsizes are smaller. So for .NET 4 we forked on this issue and fixed it by introducind the property TextOptions.TextFormattingMode. The default value is ideal which is what we…


VS 2010.NET 4 Beta2 available for download

Visual Studio 2010 and .NET Framework 4 Beta 2 will be available to MSDN subscribers, with general availability on October 21. The official launch of Visual Studio 2010 and .NET Framework 4 is March 22, 2010. For info about packaging, pricing, and licensing take a look at the new VisualStudio site Share this post