Lester's WPF\SL Blog


Simple, Easy & Beautiful


 

Browse by Tags

  • Blog Post: WPF Manipulation Basics

    Here's the second post by Drake on the usage of Manipulation features.. Sample attached WPF Manipulation Basics Things to know before we start Understanding how RoutedEvents work might provide additional insight for this tutorial. http://msdn.microsoft.com/magazine/cc785480 . In the previous...
  • Blog Post: WPF Touch Basics

    In my previous posts, I briefly described the new WPF Touch feature. Was planning to get a more detailed post out but just couldnt get the time. Thankfully, Drake Campbell, one of our devs in Microsoft, sent me the following post on the basics of WPF Touch. Its a nice read.. So get started.... WPF...
  • Blog Post: Concluding "New WPF Features" Series

    This is the last part of a series on New WPF Features The list of features covered here as part of this series: · MultiTouch · DatePicker\Calendar · Datagrid · Visual State Manager (VSM) · Easing Functions · JumpLists · Pixel Shader 3 support · Cached Composition · Full...
  • Blog Post: New WPF Features: MultiTouch

    This is part of a series on New WPF Features WPF supports multitouch API’s in .NET 4. You can have touch and manipulation operations on all the UI elements. For creating a touch based app, you would need to subscribe to the events: · TouchDown · TouchEnter · TouchLeave · TouchMove ...
  • Blog Post: New WPF Features: DatePicker\Calendar\VSM\Datagrid

    This is part of a series on New WPF Features These controls have been part of the WPF toolkit on Codeplex. They are now making their way into the framework. You can get the usage details from the codeplex site WPF Toolkit: DataGrid Feature Walkthrough WPF Toolkit: Visual State Manager Overview...
  • Blog Post: XAML 2009 Features: FactoryMethod\Arguments

    This is part of a series on New WPF\XAML Features Another new feature in XAML 2009 is the possibility of creating objects using the non-default constructors. The keyword here is x:Arguments So creating a person object with a constructor requiring Name\Age could be written in XAML as < local...
  • Blog Post: XAML 2009 Features: Generics Support

    This is part of a series on New WPF\XAML Features XAML 2009 supports generics J .. In previous releases, if you needed to have an observableCollection for databinding you would probably have written code like class PersonCollection :ObservableCollection < Person > {} < l : PersonCollection...
  • Blog Post: New WPF Features: SynchronizedInputPattern

    This is part of a series on New WPF Features In previous releases, sending input through automation was tricky mainly because the app and the automation processes were separate. The app state could change between the time the input was sent and received. As an example, suppose you need to click something...
  • Blog Post: New WPF Features: PixelShader3 Support

    This is part of a series on New WPF Features Previously WPF only supported Pixel Shader 2.0 (PS 2.0). For this release, we added PS 3.0 support providing the benefits of more instructions, registers .... The usage is similar as before. However, we have provided an API to determine if the shader...
  • Blog Post: New WPF Features: UIA Virtualization

    Pre .NET 4, from a UI automation perspective, virtualization was not a good story. There wasn’t a standard way of dealing with virtualized controls, since some would expose only the visual elements while the others would create an automation tree that had every element. To fix this problem, in .NET 4...
  • Blog Post: XAML 2009 Features: Named Object References

    This is part of a series on New WPF\XAML Features In previous releases, if you needed to reference a named object, your XAML would look something like < Label Target =' { Binding ElementName =firstNameBox }' > _Target </ Label > < TextBox Name = 'firstNameBox' > Uses Binding...
  • Blog Post: New WPF Features: Updated File Dialogs

    This is part of a series on New WPF Features In previous releases, WPF open\Save dilogs had the XP style even on Vista. Some workarounds were to use the Vista bridge library or use the winforms dialogs. For this release we fixed this issue. You now get the OS style dialogs :) ... Usage wise its the...
  • Blog Post: XAML 2009 Features: XAML Event handling

    [ This is part of a series on New WPF\XAML Features] In previous releases, when loose XAML had events in it and was loaded it would crash. In V4, there are 2 options to avoid this crash. à On loading events are searched on the root object of the XAML file. Suppose you had the loose XAML like the...
  • Blog Post: New WPF Features: Cached Composition

    This is part of a series on New WPF Features One of the big improvements in 4.0 is the Cached Composition feature in graphics. This feature enables caching a live UIElement as a bitmap, which enables quick rendering of the element as a bitmap. The UIElement is user interactive and hence will respond...
  • Blog Post: XAML 2009 Features: Node Loop flexibility

    [ This is part of a series on New WPF\XAML Features] So by now most of you must have noticed the System.Xaml dll as part of your .NET 4 WPF projects. It’s a well componentized XAML stack that provides a lot of flexibility working with XAML. So at the core we a System.Xaml.XamlReader and XamlWriter...
  • Blog Post: New WPF Features: Full Trust Xbap Deployment

    This is part of a series on New WPF Features In earlier versions, on trying to deploy a Full Trust Xbap, you would get a "Trust Not Granted" error. Its possible to workaround this issue by installing an assembly in the GAC that has the AllowPartiallyTrustedCallersAttribute. Another option is to install...
  • Blog Post: Xaml 2009 Features: Built in Types

    In Xaml2009, we have built-in support for common CLR types which simplifies authoring. So rather than specifying something like < s:String xmlns:s ="clr-namespace:System;assembly=mscorlib"> Foo </ s:String > We can use the notation < x:String > Foo </ s:String > The list...
  • Blog Post: New WPF Features: Bindable Run

    This is part of a series on New WPF Features Bindable run - yeah its possible currently but you would require a custom implementation. if you didnt like to create your own implementation, likely you would be using textblock. Problem here is that its likely you would have issues in copy paste scenarios...
  • Blog Post: New WPF Features: Script Interop in Xbap

    This is part of a series on New WPF Features Often times you have Xbap hosted in a Html page and its pretty common to have some kind of interaction between the host and Xbap. In this release, we have enabled these scenarios. Operation Changes In Code Sample Invoking...
  • Blog Post: New WPF Features: Binding to Dynamic Objects

    This is part of a series on New WPF Features C# 4.0 allows creation of dynamic objects which is useful when you are interacting with dynamic languages. If you are unfamiliar with the dynamic concept take a quick look at this blog entry So back to WPF. We support binding to dynamic objects.. woohoo...
  • Blog Post: 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...
  • Blog Post: New WPF Features: Key\Gesture 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 didnt inherit...
  • Blog Post: 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...
  • Blog Post: New WPF Features: CaretBrush\SelectionBrush

    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...
  • Blog Post: 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...
Page 1 of 2 (29 items) 12