Saturday, May 29, 2010

Built-in WPF IValueConverters

Here is the list of Built-in WPF converters. First is the list of Converter which are derived from IValueConverter interface.
AlternationConverterConverts an integer to and from an object by applying the integer as an index to a list of objects.
BooleanToVisibilityConverterRepresents the converter that converts Boolean values to and from Visibility enumeration values.
JournalEntryListConverter This type or member supports the Microsoft .NET infrastructure and is not intended to be used directly from your code.
ZoomPercentageConverter Implements a type converter for converting Double (used as the value of DocumentViewer.Zoom) to and from other types.
And here is the list of Converter which are derived from IMultiValueConverter interface.

BorderGapMaskConverter Represents a converter that converts the dimensions of a GroupBox control into a VisualBrush.
JournalEntryUnifiedViewConverter JournalEntryUnifiedViewConverter merges navigation back history and navigation forward history (as exposed by Frame or NavigationWindow) into a single, Windows Internet Explorer 7-style navigation menu.
MenuScrollingVisibilityConverter Represents a data-binding converter to handle the visibility of repeat buttons in scrolling menus.
ProgressBarBrushConverter Creates the Brush used to draw the ProgressBar.
ProgressBarHighlightConverterCreates a DrawingBrush used to draw the highlighting for the ProgressBar.

If you have information regarding build-in converter then do tell me I will include it in the list. So that all the build-in converter can be found on same location.

All and any comments / bugs / suggestions are welcomed!

Wednesday, May 12, 2010

How to set offline Help for Visual Studio 2010

In this post I will show you how you can set the offline help in visual studio 2010, which is new feature provided by the visual studio 2010. Here are the step you need to follow in order to setup the offline help for the VS 2010.

Step 1

First of all lunch the Help Library Manager, below are two ways of lunching the help library manager, you can either select it from the start menu or you can lunch it from the visual studio, I have mark both in image below, you can choose which ever way to feel easy.

Image 1

In the second step you will choose the option of "Choose th

Image 2

When you select Help Library Manager option from above two ways the screen below will appear for futher action. Here you have 5 options which are 1) Choose online or local help 2) Check for updates online 3) Install content from online 4) Install content from disk 5) Remove content.

Image 3

Step 2
e online or offline help" option, to select you choice about your help , whether you want save the content of help offline. When you click this option following secreen will be open, here you can see that I have selected "I want to use local help" option, for offline help use.

Image 4

Step 3
Now select click "Install content from disk". Here you have Browse button , by click on it it will ask you to find the "HelpContentSetup.msha " which is located in the setup folder. Here Visual studio 2010 ultimate x86 is the folder name and rest of the path you can see in the image below.

Image 5

Step 4
Select the file and click "OK". The next window shows the content available on the media, and any content that is already installed.

Step 5
Select the content to install by clicking the "Add" action next to the content title. When you are finished selecting content to install, click the "Update" button at the bottom of the screen.

Step 6
HLM will install the content and report on its progress.

All and any comments / bugs / suggestions are welcomed!

Saturday, May 8, 2010

SilverLight 3 TransitionContentControl

In this short post I will show you how you can use the transition content control of silverlight 3. When I have used it I really like the functionality of the transition content control as it provide some basic animation when changing the content of the control.Transition content control is used to show a single piece of content and when that content changes performs a transition animation.Below is the output of the example I have used for the transition content control.
In this example I have used the Content Template property of the transition content control and design the display area of my information. Here you can see that I have used to display the image of the person which is displayed here.

I have used the customer class which have many attributes of the customer like company name, contact name, contact title,address, city, postal code, country, phone and fax. The display of the each property is in following order, First is the company name at the top or you can say at the header of the card, then the contact person name , then contact person title, then country, city, and after that I have also used the label with each property.
Next I have two buttons control one is the next and second one is the previous. When the next button is click then the next record is shown and the for previous the records are shown in reverse order.
In click event of the both the next and previous button I have use the Transition property of the control which is used to gets or sets the name of the transition to use. These correspond directly to the VisualStates inside the PresentationStates group.For the next button click I have used the UpTransition string and for previous button click I have use DownTransition string name. And In each of button click I have call the function GetCustomerRecord which will return the next/previous customer record depending on the value of the Boolean type parameter. True mean next record and false mean previous record. For this function I have used counter which will increment for next record and decrement for previous record. And each time it is called it will return single record from customerRecord list which is initialize when the page is loaded. The return value which is a customer record is assigned to the content of the transition content control which will bind each of the control on it template to new values.Hope you get some starting point about the transition content control.You can download the source code from here
All and any comments / bugs / suggestions are welcomed!