|
|
Browse by Tags
All Tags » .NET 3.5 » .NET (RSS)
-
One Tweet by Oliver Sturm (http://twitter.com/olivers) the other day got me to thinking. He was asking about the possibility to host graphics for a web site in XAML format, and the best way to render it. Currently, there are 3 possible ways that I know of to render XAML in a web browser Loading the XAML file directly in an IFRAME will trigger Windows Presentation Foundation on the client (if available). The IFRAME can be positioned in the page so the it "blends" with the HTML page. That's only for Windows (IE and Firefox) and requires .NET 3.0 (or preferably 3.5/3.5 SP1) installed on the client. I wouldn't recommend that solution. Silverlight can load loose XAML files. However, Silverlight XAML is less powerful than WPF XAML. Not all controls and features are supported. Also, it requires a plug-in to be installed on the client. The plug-in is available for a number of platforms, but still. More lightweight than solution 1, but still not ideal to render static images. Rendering the XAML Read More...
|
-
The news took the community by surprise and the reactions are overwhelmingly positive: Microsoft is going to ship jQuery with the ASP.NET MVC framework (very soon) and with Visual Studio (in a near future). For more details, ScottGu and Scott Hanselman are talking about that in a very complete way. I think it's great news on many levels. First, because I hear that jQuery is a great framework. I must admit I never used it, because I didn't do much web development lately (but I will get back to it in a number of private projects soon) and also because I am usually wary of frameworks and prefer to develop my own JavaScript. Of course this is only viable because I used JavaScript mainly on small private projects for the past few years, and I wanted to have the learning effect of programming against it directly instead of having a higher level framework to "talk to". I think that now is the time for me to look more into it, however, and this is just what I will do for my site www.galasoft.ch Read More...
|
-
So many people blogged about it already (time difference, and fun dinner last night, so I am late :) that I prefer to just point the reader to the best possible source of information: Scott Guthrie's blog . It cannot be stressed enough that this release is for developers only. It might very well be the last release before the final is made available, so it's a chance for people with Silverlight content to update their code. The public runtime will not be updated to RC0 automatically. So do *not* publish RC0 code to your web servers yet, because it will break the user experience! I played with these bits quite a lot and they're really good. Many bugs have been fixed, and many corrections have been added to make it more compatible with WPF, which is really a must. Also added are some new controls (check Scott's blog for more details). With that milestone, the Silverlight team did a really great job. The final version is getting closer and that's really exciting! Read More...
|
-
I am currently attending a workshop for Siemens in Chicago's suburb, and also staying for the weekend. In fact it feels pretty weird because for the first time since a year, I don't feel the pressure of "must write" on my shoulders, and I can actually spend some time thinking of something else than Silverlight 2 Unleashed... Which is why I am now writing a book about Silverlight 2 Unleashed (available on pre-order at Amazon and to be published really soon :) I finished reviewing the very last chapters day on Friday and sent it to the editor. I still have one last round of review to just clean up some URLs, give a last look at the code and maybe find a typo or two... We're really close from the final version, and once this is done, the only occasion I will have to correct errors will be through errata on this blog, so stay posted. The book will also have a dedicated website at Sams, but I don't know the URL yet. I'll post it as soon as possible. In the mean time, I posted the final table Read More...
|
-
My editor at Sams (hey Neil :)) and I decided to convert the book I am almost done writing into an Unleashed. There are multiple reasons for that, the most important being that the book addresses multiple audiences, and has a broad range of coverage, which is typical of the Unleashed series. The content goes enough in depth (according to Neil) to be placed in the Unleashed series. While the Unleashed series usually targets more advanced users than the Teach Yourself one, this book has lots of content that can be useful for a variety of audiences with chapters that lead the user from the start of their journey through Silverlight. We put a great deal of attention in explaining complex concepts such as Object Oriented Programming, Data Binding, Templates, Transforms, the Animation system, Media integration, and so on with many practical descriptions, hands-on demos and figures which is typical of the books from Sams. I was not too sure about that move at first, but after thinking about it Read More...
|
-
Wow. That's an incredible feeling, seeing my name on Amazon :) The book is in pre-order!! I'd better get back to editing it then :) Read More...
|
-
I've been working since September 2007 (more or less) on an upcoming Silverlight book titled "Teach Yourself Silverlight in 24 Hours" at Sams. This book will be aimed at beginners with the technology (and maybe even beginners in programming). The reader is walked (with a lot of code samples and step-by-step examples) through most features of this amazing technology. The book has 24 chapters, each of them taking more or less (maybe rather a little more than a little less, to be honest :)) one hour to read. There are really tons of demos and cool examples, and so far the feedback I got has been really great. Clearly, the whole of Silverlight cannot be taught in 24 hours :) but the book should give a very good and deep insight in this framework, and give the reader a taste for more. I also tried to show where additional resources can be found, and to allow the user to continue their education on their own after they finish reading. Below, you will find the table of content for the first 13 Read More...
|
-
Here we go, Silverlight 2 beta 2 can be downloaded and installed! I had the chance to take part to an "insiders" program at Microsoft, and to play with SL2 b2 for a couple of weeks, and it's a good one. You should switch to b2 as soon as you can! There are obviously incompatibilities between b1 and b2, but much, much less than between the alpha version and b1. We're getting there!! Silverlight 2 beta 2 will be used to build applications related to the Beijing olympics, so it's going to be a real nature test for that version. As for the final release.... it's still very much hush hush, so let's leave it for now :) The best place to start is ScottGu's blog . As usual, Scott describes the new features at length, and has links to all the places where you can download the good stuff. Note that there is also a new version of Blend 2.5 which can be installed next to a "normal" Expression Blend V2. There is supposed to be a new version of Deep Zoom Composer too, but the download seems to be down Read More...
|
-
I just posted today's talk at the RIA conference in the World Trade Center, Zurich. Unfortunately it was not recorded, but the slides and the demos' source code is available on my site. The talk went really good, even though the crowd was rather tough :) Trying to "sell" Windows Presentation Foundation, a desktop Windows-only technology, to an audience of web developers, many of them using Java and open source technologies (and even one Adobe employee) sparkled some very interesting discussions. I can't say I convinced everyone (and it was most certainly not my intention), but I think everybody had a really good time. I know for sure that I did! To all those who stayed until the end of my presentation, and even though mine was the last presentation of the day, thank you very much!! To those who couldn't stay, I hope you'll have fun checking the slides and the demos, and contact me if anything is unclear!! Read More...
|
-
I have been in very much stress lately and hardly had time to post, but I don't forget you, dear readers... Anyway, this Thursday, I will be talking in a RIA conference organized by the Internet Briefing group here in Zurich, in the World Trade Center. My talk is titled "Ultra Rich Interactive Applications with WPF" and subtitled "When Silverlight is not enough..." . I think it's going to be an interesting talk (but obviously I am partial) about the major differences between WPF and Silverlight, and the added richness that WPF provides. I am a big fan of Silverlight, but I have to admit that it's nice going back to the amazing power of WPF sometimes, without having to worry about "is that feature even implemented in Silverlight"? The talk takes place between 16:30 and 17:30 in the World Trade Center, Leutschenbachstrasse 95, 8050 Zürich. Hoping to see some of you there, maybe! Read More...
|
-
A WPF ListView is a possible replacement for a datagrid, when it doesn't have to support advanced features like grouping or filtering of rows. If you use a ListView in your WPF application, and set the "View" property of this ListView to be a GridView. A ListView/GridView even supports features like reordering and resizing columns. Unfortunately, it is not possible to define a minimum or maximum width for the columns. Fortunately, it is not really to do this in the code behind. Let's see how. First we need to understand how exactly the resizing of a GridView column works. When a column can be resized, a narrow vertical line appears on the right side of the column. Passing the mouse over this line turns the cursor into a "resize" cursor. To find out what exactly this line is made of, we can use a tool like Snoop , or Mole . These tools display the inner structure of a WPF UI, also known as the Visual Tree. For example, in Mole, we can navigate down to our ListView and display the header Read More...
|
-
This article is for Silverlight 2 beta 1 Apparently, one reader had issues declaring events for the User Control example that I posted earlier this week. He is programming in VB and unfortunately I don't have a lot of experience with VB.NET, so I first created a working example with C#, and if that still doesn't translate well to VB, I'll try to make an example in that language too. I am sure that I can count on my VB.NET expert friends (that's you, Karl) to help if needed. The big difference between WPF and Silverlight regarding events is that Silverlight doesn't support Routed Events (yet?). To be precise, some events are routed (all input events like MouseLeftButtonDown, KeyDown, etc... Instead of declaring RoutedEvents in our User Control, we have to resort to standard .NET events then. From a user point of view, it doesn't make a very big difference in the subscribing, but of course these events will not tunnel nor bubble (for a summary of RoutedEvents, bubbling and tunneling in WPF, Read More...
|
-
Introduction I guess that it's time to write about it, after making a few people curious at the MVP summit in Seattle. This article is to be taken as a proof of concept, and (I hope) as a way to "motivate" Microsoft to integrate this ability into Silverlight. As soon as I started playing with Silverlight, I saw the great potential that this technology has. As a RIA technology, it provides extended functionality over the web. As a WPF subset, it allows me to leverage the knowledge I already acquired in the past, and to reuse it for web applications. This in itself makes Silverlight a technology I *have to* learn. But what if... what if we could use Silverlight to run lightweight .NET applications in standalone mode? A little like Adobe AIR is offering, but with the power of .NET instead of ActionScript. Imagine a small application, running on a small framework, installed in typically 10 seconds. I posted an article on my site explaining the thought process and giving information about standalone Read More...
|
-
What a crazy week that is. I am currently in Seattle for the Microsoft Most Valuable Professional summit, which ended yesterday. I took an additional day in Seattle to meet a few friends and Siemens colleagues, and this morning got an email notifying me that I passed the MCTS exam about WPF that I took back then in December . Because the exam was in beta stage when I took it, Microsoft needed a veeeeeeeery long time to evaluate the replies and check if I met the requirement. Apparently, they also had issues finding volunteers to try the beta exam, so it took even longer than planned. But hey, everything happens when you wait long enough, and as of today I am a Microsoft Certified Professional. Now I want to point again what I wrote in December: I am not quite sure about the value of the MCTS exams. You are not a good developer just because you learn answers by heart. Testing one's knowledge with multiple choice questions is really absurd, especially when it comes to programming. Additionally, Read More...
|
-
This article is for Silverlight 2 beta 1 There is a common misconception that User Controls in Silverlight must be placed in the assembly from which they are referenced. However, this is not true, you can have user controls in an assembly and use them from another assembly. This is not a direct process, however, so let's see how to proceed: Preparing the control Create a new Silverlight 2 application in Visual Studio. In this example, we'll name this application "UserControlsPacking". For this first application, you can choose to generate a test web application, or to use a basic HTML test page. In the same solution, create another Silverlight application. Let's name it "UserControlsPacking.Controls". Choose the "Generate a HTML test page" option, to avoid creating unnecessary test projects. In the moment, Silverlight 2 beta 1 has only 2 project templates available: "Silverlight Application" and "Silverlight Class Library". Ideally, we would need a "Silverlight User Control Library", just Read More...
|
|
|
|