[Sample Of Aug. 14] How to Resize WPF panel on Runtime.

Aug. 14 Sample download: VS2013 version http://code.msdn.microsoft.com/How-to-Resize-WPF-panel-on-62fbbf12   VS2012 version http://code.msdn.microsoft.com/How-to-Resize-WPF-panel-on-de97abaf  VS2010 version http://code.msdn.microsoft.com//How-to-Resize-WPF-panel-on-637f7bce In WPF application, when controls are render user will not be able to resize them if required. If there is requirement for allowing users to resize the control on runtime, we can using this code. This document and the attached code sample demonstrates how we…

0

[Sample Of June 26th] How to add a hint text to a WPF TextBox

  Sample Download : http://code.msdn.microsoft.com/How-to-add-a-hint-text-to-ed66a3c6 This is a code snippet project. It will show you how to add a hint text to a TextBox in WPF applications. Many customers encounter problems when they try to implement such a function.  You can find more code samples that demonstrate the most typical programming scenarios by using Microsoft…

0

[Sample Of May 15th] How to search and highlight keywords in a TextBlock control in WPF

  Sample Download : http://code.msdn.microsoft.com/CSWPFSearchAndHighlightText-3b5e207a The WPF code sample demonstrates how to search and highlight keywords in a TextBlock control.   You can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search…

0

[Sample Of May 8th] How to display Enum in WPF ComboxBox

  Sample Download : http://code.msdn.microsoft.com/How-to-display-Enum-in-WPF-dc5d9e90 This code snippet demonstrates how to display friendly names in ComboBox from Enum.  You can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download samples…

0

[Sample Of Apr 24th] How to Edit XPS file in WPF

  Sample Download : http://code.msdn.microsoft.com/How-to-Edit-XPS-file-in-WPF-37c5ebd0 An XPS document is a paginated set of related pages. The pages have a fixed layout, are organized into one or more fixed documents, and stored according to the Open Packaging Conventions. This document and the attached code sample demonstrate how we can edit the text in XPS document programmatically.  You…

0

[Sample Of Apr 2nd] How to use multi-touch events to manipulate a 3D scene in WPF applications

  Sample Download : http://code.msdn.microsoft.com/CSWPF3DMultiTouch-17e457ba This sample demonstrates how to use multi-touch events to manipulate a 3D scene in WPF. It renders an earth. You can use your fingers to rotate the earth in any directions (not only along the latitudes and the longitudes). You can also use the standard scale (zoom) gesture to scale the…

0

[Sample Of Mar 20th] How to view word document in WPF applications

  Sample Download : http://code.msdn.microsoft.com/CSVSTOViewWordInWPF-d0619184 The Sample demonstrates how to view word document in WPF applications. WPF does not support to view Word documents directly but some customers want to show word document in WPF. So we can use WPF DocumentViewer control to host fixed document such as XPS document. And we also can convert word…

0

[Sample Of Jan 19th] How to display a series of photos with wipe effect in WPF

  Sample Download : http://code.msdn.microsoft.com/CSWPFAnimatedImage-489e93e7 The sample demonstrates how to display a series of photos just like a digital picture frame with a “Wipe” effect.     You can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give…

0

[Sample Of Jan 14th] How to define and access shared resources in WPF Class Library

  Sample Download : http://code.msdn.microsoft.com/CSWPFSharedResources-4d5f6e2a This sample demonstrates the approach of Defining and using shared resources in WPF class library. Accessing shared resources using markup extension. Normally in a WPF class library the resources used in the controls will not be reflected at the design time. This approach of combining the shared resources along with…

0

[Sample Of Dec 27th] How to add validation to a ListBox in WPF

  Sample Download : http://code.msdn.microsoft.com/CSWPFListBoxValidation-a3023d06 The sample demonstrates how to add validation to a ListBox, overriding the control to contain a ValidationListener property, which can be bound to provide validation using built in validation UI features in WPF.   You can find more code samples that demonstrate the most typical programming scenarios by using Microsoft…

0