Anup Shah on WPF and Silverlight (Programming Garden)

IT 's For You!!!

Thursday, March 14, 2013

Visual Studio 2010 Shortcuts (5. Build and Debug) Continue...

2:39 PM
Hello Guys!

This is very interesting I am gonna providing to you which helps you to manage as well as saves your time while coding

5. Build and Debug
f7 Build solution (or Ctrl+shift+b)
Ctrl+Alt+f7 Rebuild solution
Ctrl+break Cancel build process
Ctrl+\+e Show error list
f9 Toggle breakpoint
Ctrl+b Insert new function breakpoint
f5 Start debugging
f11 Debug / step into
f10 Debug / step over
Shift+f11 Debug / step out
Ctrl+f10 Debug / run to cursor
Ctrl+Alt+q Show Quickwatch window
Ctrl+Shift+f10 Set current statement to be the next executed
Alt+* (on numeric keyboard) Show nexst statement
Ctrl+Alt+e Show Exception dialog box
Ctrl+f11 Toggle between disassembly and user code view
Shift+f5 Stop Debugging
Ctrl+f5 Bypass debugger
Ctrl+Alt+p Show attach to process window
Ctrl+Alt+break Break all executing threads

Let me help to get more keys...
Happy Coding!!!

Visual Studio 2010 Shortcuts ( 4. Coding) Continue...

2:38 PM

Hello Guys!

This is very interesting I am gonna providing to you which helps you to manage as well as saves your time while coding

4. Coding
Ctrl+m+m Collapse / un-collapse current preset area (e.g. method)
Ctrl+m+h Collpase / hide current selection
Ctrl+m+o Collapse declaration bodies
Ctrl+m+a Collapse all
Ctrl+m+x Uncollapse all
Ctrl+m, ctrl+t Collapse Html tag
Edit Code
Ctrl+l Delete current line or selection of lines to and add to clipboard
Ctrl+Shift+l Delete current line or selection of lines
Ctrl+Delete Delete word to right of cursor
Ctrl+Backspace Delete word to left of cursor
Ctrl+Enter Enter blank line above cursor
Ctrl+Shift+Enter Enter blank line below cursor
Ctrl+Shift+u Make uppercase
Ctrl+u Make lowercase (reverse upercase)
Ctrl+k+c
Comment selected text
Ctrl+k+u Uncomment selected text
Ctrl+k+\ Remove white space and tabs in selection or around current cursor position
Ctrl+k+d Format document to code formatting settings
Ctrl+k+f Format selection to code formatting settings
Ctrl+Shift+space Display parameter required for selected method
Ctrl+Shift+8 Visualize whitespace (or press Ctrl+r, then Ctrl+w)
Ctrl+k+d Format document to code formatting settings
Ctrl+k+f Format selection to code formatting settings
Ctrl+Shift+t Transpose word to right of cursor; makes b=a out of a=b if cursor was in front of a
Ctrl+t Transpose character left and right of cursor; cursor between ab would make ba
Shift+Alt+t Transpose line: Move line below cursor up and current line down.
IntelliSense and Code Helper
Ctrl+Space Autocomplete word from completion list (or alt+right arrow)
Ctrl+Shift+Space Show parameter info
Ctrl+f12 Display symbol definition
f12 Display symbol declaration
Ctrl+j Open IntelliSense completion list

Let me help to get more keys...
Happy Coding!!!

Visual Studio 2010 Shortcuts (3. Code Editor) Continue...

2:37 PM
Hello Guys!

This is very interesting I am gonna providing to you which helps you to manage as well as saves your time while coding


3. Code Editor
Find, Replace, and Goto
Ctrl+fFind and replace dialog box
f3/Shift+f3Find next / find previous
Ctrl+hDisplay Replace options on the quick tab
Shift+f12Find all references for selected symbol
Ctrl+Shift+fFind in files
Alt+F3, sStop current find in files operation
Ctrl+F3/Ctrl+Shift+f3Find next / find previous in selected text
Alt+F12Find symbol
Ctrl+dPut cursor in find/command box of the toolbar. Use ctrl+/ in Visual C#
Ctrl+i/Ctrl+Shift+iIncremental search / reverse incremental search
Shift+Alt+f12Quick find symbol
Ctrl+,Display Navigate-To dialog box
Ctrl+g
Goto line number
Ctrl+]Go to matching brace in source file
Undo, Redo, Copy, Paste
Ctrl+x, Ctrl+x, Ctrl+vCut, copy, paste
Ctrl+Shift+vPastes an item from the Clipboard ring
Ctrl+zUndo
Ctrl+yRedo (or Shift+Alt+Backspace, or Ctrl+Shift+Z)
Select Text
Shift+Arrow KeysExtend selection one character/one line
Ctrl+Shift+End/ Ctrl+Shift+HomeExtend selection to end / to beginning of document
Ctrl+Shift+]Extend selection to nexst brace
Shift+End/ Shift+HomeExtend selection to end / to beginning of line
Shift+Page Down/ Shift+Page UpExtends selection down one page / up one page
Ctrl+wSelect current word
EscCancel Selection
Ctrl+Shift+Page Down/ Page UpMoves cursor and extend selection to the last line / first line in view.
Ctrl+Shift+Arrow right/ arrow leftExtend selection one word to the right / one word to the left
Ctrl+aSelect All   

Let me help to get more keys...
Happy Coding!!!

Visual Studio 2010 Shortcuts ( 2. Bookmarks) Continue...

2:36 PM
Hello Guys!

This is very interesting I am gonna providing to you which helps you to manage as well as saves your time while coding

2. Bookmarks
For keystrokes with two keys such as Ctrl+k+k, keep holding the Ctrl key until releasing the last key.
Ctrl+k+k Toogle bookmark
Ctrl+k+n Goto next bookmark
Ctrl+k+p Goto previous bookmark
Ctrl+Shift+k+n Goto next bookmark in folder
Ctrl+Shift+k+p Goto previous bookmark in folder
Ctrl+k+w Put focus on bookmark window
Esc Leave bookmark window and focus on editor
Ctrl+k+h Toggle code shortcut at current line*
Ctrl + K + L Clear all bookmarks

Let me help to get more keys...
Happy Coding!!!

Visual Studio 2010 Shortcuts (1. Manage Visual Studio) Continue...

2:34 PM

Hello Guys!

This is very interesting I am gonna providing to you which helps you to manage as well as saves your time while coding



1. Manage Visual Studio
Ctrl+s Save current file
Ctrl+Shift+s Save all files
Ctrl+Shift+n Create new project
Ctrl+o
Open file
Ctrl+Shift+o Open project
Ctrl+Shift+a Add item to project
Esc Close menu or dialog
Ctrl+p Print
Shift+Alt+Enter Toggle full screen mode
Ctrl+f4 Close current tab
Ctrl+f6/Ctrl+Shift+f6 Go to next / go to previous window
Ctrl+Tab, then Arrow keys Press and hold Ctrl+Tab, then using arrow keys gives a small task manager with all open files and views




Let me help to get more keys...
Happy Coding!!!

Wednesday, February 27, 2013

WPF: Showing Tooltip on a disabled element

2:34 PM


WPF: Showing Tooltip on hovering over disabled element


To show the tooltip while hovering over disabled element, use the ShowOnDisabled attached property of the ToolTipService class! From XAML.
Syntax:



<Button ToolTipService.ShowOnDisabled="True"></Button>



Or from C# code, you can call the static method corresponding to the attached property:
ToolTipService.SetShowOnDisabled(myButton, true);

Note: If you want to close the tooltip that is currently showing then,
Set its IsOpen property to false.

Happy Coding!!!

Thursday, February 21, 2013

Portable Library Tools

2:25 PM
I came across Microsoft's Portable Library Tools add-in for Visual Studio supports the cross-platform development of .NET Framework apps Click Here to download...

Write and Build Portable assemblies that work without modification on multiple platforms, 
such as Windows 7, Windows 8, Silverlight, Windows Phone, and Xbox 360.

For example,

you can create classes that contain shared business logic for desktop apps, Windows Store apps, and mobile apps, and you can then reference those classes from your apps.

The Portable Class Library project supports a subset of assemblies from the .NET Framework, Silverlight, .NET for Windows Store apps, Windows Phone, and Xbox 360, and provides a Visual Studio template that you can use to build assemblies that run without modification on these platforms.


With the Portable Class Library project, you can reduce the time and costs of developing and testing code by building portable assemblies that are shared across apps for different devices.


Download The Portable Class Library

Target Platforms:
Platform
Versions
.NET Framework
.NET Framework 4 and later
Update 4.0.3 and later platform updates for the .NET Framework 4
.NET Framework 4.5 (selected by default)
Silverlight
Silverlight 4 and later (selected by default)
Silverlight 5
Windows Phone
Windows Phone 7 and later (selected by default)
Windows Phone 7.5
.NET for Windows Store apps (*)
N/A
Xbox 360
N/A

Features:


















Base Reference Sites:
http://msdn.microsoft.com/en-us/library/gg597391.aspx#prereq
http://visualstudiogallery.msdn.microsoft.com/b0e0b5e9-e138-410b-ad10-00cb3caf4981