Anup Shah on WPF and Silverlight (Programming Garden)

IT 's For You!!!

Wednesday, February 27, 2013

WPF: Showing Tooltip on a disabled element



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

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


, ,