tag:blogger.com,1999:blog-6104115443112731912024-03-13T00:10:40.206+01:00web-snippetsThis is my personal weblog. It does not reflect the opinion of my employer in any way.Robhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.comBlogger41125tag:blogger.com,1999:blog-610411544311273191.post-25261041701812023602010-08-15T16:54:00.004+02:002010-09-11T15:46:11.336+02:00SLSharpZipLib for Silverlight 3, 4 and Windows Phone 7Since the initial port of the SharpZipLib library I wasn't able to invest any more time in the development of the library.A while ago I was contacted by Sky Sanders who offered to do some further development on the library. I didn't hear much of his progress until a while ago when he informed me he did a complete re-port of the 0860 source complete with the tests both as NUnit and as well as Robhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.com2tag:blogger.com,1999:blog-610411544311273191.post-20570019367962007242009-11-28T14:23:00.001+01:002009-11-28T14:23:46.275+01:00Silverlight 4 - Drag and drop images on a Silverlight applicationOne of the great new features of Silverlight 4 is drag-drop. This makes it possible to drag files from your OS onto the Silverlight application.   In this tutorial we’ll create a ListBox and make it possible to drop images from the desktop onto the application. The images will then appear in the ListBox.   First steps First of all we’ll create a “normal” Silverlight 4 App + WebsiteRobhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.com4tag:blogger.com,1999:blog-610411544311273191.post-82834332090890491092009-11-19T19:40:00.001+01:002009-11-19T19:40:04.965+01:00Silverlight 4 – Using the webcamYesterday the beta release of Silverlight 4 was announced. Of course I couldn’t resist to get started with one of the items on my personal wish list (and on lots of other peoples wish list as well).   Using the webcam in Silverlight 4 turned out to be a quite easy process. I only needed about 8 lines to get it started. A few lines more and I have an application which starts and stops the Robhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.com0tag:blogger.com,1999:blog-610411544311273191.post-56005808053230744812009-11-02T12:40:00.000+01:002009-11-02T15:07:20.443+01:00Silverlight & Expression Usergroup in the NetherlandsI'm pretty proud to announce that Silverlight & Expression Insiders, the first Silverlight & Expression user group in the Netherlands, is starting it's activities.Together with a number of other enthousiastic professionals we created a website. In the near future we will start more activities like organizing events and publishing articles.If you want us to keep you posted, register on the Robhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.com0tag:blogger.com,1999:blog-610411544311273191.post-4230793464640805102009-07-12T21:22:00.001+02:002009-07-12T21:47:30.213+02:00TextBox with automatically resizing of the fontsizeView the demo  Download the source   A while back I ran into this textbox that automatically made the font smaller when the text was larger than the size of the textbox. I wanted to recreate one in Silverlight. The textbox had to have a property for the minimum size of the font. We don’t want our users to see a textbox with a font of 0.25 pixels. That wouldn’t be a good user Robhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.com3tag:blogger.com,1999:blog-610411544311273191.post-82366206274511211132009-04-23T18:35:00.007+02:002009-04-23T19:02:09.091+02:00Open in Expression Blend - switch between 2 and 3Since Silverlight 3 is available, Blend 3 Preview was also released. When installing Silverlight 3 tools it is no longer available to create Silverlight 2 applications. Thanks to Amy Dullard who created an awesome batch file/deinstaller/installer script it makes life a lot easier.The only thing that was bugging me was Expression Blend 2 and 3. Although the Silverlight 2 tools are installed, once Robhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.com5tag:blogger.com,1999:blog-610411544311273191.post-38715869060927241632009-03-29T23:47:00.005+02:002009-04-01T10:51:21.627+02:00Automatically translate your Silverlight ApplicationGet the source now (58Kb)UPDATE: Thanks to my colleague Emile van Ewijk who pointed out the the is keyword in C# does the same as the extension method that was used, I could refactor and optimize the code. So the source is updated. Thanks, Emile! (and shame on me for not knowing that...)Let me start by saying that I’m no great fan of automatic translations. I rarely come across an automatically Robhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.com3tag:blogger.com,1999:blog-610411544311273191.post-81981032369972509912009-03-20T18:25:00.001+01:002009-03-20T18:25:56.550+01:00Dag 2 op MIX09De 2e dag op MIX begint met een, voor ons, wat minder interessante keynote. De eerste helft is prima, daar wordt namelijk de nieuwste versie van Internet Explorer officieel gereleased (versie 8). Het 2e gedeelte is een keynote van Deborah Adler. Zij is een designer die, nadat haar oma bijna overleed door het nemen van verkeerde medicijnen (die van haar man), een verbeteringsslag heeft gemaakt Robhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.com1tag:blogger.com,1999:blog-610411544311273191.post-91791863064462615312009-03-19T16:40:00.001+01:002009-03-19T22:25:16.849+01:00Dag 1 op MIX09Dag 1 was erg verassend, interessant en erg gezellig. We hebben bij de keynote een aantal aankondigingen gehoord, waaronder Silverlight 3 beta 1 wat wel de verwachting was. Andere releases die gisteren plaatsvonden zijn: Commerce Server 2009 Expression Blend 3 preview Superpreview   SuperPreview Superpreview is een applicatie die in de nieuwe versie (3) van Expression Web zit. Het Robhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.com1tag:blogger.com,1999:blog-610411544311273191.post-14130346882124016692009-02-04T18:30:00.001+01:002009-02-11T21:04:10.968+01:00Creating a ColorFillToy in Silverlight – part 3Click here to go to part 1 of the series Click here to go to part 2 of the series Click here to download the source Click here to view a demo   Allright, now we’re finally going to finish the colorfilltoy by adding the ColorPicker found in the SilverlightContrib library. To embed the ColorPicker in our application, the easy way would be to just throw it on our LayoutRoot. This Robhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.com0tag:blogger.com,1999:blog-610411544311273191.post-1212623766295306452009-01-28T19:43:00.048+01:002009-02-03T20:32:34.590+01:00Creating a ColorFillToy in Silverlight - Part 2Click here to view a demo of the application after part 2 of the tutorial/Click here to download the sourceIn part 1 of this tutorial we focused on the creation of the XAML for the ColorFillToy application. In this part, we will create the code to set the cursor and to detect the FillArea that we need to fill.Terence Tsang from shinedraw.com did the preparation for us, so we're going to reuse Robhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.com0tag:blogger.com,1999:blog-610411544311273191.post-21207691230940744502009-01-25T17:10:00.034+01:002009-01-25T21:07:10.016+01:00Creating a ColorFillToy in Silverlight - Part 1Hi,It's been a while since my last blogpost. It's been a bit of a hectic period lately.But not blogging doesn't mean not doing anything :) I've been working on some stuff which I'll blog about in the coming period. Like a deepzoom application for my aunt which enables her to show the bronze sculpture work she does in detail.But for now, I want to tell you something about the ColorFillToy I (re)Robhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.com8tag:blogger.com,1999:blog-610411544311273191.post-90253371607675049772009-01-02T10:04:00.006+01:002009-01-02T10:10:49.629+01:00MVP: ExpressionThis morning when I read my e-mail I noticed I had a message in my junk e-mail.When I opened it, it said:Dear Rob Houweling,Congratulations! We are pleased to present you with the 2009 Microsoft® MVP Award! This award is given to exceptional technical community leaders who actively share their high quality, real world expertise with others.As you can imagine I am very proud of this and hope to Robhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.com6tag:blogger.com,1999:blog-610411544311273191.post-51160418281876580062008-11-02T14:53:00.009+01:002009-05-08T14:45:24.337+02:00Another one on repacking XAPs to reduce filesizeI've seen quite some articles on repacking your XAP file to reduce the filesize. You can do this manually by using archiving utilities like 7-ZIP, WINRar or the Windows built in zip support.Delay did a great article on this which inspired me to do the following:I created a very small application called ReXapper.exe which can do exactly the same as Delay describes but there is no external Robhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.com10tag:blogger.com,1999:blog-610411544311273191.post-843829847874356412008-10-13T19:34:00.016+02:002008-10-14T21:50:21.734+02:00Clipboard support in Silverlight 2* UPDATE *The demo now works with Silverlight 2 RTW and the ClipboardHelper has been added to the source of the SilverlightContrib project. It'll be in the next release.By default, there is no clipboard support in Silverlight 2. Page Brooks, who is the project coordinator of the open source project SilverlightContrib I'm working on with a bunch of other developers (I feel really honered to work Robhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.com3tag:blogger.com,1999:blog-610411544311273191.post-87246262693472852552008-09-20T10:40:00.005+02:002008-09-20T10:53:33.391+02:00Sneak previewDon't tell Jeff, but here's a preview of another one of the projects in Foundation Silverlight 2 Animation.I made a little modification to this compared to the one that you'll create from the instructions in the book, assuming you're going to get it of course :).To make the dragon move more "natural" I used a DispatcherTimer with a random duration to make it change direction at a random Robhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.com0tag:blogger.com,1999:blog-610411544311273191.post-36209509211484967212008-08-21T19:43:00.097+02:002009-04-22T09:58:42.279+02:00Authentication in Silverlight using ASP.NET FormsAuthenticationOn the Silverlight forum I've seen a lot of questions regarding authentication and security.I figured I'd write something down from my perspective as an ASP.NET developer. This isn't the only way to do it and probably not the best, but it does what I need it to do and it might get you started in the right direction.IMPORTANT NOTE: This article is built with the assumption that all files requestedRobhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.com7tag:blogger.com,1999:blog-610411544311273191.post-19149194260607361492008-08-18T12:21:00.004+02:002008-08-18T12:39:17.451+02:00Announcing Foundation Silverlight 2 AnimationPast weeks it's been a bit slow on my blog and I haven't been participating on the Silverlight.net forums as much as I would like to.The reason for this is that I've been pretty busy on a big project.Jeff Paries, author of multiple books on animation and now the author of "Foundation Silverlight 2 Animation", approached me to do the technical editing of the book and the (150) projects that are Robhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.com0tag:blogger.com,1999:blog-610411544311273191.post-39636209934223675722008-08-05T21:28:00.002+02:002008-08-05T21:31:19.886+02:00Silverlight SharpZipLib on CodePlexToday I added the code for the ported version of the SharpZipLib for Silverlight to CodePlex.If you want to download the DLL or the source go visit http://www.codeplex.com/slsharpziplibRobhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.com0tag:blogger.com,1999:blog-610411544311273191.post-24900832637223511362008-07-22T18:47:00.004+02:002008-12-10T10:14:29.169+01:00PanoCube in Webdesigner MagazineFor the panocube project, created by Martijn Croezen and me, we teamed up again and wrote a tutorial for Webdesigner Magazine.It's in store starting today, so get it while it's hot!Robhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.com0tag:blogger.com,1999:blog-610411544311273191.post-7476119450666145592008-06-23T21:48:00.033+02:002008-06-23T22:54:31.818+02:00Creating a sketch application in Silverlight - Part 2, Saving the sketch on the serverIn the second part of this tutorial we're going to pick up where we left off. So we can open the SketchApplicationPart1 solution from the first part of the tutorial (or you can download the source of the second part of this one at the end of this tutorial).Now we're going to create a way to save the drawing to the server using SharpZipLib in Silverlight, to zip the XML file before sending it to aRobhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.com3tag:blogger.com,1999:blog-610411544311273191.post-32174985378543274412008-06-23T20:59:00.037+02:002008-06-23T22:50:55.198+02:00Creating a sketch application in Silverlight - Part 1, Sketching on the InkPresenterAs some of you know, I try to help people out on the Silverlight Forum. It's nice to help people and I have learned a lot by doing that.One of the members of the forum (RamsZone) had a question about saving strokes that are drawn on the InkPresenter. Since I was already working on a sketch application and had already solved that puzzle, I promised him/her to post an article on my weblog Robhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.com0tag:blogger.com,1999:blog-610411544311273191.post-18162545058129278042008-06-20T13:08:00.030+02:002008-06-20T14:16:22.211+02:00Enabling browser back button in Silverlight 2 beta 2Who hasn't encountered the problem of not being able to use the browser buttons when navigating a Flash, Silverlight or AJAX enabled website?This articles describes how you can prevent this in your Silverlight application.In this article I will explain how to use a class created by Mark Rideout for his TechEd presentation during this year's TechEd in the US. 1. Implement the Robhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.com4tag:blogger.com,1999:blog-610411544311273191.post-35730082502068557112008-06-08T14:18:00.010+02:002008-06-08T14:50:28.935+02:00How to detect NO mouse movementIn some occasions you might want to show or hide stuff in your Silverlight application when the visitor stopped moving his/her mouse.For instance, most media players use this method to hide the play/pause/forward/mute controlbar.You can achieve this by doing following this:1. Create a DispatcherTimerprivate DispatcherTimer _nomousemoveTimer = new DispatcherTimer();2. Use the constructor of your Robhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.com1tag:blogger.com,1999:blog-610411544311273191.post-16714375632557546242008-05-20T20:37:00.001+02:002008-05-20T20:37:38.165+02:00Manually controlling storyboard animationFor an animation I did for a customer I wanted it to start the storyboard when the mouse enters and to play backwards, until the state it started in, when the mouse leaves the object. At this time, in Silverlight 2 beta 1, there is no method I found to play a storyboard backwards from a custom position in the timeline. There is an option to AutoReverse the storyboard but this only occurs when Robhttp://www.blogger.com/profile/07014938146985100402noreply@blogger.com2