WPF Book control

[Update: WPFBookControl now available on codeplex: http://www.codeplex.com/wpfbookcontrol] After a long time of work on my free time here is finally a first version of the flip page demo (http://blogs.msdn.com/mitsu/archive/2006/11/05/flip-page-demo-using-wpf.aspx). I have created a WPF control so every one can use it easilly. It’s an ItemsControl. You can add any kind of items to the ‘Items’…

106

Visual Linq query builder for Linq to Sql: VLinq

Hi all, After almost one year of work and organization, I am very happy to share this project with you: http://code.msdn.microsoft.com/vlinq – new setup fixed (4/17/2008) The Visual Linq query builder is a Visual Studio 2008 addin. It’s a designer that helps you create Linq to Sql queries in your application. Both C# and VB projects…

81

How to implement a many-to-many relationship using Linq to Sql ?

In this article, I will show one possible solution to implement many-to-many relationship using Linq to Sql. Let’s begin with some definitions and what Linq to Sql offers. A “many to many” relationship between two entities defines a kind of bi-directional “one to many” relationship for each of the entities. In this very well-known example,…

51

Playing with Linq grouping: GroupByMany ?

Linq is a great technology to manage data directly from your .Net language. One of its features is grouping. Many people understand grouping like it is defined in Sql. Linq is implementing grouping quite the same way. Let’s discover this syntax and how to make consecutive groups easier. Then we will show how to use…

38

WPF and Silverlight BookControls: source code available

I have just finished converting the control to silverlight one week away from Silverlight 2 beta 2 release date, so I have been waiting for it ! For people to be able to compare code (quite similar) and behavior between the WPF and the Silverlight control, I have kept the same codeplex project to host…

30

Linq: how to share parameters between lambda expressions ?

Before going into Linq, here is again one of my pictures: Le Louvre by night, Paris   When using Linq to objects, you will quickly feel the need to pass some parameters from a method to another but it’s not so easy because each Linq method is not calling the following one. In a Linq…

27

Flip page demo using WPF

[Update: source code available here]  Let’s have a little fun using WPF ! In this very short post, I am just giving you a preview of a page flip control that I am working on. The algorithm is mixing C# code and WPF 2D transformations and clipping. Once again, using WPF, we have all the…

25

C# 4 expressions: blocks [Part I]

  Since .Net 3.5 and Linq, the C# compiler is capable of generating expression trees instead of standard executable IL. Even if Linq opens the door of meta-programming (using the code to define something else, like a Sql query), we still have a lot of limitations. A C# expression is limited to a single instruction…

22

How to implement a many-to-many relationship using Linq to Sql ? Part II : add/remove support

In my previous post (http://blogs.msdn.com/mitsu/archive/2007/06/21/how-to-implement-a-many-to-many-relationship-using-linq-to-sql.aspx), I had proposed a simple solution for implementing many-to-many relationships using Linq to Sql.Actually, this solution is a generic Linq solution. It’s also working with just memory collections (not only Linq to Sql). Many of you asked me for add/remove support. Let’s clarify a few things: The current solution offers…

20

TreeSelector : playing with generics and type inference

This piece of code is part of a personal bigger project that I am working on and I think there are interesting thing in it and I wanted to share it with you. I am trying to use generics and type inference to imagine new kind of method prototype. With all the stuff around Linq…

17