Tuesday, February 01, 2011

Multi line ToolTip in Silverlight App

2 days back I came across a requirement in my Silverlight 4 project where I need to display a multiline tooltip on my control… if it is just a tooltip then its very simple requirement. we can just use

ToolTipService.ToolTip="tool tip text”.


or we can also bind it to some object and set the tool tip text to that object. e.g.



ToolTipService.ToolTip="{Binding ActivityToolTip}"


but what if I want to display a tool tip which contains more than 1 line ?



one can simply say user “\n” in text, but there is problem. if you going to assign tooltip text in your XAML then you can not use “\n” in your XAML code. it will give you error. if you binding it and going to assign tool tip form your C# code then you can use “\n” but not in XAML code.



while searching I got a nice solution on MSDN forum which worked for me and now I can add multiline tooltip from my XAML code itself.



you can use 
 to define the new line character. so code will be like this



ToolTipService.ToolTip = “ ToolTip Line 1 
 ToolTip Line 2 
 ToolTip Line 3”



and the out for above will be tooltip like -



ToolTip Line 1



ToolTip Line 2



ToolTip Line 3

Monday, January 31, 2011

Free In-depth Windows Azure Training Videos

Windows Azure Jump Start Training Videos!

Microsoft hosted another new and exclusive Jump Start virtual training event, this time covering the Windows Azure Platform.

“Building Cloud Applications using the Windows Azure Platform” was tailored for application architects and developers interested in leveraging the cloud.

Who is the target audience for this training?

  • Application Architects and Developers
  • Customers and partners already building a Windows Azure pilot project or planning to migrate an application to the Windows Azure Platform
  • Companies searching for real-world answers as they consider whether or not the Windows Azure Platform fits their needs.

Wednesday, November 10, 2010

Could not load type System.ServiceModel.Activation.HttpModule

 

Just faced one problem with my Windows Server 2008 R2 server while configuring my Silverlight WCF application for demo…

my application was working fine on my localhost and it fail to start when I uploaded to my demo server, and I got following error message…

“Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.”

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

This error can occur when IIS is installed after installing .NET Framework 4, or if the 3.0 version of the WCF Http Activation module is installed after installing IIS and .NET Framework 4.

simplest solution to resolve this issue, run the following from command line:

aspnet_regiis.exe /iru

you can locate aspnet_regiis.exe at

  • %windir%\Microsoft.NET\Framework\v4.0.30319
  • %windir%\Microsoft.NET\Framework64\v4.0.30319 (on a 64-bit machine)

Monday, November 01, 2010

PUG Live Webcasts - An exclusive series of webcasts by Pune User Group

We are pleased to announce the launch of PUG Live Webcasts, an initiative by PUG team through which you will enjoy series of Webcasts on various Microsoft technologies. We are starting with Visual Studio 2010 and Windows Phone 7 Development series; very soon we will be coming up with SharePoint 2010, Silverlight and many more technologies.

for more details visit http://www.puneusergroup.org/live-webcasts.aspx

Wednesday, October 27, 2010

Free Microsoft Press eBooks available for download

List of some of Microsoft free eBooks:

From Microsoft Press web site  thanks to Abhishek Kant for sharing the list.