Archives de
Étiquette : Csharp

New App using ASP.NET with some fancy frameworks …

New App using ASP.NET with some fancy frameworks …

One of my colleague (Tomislav Babic) has created a long but perfectly built article about creating an ASP.Net application. He started from the database with Entity Framework, going on with Breeze.Net for the glue between client & server and close the article with Knockout JS & KOGrid for the client presentation layer. If you want to learn from scratch how to setup a solution or if you want to discover some new frameworks, read it ! http://tomislavbabicnet.blogspot.com/2013/03/build-application-using-aspnet-mvc-4.html Edit : You will be able to…

Lire la suite Lire la suite

Animated Metro style control in WPF

Animated Metro style control in WPF

Here is a little set of control that allow you to create (quickly) a Metro like menu. Example : [jwplayer config= »GrundgeAdapt » file= »http://www.alphablog.org/TiercePartie/Video/GridControl.mp4″] Bring me now to download ! Way it works : The project is done by two distinct items. First one is a behavior that you put on a grid, the SliderGridBehavior. It will transform the given grid to a « moving » grid. When you click on one of it’s cell, you will expand it (with an animation). You can…

Lire la suite Lire la suite

A little workflow engine

A little workflow engine

In one of my projects, i need to create a little workflow system that fits with UI needs. This workflow engine needs basic features (if, while, foreach, basic actions) and also need to “stop and wait” for a user input for example. I have created my own one because I did not found my happiness in existing ones. I dont care, bring me to the download now !   Inside the beast The workflow will be defined for a given…

Lire la suite Lire la suite

Event-driven architecture

Event-driven architecture

This post will not debate on the benifits of this kind of architecture. We will discuss performances … What is an event ? A source will raise an event to indicate, to anyone who’d care to listen, that something happens. A destination will receive this event and act accordingly. Why choosing an event driven architecture ? Responsibility It’s interesting to have multiple components which have separated responsibility. It is clearly separated, more maintainable and reduce coupling. Simplification Each part of the architecture are separated….

Lire la suite Lire la suite

Blend Behaviors : Expand textbox and add dot dot dot ellipsis

Blend Behaviors : Expand textbox and add dot dot dot ellipsis

Behaviors is one of the nicest feature in WPF and Silverlight. This article will show how to create and use 2 behaviors : Expand a textbox depending on it’s content Add ‘…’ if the textbox content exceed it’s container size. Here is a sample video : [jwplayer config= »GrundgeAdaptSmall » file= »http://www.alphablog.org/TiercePartie/Video/BehaviorSample.mp4″] There is two behaviors and one helper class in my solution : And the graphic stack :   AddDotDotDotToTextboxBehavior This class is binded on the ‘…’ textblock and contains a reference…

Lire la suite Lire la suite

Simple Plugin System based on Ninject and MVVM Light

Simple Plugin System based on Ninject and MVVM Light

My goal was to develop a simple but useful plugin system for my future developments. I wanted to keep/to have: Blendability Ninject power and flexibility Smooth animations Modularity (development & code) Fast “menu” system This sample rely on a solution available here : PluginSystem.zip Solution The PluginSystem assembly contains the plugin base class, the view model base class and an animated content control. PluginBase class : This class force plugins to expose a user interface, an name (for menu printing in this…

Lire la suite Lire la suite

Single web service for multiple devices (IPhone, Windows Phone, Silverlight, Windows 8)

Single web service for multiple devices (IPhone, Windows Phone, Silverlight, Windows 8)

At Devoteam Luxembourg, our goal was to develop a cross platform application. We have developed a set of application based on a single « web services server ». An IPhone, IPad, Android version with Sencha Touch A Windows Phone 7 native version A Silverlight version A Windows 8 based on winRT version This article will only talk about consuming web services on this 4 versions.  We add some constraints like activating HTTPS for enhancing security, taking care of enhancing speed for mobile…

Lire la suite Lire la suite

Windows Phone 7 Coding Dojo

Windows Phone 7 Coding Dojo

Here is a video showing how to create a simple but useful Windows Phone 7 application. This application allow Devoteam Luxembourg’s consultant to add and follow their time off requests. This application use web services based on Object Client for SharePoint. We will only see the Blend 4 part and the Visual Studio for windows phone development. I only use MVVM Light (as usual :p) as external framework. I have already done the link between the « enum application state » and…

Lire la suite Lire la suite

Siverlight Architecture Feedback (Part 2/2)

Siverlight Architecture Feedback (Part 2/2)

This article follow the previous one : Part 1   We will now detail much more validation integration in the generated context. Here is a schema that summarize the validation integration. The generated part (left side) is the MVVM DTO, processed from the edmx file. This file will be linked in the model in silverlight side. This part is absolutely not correlated with validation. The other partial class (right side) is added by user and can embed multiple information (extra properties, methods, …) and, in…

Lire la suite Lire la suite

Siverlight Architecture Feedback (Part 1/2)

Siverlight Architecture Feedback (Part 1/2)

Thanks to Devoteam Luxembourg, i am actually setting up a Silverlight architecture but it was not my first practice… I have already setup Silverlight architectures over a service layer. In most cases, i found some great shortcuts, some tips about what can be done and what can »t be done. My brainstorm result will be explained in this paper. Uses cases Since few years, I am practicing Silverlight in a business context. In each cases clients ask us to develop a user…

Lire la suite Lire la suite