Archives de
Tag: Silverlight

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

Silverlight 5 and Tasks : strange behavior ! (Updated)

Silverlight 5 and Tasks : strange behavior ! (Updated)

This blog post aims to talk about a strange behavior of Silverlight when using TPL (Tasks parallel library) . Context   You may need to integrate OData service in Silverlight. In this context, you could add your business code in the Silverlight part. It can result a sequence of asynchronous call in Silverlight (like Russian doll) : When server raises an exception it must be propagated to the client (with or without message). In my future example, I will try to create…

Lire la suite Lire la suite

Why blend is for developers ?

Why blend is for developers ?

During the TechDays 2012 conference, I have seen a course about “Blend for designers” from Michel Rousseau. It is now time to go on through this way: Blend is also for ergonomic specialist. Blend is also for developers. How many times I have seen people saying : “I am a developer so I develop the application and give it to the designer” : Without an ergonomic study before, you might create an application inside out, upside down and back-to-front… “I am…

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

Tips and tricks : Silverlight autocompletebox with huge amount of data

Tips and tricks : Silverlight autocompletebox with huge amount of data

This new post will explain the ability to use the autocomplete box with more than 10 000 items in the list. It will result an unpleasant latency… It will freeze your user interface during seconds ! The silverlight solution You just need to add the System.Windows.Control reference. The main page Xaml is like described below : Generate items Here is the little code that generate 12 000 lines and put it to the itemsource : You can run the sample…

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

Blend 5 and Visual Studio 11 feedback, the Windows 8 development future

Blend 5 and Visual Studio 11 feedback, the Windows 8 development future

Here is a little feedback on Visual Studio 11 & Blend 5… 1 – Visual Studio 11 Visual Studio 11 is provided in the Windows 8 Developer Version. It is provided with some “Metro Application Style” templates. One first thing we can notice is that VS11 is very similar to VS10… Microsoft added usefull features detailed below. I am quite disapointed about Microsoft political point of view about Xaml Language and Html5/JavaScript… Fast file preview You may know that Visual…

Lire la suite Lire la suite