Here I will demonstrate you creating a Sample Application using Expression Blend. You don’t have to write a Single line of Code using Visual Studio.
A Simple Application using Silverlight Physics Helper Library
Recently I was interested to work with the Physics Helper for Silverlight. I saw couple of demos on net which uses the Physics library for Silverlight to create good animations with Friction logic. Yeah, friction. You can drop a ball on a surface which will bounce over that surface. I found it very interesting and thought to create a Simple Demo for it.
Here I will demonstrate you creating a Sample Application using Expression Blend. You don’t have to write a Single line of Code using Visual Studio.
Is it? Yes, lets start doing that.
Here I will demonstrate you creating a Sample Application using Expression Blend. You don’t have to write a Single line of Code using Visual Studio.
Silverlight 4: Interoperability with Windows 7 Taskbar using COM
Microsoft released Windows 7 last year which has lots of functionalities including a nice UI. Among those features one of the most user friendly feature is Pin/Unpin application to Taskbar. You can develop WPF or Windows Forms applications in which you can implement this feature. But do you know that this is also possible in Silverlight? Yes, Silverlight 4 has the power to talk with any other application using the COM API. You can read one of my earlier article [Silverlight 4: Interoperability with Excel using the COM Object].
In this Article I will show you how we can talk with the Windows 7 Taskbar. Read the complete Article and provide your feedbacks or suggestions.
In this Article I will show you how we can talk with the Windows 7 Taskbar. Read the complete Article and provide your feedbacks or suggestions.
Categories:
.Net
,
Interoperability
,
Silverlight
,
Web
,
Windows7
Microsoft Expression Studio 4 Released
You can download it from Microsoft Expression Studio site.
Please note that, if you are developing in Silverlight for Windows Phone 7 and want to use Expression Blend, don’t install this version of Expression Studio. Continue working with the Expression Blend 4 Beta and the Windows Phone 7 CTP Tools for developers. Once the Windows Phone SDK releases, there will be service pack for Expression Studio.
Categories:
ExpressionBlend
,
ExpressionStudio
,
News
,
Silverlight
,
Tips
,
WP7
,
WPF
Tips & Tricks - Working with Event Handler
Sometimes we write the following code while working with EventHandler and that may create some problems. I will discuss this later on. Let us see the code:
private void RaiseOperationComplete(EventArgs e)
{
if(OperationComplete != null)
{
OperationComplete(this, e);
}
}
In the above case, suppose two thread subscribed to the same OperationComplete handler and one unsubscribed the event. In such scenario the OperationComplete event will become null and for the next thread due to the event is null it will not execute. This happens mainly in multithreaded applications but you can't guarantee for single threaded application too.
So what to do? How can we make sure that our application will not come into such situation and work properly?
private void RaiseOperationComplete(EventArgs
{
if(OperationComplete != null)
{
OperationComplete(this, e);
}
}
In the above case, suppose two thread subscribed to the same OperationComplete handler and one unsubscribed the event. In such scenario the OperationComplete event will become null and for the next thread due to the event is null it will not execute. This happens mainly in multithreaded applications but you can't guarantee for single threaded application too.
So what to do? How can we make sure that our application will not come into such situation and work properly?
Categories:
.Net
,
Silverlight
,
Tips
,
WPF