Blog

posts from 2009

ImageSlider in Silverlight 2.0

0 Comments
By Fons Sonnemans, 23-jun-2009

Today I found this blog about 15 Amazing jQuery Image Gallery/Slideshow Plugins and Tutorials. I really like the Beautiful jQuery Slider Tutorial which you can try on this page.

I wondered how easy it would be to create a similar solution using Silverlight 2.0. So I tried it and it was easy. I have used the HtmlBridge to initialize the ImageSlider with the correct images. Added some animations using Expression Blend. Used the VisualStateManager to style the RadioButtons.

You can download the sourcecode from here.

Get Microsoft Silverlight

READ MORE

Silverlight projects in Visual Studio 2010

0 Comments
By Fons Sonnemans, 19-mei-2009

I finally found some time to test the beta of Visual Studio 2010. No problems found yet. It even supports a visual designer (Cider) for Silverlight projects. You can now use it to drag & drop controls from your toolbox, add rows/columns to a grid and set properties. Things which where only possible in Expression Blend.

Cider in Visual Studio 2010

READ MORE

Playing with Silverlight 3D Perspective

0 Comments
By Fons Sonnemans, 16-apr-2009

I have created a simple rotating clock using Silverlight 3.0. It uses Databinding, Animation and the new Projection property of UI Elements to apply 3D Transformations. You will have to install the Developer Runtime first before you can see it!

Download the sourcecode

Get Microsoft Silverlight

READ MORE

Favorite MIX09 Videos

0 Comments
By Fons Sonnemans, 31-mrt-2009

READ MORE

Silverlight 3.0 Beta

0 Comments
By Fons Sonnemans, 20-mrt-2009

The Silverlight 3.0 Beta is out. Tim Heuer has written a great blog with all the new features. I have added the new SaveFileDialog to my Sudoku.

Now I can start to write a new Silverlight 3 training!.

Update 20 july 2009: Implemented Silverlight 3.0 RTW and moved the game to http://www.silverarcade.com/games/sonnemaf/sudoku 

READ MORE

SCRUM in Under 10 Minutes

0 Comments
By Fons Sonnemans, 24-feb-2009

I have found a great 'SCRUM in Under 10 Minutes' movie on YouTube.
If you don't know what SCRUM is you should really watch it.

Tags: Scrum

READ MORE

C# LINQ Pivot() Function

5 Comments
By Fons Sonnemans, 22-jan-2009

I have created a LINQ extension method which can be used to Pivot an enumeration. Just like you can PIVOT a SQL Query in SQL Server.

The following example uses the Pivot() function to group Employees by Department and Function and aggregates the Salary using a SUM. The second example uses a different grouping and Counts the number of employees per group.

  class Program {

    internalclass Employee {
        publicstring Name { get; set; }
        publicstring Department { get; set; }
        publicstring Function { get; set; }
        publicdecimal Salary { get; set; }
    }

    staticvoid Main(string[] args) {

        var l = new List<Employee>() {
            new Employee() { Name = "Fons", Department = "R&D", 
                Function = "Trainer", Salary = 2000 },
            new Employee() { Name = "Jim", Department = "R&D", 
                Function = "Trainer", Salary = 3000 },
            new Employee() { Name = "Ellen", Department = "Dev", 
                Function = "Developer", Salary = 4000 },
            new Employee() { Name = "Mike", Department = "Dev", 
                Function = "Consultant", Salary = 5000 },
            new Employee() { Name = "Jack", Department = "R&D", 
                Function = "Developer", Salary = 6000 },
            new Employee() { Name = "Demy", Department = "Dev", 
                Function = "Consultant", Salary = 2000 }};

        var result1 = l.Pivot(emp => emp.Department, 
            emp2 => emp2.Function, lst => lst.Sum(emp => emp.Salary));

        foreach (var row in result1) {
            Console.WriteLine(row.Key);
            foreach (var column in row.Value) {
                Console.WriteLine("  " + column.Key + 
                    "\t" + column.Value);

            }
        }

        Console.WriteLine("----");

        var result2 = l.Pivot(emp => emp.Function, 
            emp2 => emp2.Department, lst => lst.Count());

        foreach (var row in result2) {
            Console.WriteLine(row.Key);
            foreach (var column in row.Value) {
                Console.WriteLine("  " + column.Key + 
                    "\t" + column.Value);

            }
        }
        Console.WriteLine("----");
    }
}

The results in:

Tags: CSharp

READ MORE

Silverlight 2.0 Sudoku

1 Comments
By Fons Sonnemans, 11-jan-2009

I'm developing a Silverlight 2.0 version of Sudoku. It is mainly a programming exercise, so there aren't too many multimedia bells and whistles (yet). I would really like to get feedback on it, thanks!

Click on the image below to play the Sudoku

Play Sudoku

READ MORE

<12

All postings/content on this blog are provided "AS IS" with no warranties, and confer no rights. All entries in this blog are my opinion and don't necessarily reflect the opinion of my employer or sponsors. The content on this site is licensed under a Creative Commons Attribution By license.