Blog

Go Back
  • Silverlight Printing

    I have had a project on my “I should build that” list for several years. I do volunteer work with the Racine/Kenosha Wisconsin Friends of the NRA. Every year, we (and many other FNRA groups across the USA) host an event that raises money to support the shooting sports community in Wisconsin. This money funds range improvements, youth hunting programs, events for veterans, and other things the local shooting sports community needs. Part of the fund raising is a raffle we do every year. To run the raffle, we print the tickets early and sell them in the months leading up to our big banquet in October. The ticket printing gig fell to me since I grabbed the job. For the past 2 years, I handled this job by printing the tickets from an Excel spreadsheet. I laid things out just so and was able to rifle through all the ...

    Comments0

    Full story

  • Incorporating Video into a Silverlight 4 Application

    html, body { height: 100%; overflow: auto; } body { padding: 0; margin: 0; } #silverlightcontrolhost { height: 100%; text-align:center; } Over the past week, I spent some time with Silverlight 4. I’m really impressed by how easy it is to incorporate video into an application. This post shows how to capture video from the camera and display the video on the screen. The post also handles grabbing single frames of video. You might use this type of arrangement to allow users to upload images, hold impromptu web casts, and to do video conferencing. I’ve uploaded a barebones application that turns on video capture and displays the video:   To understand how this works, you need to be familiar with the following objects: CaptureSource CaptureDeviceConfiguration VideoBrush The CaptureSource type encapsulates the methods needed to interact with audio and video devices. CaptureDeviceConfiguration acts as gatekeeper to the webcam and microphone. ...

    Comments1

    Full story

  • Silverlight/AppEngine InformIT Article in the Works

    One of the most popular posts on my blog is Hosting Silverlight on Google App Engine from back in March. With my .NET REST book officially hitting shelves last week, InformIT contacted me to write an article (or more!) to help promote the book and me. I suggested expanding the information to show how a Silverlight application could use App Engine as a platform and they said “sure”. Turnaround on the article will be tight—I owe it to them by May 8. I’ll announce when the article goes live. But for those of you waiting for the follow up, it’s coming! I’m writing the Silverlight side in C# to make sure it’s accessible to everyone. The AppEngine part is in Python. I appreciate all the visitors I’ve been getting and the positive feedback. You are awesome!

    Comments0

    Full story

  • Crossdomain Silverlight Hosting

    At work, I had a need for a line of business monitoring application to figure out server health. Due to the nature of the monitoring, it made sense to write this as a MySpace Developer Platform application, hosted in the browser. The display needs required a Rich Internet Application interface, meaning Flash, Silverlight, or heavy AJAX. I chose Silverlight, just because. Now, MySpace doesn't allow one to publish a Silverlight application, but that didn't stop me from writing an app for my own personal consumption. Given the nature of the application, I needed to host the Silverlight XAP file on a server separated from the JavaScript and web page that displayed the application. Silverlight doesn't like having JavaScript call into it unless the application manifest says that it is OK. It took me several hours to figure out the nature of why my scriptable objects, which worked fine in my ...

    Comments0

    Full story

  • Hosting Silverlight on Google App Engine

    Recently, I needed a place to store a compiled Silverlight assembly in a highly available environment. Ideally, the location needed to be free or on some web site that I owned. Since I've been getting comfortable with App Engine lately, I figured I would try setting up app-engine to host my file. The one thing that you need to do when return a Silverlight XAP file is make sure that it comes back with the MIME type set to application/x-silverlight-app. It turns out that this is pretty simple. I just added this to my app.yaml file:   handlers: - url: /SilverlightApp.xap   static_files: SilverlightApp.xap   upload: SilverlightApp.xap   mime_type: application/x-silverlight-app   With this, I have App Engine reliably serving up my page with Silverlight embedded.

    Comments5

    Full story