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″…

3

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…

6

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…

0

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…

4

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>                  …

4

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…

7

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…

1

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…

9

System.Xaml: Method calls from Xaml

Xaml is awesome. I am hearing lot of “yeah”s… So have you tried out the new System.Xaml stack in .NET 4.0. If you havent give it a shot. It new and improved … One of the guys on the Xaml team is Shree and I finally got him to write a post on System.Xaml… Bet…

2