Justin's Blog

With the release of Silverlight 5 it is of course now difficult to find a download for the latest Silverlight 4 Developer Runtime for those of us developing for restricted client environments (again).

Silverlight 4 Developer Runtime 4.0.60831.0
http://silverlight.dlservice.microsoft.com/download/D/C/2/DC2D5838-9138-4D25-AA92-52F61F7C51E6/runtime/Silverlight_Developer.exe

Silverlight 4 Runtime 4.0.60831.0
http://silverlight.dlservice.microsoft.com/download/D/C/2/DC2D5838-9138-4D25-AA92-52F61F7C51E6/runtime/Silverlight.exe

Silverlight 4 SDK 4.0.60310.0, April 2011 Update
http://download.microsoft.com/download/B/9/B/B9BDD218-6974-4816-A309-0FC85A105521/sdk/silverlight_sdk.exe (from here: http://www.microsoft.com/download/en/details.aspx?id=15636). You should install this after you have installed the Silverlight 4 Tools for VS2010.

The above were found by going to Silverlight.net and selecting the “Silverlight 4 (Previous Version)” -> Silverlight 4 Runtime, however you have to use IE. Using Chrome resulted in downloading the latest version 5 runtime instead. Once downloaded I reviewed the final URL that was used to download, then changed Silverlight.exe to Silverlight_Developer.exe to get the developer runtime as well.

Here is a snippet that I use in my base view controller class to handle scrolling views that would be hidden by the keyboard when it appears. Any view within a UIScrollView can be made to scroll automatically to be visible when the keyboard appears over it.

This is based on the following Apple documentation example: Managing the Keyboard: Moving Content That Is Located Under the Keyboard.

Read the rest of this entry »

So it’s been almost a year and I have finally got around to finishing a new version of my screen capture project that supports Direct3D 9, 10, and 11! This solution still uses SlimDX for the Direct3D API wrapper along with EasyHook to perform the remote process hooking and IPC between the host process and target process.

Some of the changes since the previous version:

  1. 100% C# implementation
  2. Added Direct3D 10 and 11 support
  3. Capturing multi-sampled/anti-aliased images (for 10 & 11) is supported
  4. Re-organised code making it easier to support multiple D3D versions
  5. Implemented a new and improved test bed application
  6. Provided example overlays for D3D 9 and 10
  7. Improved debug messaging from Target application to Host (mostly removed when compiled with “Release” configuration)

Read the rest of this entry »

This one is for anyone who has had to deal with Company Standard Operating Environments (SOE’s), and the red tape involved with deploying updates to applications such as Silverlight.

We have been working on a Silverlight 4 application, and along the way our development environment had its Silverlight Tools and Runtime updated to a more recent version than what the SOE machines are currently running. When we went to test the deployment, of course nothing worked.

“Ok that’s cool” we said, “we’ll just install the previous versions of the Developer Runtime, SDK and Tools”.

After a few frantic minutes of searching through hard drives, and our development installation area (where it SHOULD have been), we discovered that we didn’t have a copy of what we needed.

“Ok that’s also cool” we naively said, “we’ll just download them from Microsoft”.

Have you ever tried to search for the download anything other than the current version of an application from download.microsoft.com? We discovered today what a nightmare it can really be!

A good while later, after of trawling through blog posts and comments about how to downgrade and where to download, we finally found the following three working links for what we need to compile for Silverlight 4.0.50524.0.

Silverlight 4 Developer Runtime v4.0.50524.0:
http://download.microsoft.com/download/C/5/8/C5877489-8022-42A6-8456-D05C2A6C8DFB/runtime/Silverlight_Developer.exe

Silverlight 4 Tools for Visual Studio 2010 (SDK v4.0.50401.0) - (compatible with v4.0.50524.0):
http://download.microsoft.com/download/5/B/4/5B46BF8A-9350-49D5-B1E7-7789818FBF41/Silverlight4_Tools.exe

And the runtime version installed in the SOE (just in case you want to test your application before trying to deploy):

Silverlight 4 Runtime 4.0.50524.0:
http://download.microsoft.com/download/C/5/8/C5877489-8022-42A6-8456-D05C2A6C8DFB/runtime/Silverlight.exe

Here are the links to information that helped us find it all.

1) Developer Runtime was found here: Silverlight Release History http://www.microsoft.com/downloads/en/details.aspx?familyid=1B7A3205-B5F8-4E20-BF42-792DE5923454&displaylang=en

We then changed the link for the version we found from Silverlight_Developer.exe to Silverlight.exe to get the standard runtime release without debug information.

2) A post from Tim Heuer showed us that there was no updated Tools/SDK so the original final release of the SDK (v4.0.50401.0) would work fine http://timheuer.com/blog/archive/2010/06/03/silverlight-4-minor-update-june-2010.aspx. The link to the original Tools was then found in a blog comment somewhere – sorry I can’t remember where it is, and can’t see it in amongst the 20 odd Chrome windows + tabs open .

Time Heuer’s blog also had some helpful information on downgrading your Silverlight installation (e.g. uninstall the current SDK, reinstall the one you want and away you go).

I hope this saves someone a few minutes of their time!

MonoTouch – UIView with curved border and shadow

Posted by: Justin S. on: January 8, 2011

Giving a UIView a curved border and then adding a drop shadow is much easier than I first thought it would be, but as with anything with iOS development it took some time to work out.

Here is a UIView descendant “UIViewBordered”:

Read the rest of this entry »

C# – Screen capture with Direct3D 9 API Hooks

Posted by: Justin S. on: March 29, 2010

Since investigating screen capture techniques for Direct3D applications a year ago I have wanted to look into hooking the Direct3D API to utilise the much faster GetBackBuffer for my screen captures. Well here it is at last – a mostly managed C# solution providing easy and safe hooking of the Direct3D 9 API thanks to EasyHook, supporting both 32-bit and 64-bit.
Read the rest of this entry »

Happy 1st Blog Birthday!!!

Posted by: Justin S. on: February 25, 2010

Yeah, what the title says, its now been a year since starting this thing :) There’s been a steady stream of visitors over the past year and hopefully I will have many more bits and pieces to post in the coming year. With the upcoming April release of VS 2010, SharePoint 2010, and .NET 4.0 there is sure to be a few things to add.

Some things to look forward to:

  • A new example showing how to hook Direct3D 9 and the same for Direct3D 10 – using Easyhook and C#
  • I’ll be doing some iPhone apps in the next few months with MonoTouch which should be interesting
  • Plenty of SharePoint 2010 development to be done once it has been released

- J

SharePoint 2007 – List Type Id’s

Posted by: Justin S. on: October 1, 2009

For mostly my own future reference here is a table of List Type Id’s found within SharePoint:

Read the rest of this entry »

C# – Enable / Disable DWM Composition (Aero)

Posted by: Justin S. on: September 30, 2009

As a follow up for C# – Screen capture with Direct3D, here is how to enable and disable composition (Aero) on Windows Vista and Windows 7.
Read the rest of this entry »

Development Tools – NDepend

Posted by: Justin S. on: September 7, 2009

I have been playing with NDepend for the past week or so, and have found it to be a useful addition to an Architect’s/Developer’s artillery for larger more complex projects.

NDepend is a static code analysis tool written by Patrick Smacchia (C# MVP) that simplifies managing a large/complex .NET code base.

Whether you are responsible for QA, code reviews, architecture, or day to day development on large complex projects, you will most likely find something useful in NDepend.

Selection by Metrics (top 10 lines of code count) and highlighting of those methods in the Metrics View

Metrics View: Hightlighting the top 10 methods based on number of lines of code.

Read the rest of this entry »

"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." (Martin Golding)

Tweets

Categories

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 17 other followers

 

January 2012
M T W T F S S
« Sep    
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Total Hits

  • 108,323 hits
Follow

Get every new post delivered to your Inbox.