Sign In
Windows Phone Developer Tips
General Windows Phone developer tips including but limited to game programming tips. Also, general Silverlight news and announcements.
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search Blogs
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
game programming
msnow
Silverlight
silverlight 2
Visual Studio 2008
VS 2008
Archive
Archives
January 2009
(5)
November 2008
(25)
MSDN Blogs
>
Windows Phone Developer Tips
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Windows Phone Developer Tips
Silverlight Tip of the Day #29: Creating a Transparent, Draggable Dialog with Rounded Corners
Posted
over 3 years ago
by
msnow
1
Comments
For this tutorial we will step you through the basics of what you need to do to create a dialog that you can: Drag/drop. Add transparency (opacity) to. Round the corners. To preview and run this application please visit this link: http://silverlight.services...
Windows Phone Developer Tips
Silverlight Tip of the Day #28: How to Implement a Custom Mouse Cursor
Posted
over 3 years ago
by
msnow
3
Comments
In Tip of the Day #27 we talked about how to change the mouse cursor. But what if you want to have a cursor icon that is not supported by Silverlight? This tutorial will show you how to do it. For a complete demo of this tip visit: http://silverlight...
Windows Phone Developer Tips
Silverlight Tip of the Day #27: How to Change the Mouse Cursor
Posted
over 3 years ago
by
msnow
3
Comments
Let’s say you want to change the mouse cursor when hovering over a UI element. You can do this directly in the XAML by setting the Cursor property. For example, if you want to change the cursor to be the Hand cursor when hovering over...
Windows Phone Developer Tips
Silverlight Tip of the Day #26: How to Change the Output XAP File Name.
Posted
over 3 years ago
by
msnow
3
Comments
Don’t like the default name given to your XAP file? Good news! You can change it but there are two steps you will need to take. Step #1. Right click on your Silverlight application node in the solutions explorer and choose “Properties”. Choose...
Windows Phone Developer Tips
Silverlight Tip of the Day #25: How to Build the XAP File to the Debug/Release Folders
Posted
over 3 years ago
by
msnow
2
Comments
By default when you build your Silverlight application you will notice the XAP file is placed in your web sites ClientBin folder: This is regardless of whether you are building under Debug or Release configurations. In Visual Studio 2008 you can choose...
Windows Phone Developer Tips
Terrain Tutorial Part 1 – Creating a Scrolling Map
Posted
over 4 years ago
by
msnow
1
Comments
For this tutorial we will be generating a 2D scrolling map. The view is a straight down birds eye view. As shown in Figure 1 below, each terrain tile is represented by a combine upper-left and lower-right polygon. A map can be any width and height of...
Windows Phone Developer Tips
Silverlight Tip of the Day #24: How to Apply a XAML Template to a Class
Posted
over 4 years ago
by
msnow
1
Comments
Let’s say you have a class where you want to declare elements via a XAML template instead of dynamically creating them. For example, the XAML to declare an image and add it to a canvas would look like this: <Canvas x:Name= "MyCanvas" >...
Windows Phone Developer Tips
Silverlight Tip of the Day #23 – How to Capture the Mouse Wheel Event
Posted
over 4 years ago
by
msnow
0
Comments
Silverlight currently does not support mouse wheel events. However, you can attach an event to capture the mouse wheel movement through the HtmlPage object. This tutorial will show you how to do it for IE, Opera, Mozilla and Safari browsers. To start...
Windows Phone Developer Tips
Silverlight Tip of the Day #22 – How to add Sound Effects, Music and Video to your Silverlight App.
Posted
over 4 years ago
by
msnow
1
Comments
No game is complete without a great sound track and sound effects! This tutorial will show you how to do both with a very small amount of code. Demo: (Silverlight 2 RTW required). Silverlight currently supports the following formats: Video WMV1-3 (Windows...
Windows Phone Developer Tips
Silverlight Tip of the Day #21 – How to work with Shapes, Brushes and Gradients
Posted
over 4 years ago
by
msnow
1
Comments
Shapes, gradients and brushes provide the user with a lot of power to make custom controls that look beautiful. For example, gradients can be made to look like shadows or lighting for stunning visual effects. For this demo, we are going to make the beginnings...
Windows Phone Developer Tips
Silverlight Tip of the Day #20 – How to Increase your Isolated Storage Quota.
Posted
over 4 years ago
by
msnow
1
Comments
Each application by default is given 1 MB of storage space through Isolated Storage where the server is able to store client specific data on the clients machine. So what if you need more than 1 MB? Fortunately, the IsolatedStorageFile object provides...
Windows Phone Developer Tips
Silverlight Tip of the Day #19: Using Isolated Storage
Posted
over 4 years ago
by
msnow
1
Comments
Silverlight uses Isolated Storage as a virtual file system to store data in a hidden folder on your machine. It breaks up the data into two separate sections: Section #1 contains administrative information such as disk quota and section #2 contains the...
Windows Phone Developer Tips
Silverlight Tip of the Day #18: How to Set Browser Cookies.
Posted
over 4 years ago
by
msnow
1
Comments
Cookies are strings of text that the server can store on the client side. These cookies can then be sent back by the client to the server each time the client accesses that server again. Cookies are commonly used for session tracking, authentication,...
Windows Phone Developer Tips
Silverlight Tip of the Day #17: How to Animate a Rotating Image
Posted
over 4 years ago
by
msnow
1
Comments
Each Silverlight element exposes a property called RenderTransform that is used to set the transform information that affects the rendering position of the element. I will be demo’ing a non-stop circular transform rotation of an image as seen here below...
Windows Phone Developer Tips
Silverlight Tip of the Day #16 - StoryBoard versus DispatcherTimer for Animation and Game Loops.
Posted
over 4 years ago
by
msnow
1
Comments
In Tip of the Day #5 I discussed how to use the DispatcherTimer for your main game loop. However, a better approach may be to use the StoryBoard timer as discussed here or the CompositionTarget.Rendering event which was recently added to Silverlight 2...
Windows Phone Developer Tips
Silverlight Tip of the Day #15 – Communicating between JavaScript & Silverlight
Posted
over 4 years ago
by
msnow
1
Comments
Communicating between Javascript and Silverlight is, fortunately, relatively straight forward. The following sample demonstrates how to make the call both ways. Calling Silverlight From Java script: In the constructor of your Silverlight app, make a call...
Windows Phone Developer Tips
Silverlight Tip of the Day #14 – How to Right Click on a Silverlight Application.
Posted
over 4 years ago
by
msnow
3
Comments
You may have noticed that right clicking on a Silverlight application brings up the following context menu and configuration dialog: Context Menu: Configuration Dialog: So what if you want to use right click in your application? While right click functionality...
Windows Phone Developer Tips
Silverlight Tip of the Day #13 - How to Get an Images Dimensions in Silverlight.
Posted
over 4 years ago
by
msnow
1
Comments
Since Silverlight is based upon an asynchronized model, getting an image width and height immediately after loading it is not possible. However, you can monitor its download progress and obtain the image dimensions once the progress has reached 100%....
Windows Phone Developer Tips
Silverlight Tip of the Day #12 - Full Implementation of a Silverlight Policy Server.
Posted
over 4 years ago
by
msnow
1
Comments
Before a Silverlight application can connect to a server it must first successfully connect to a policy server on that machine in order to proceed with the connection. In this tip I will take you through every step you need to create and run your own...
Windows Phone Developer Tips
Silverlight Tip of the Day #11 – How to make your Silverlight Control Transparent.
Posted
over 4 years ago
by
msnow
1
Comments
[Blog Mirrored from http://silverlight.net/blogs/msnow/default.aspx ] In order to make your Silverlight control transparent to the background of your web site you have to do two things. From an ASPX page: Add the tag PluginBackground ="Transparent"...
Windows Phone Developer Tips
Silverlight Tip of the Day #10 – How to Dynamically Load and Display Images
Posted
over 4 years ago
by
msnow
1
Comments
[Blog Mirrored from http://silverlight.net/blogs/msnow/default.aspx ] Loading images in Silverlight is fairly straight forward. The first step is to create what’s called a Uniform Resource Identifier (URI). The URI is essentially a string that points...
Windows Phone Developer Tips
Silverlight Tip of the Day #9 – How to Capture the Size of your Browser when it is Resized.
Posted
over 4 years ago
by
msnow
1
Comments
[Blog Mirrored from http://silverlight.net/blogs/msnow/default.aspx ] For this tutorial, I will be showing you how to capture the size of your browser when it is resized. This is essential if you want to align your elements to the browsers borders, center...
Windows Phone Developer Tips
Silverlight Tip of the Day #8 - Silverlight Blogs and Resources
Posted
over 4 years ago
by
msnow
1
Comments
[Blog Mirrored from http://silverlight.net/blogs/msnow/default.aspx ] The following is my list of Silverlight Resources including blogs, tutorials and more. If you know of any other good ones please let me know as I will keep this list updated on a regular...
Windows Phone Developer Tips
Silverlight Tip of the Day #7: Creating Transparent PNG files for Silverlight
Posted
over 4 years ago
by
msnow
2
Comments
[Blog Mirrored from http://silverlight.net/blogs/msnow/default.aspx ] With GIF's, which aren’t supported in Silverlight2, transparency is fairly easy because you can just specify what color in that GIF you want to be your transparent color. With PNG's...
Windows Phone Developer Tips
Silverlight Tip of the Day #6: Monitoring for Keyboard and Mouse Events.
Posted
over 4 years ago
by
msnow
1
Comments
[Blog Mirrored from http://silverlight.net/blogs/msnow/default.aspx ] Silverlight 2 provides full support for keyboard and mouse event handling. Not only can you monitor events for the entire application but you can also monitor them at the individual...
Page 1 of 2 (30 items)
1
2