MEF – Runtime Type Catalog, support multi registrations in runtime

Sunday, October 17, 2010

Recently, I dug deep into MEF because I was involved in a project where there was a decision to upgrade the WPF client to PRISM 4 and advance to using MEF alone instead of Unity. While many argue that MEF isn’t yet a full DI framework, it still provides an easy way to enable application extensibility in your projects. One of the tasks that I had while upgrading the client to PRISM 4, is to keep supporting type registration in runtime, something in the sort of the following - Code Snippet ...
tags: ,
no comments

Localize DayOfWeek Enum

Tuesday, October 12, 2010

If you have a DateTime and you would like to get the localized name of the day according to the current culture, you can just do the following - myDateTime.ToString(“ddd”); I had a different scenario though, I had an object with a property of DayOfWeek enum which represents week days. I needed to display just that property in my UI as a localized string. In this case, I don’t have a DateTime so I can’t use its culture-based string formatting, so I can’t use the approach written above. ...
tags: ,
2 comments

WPF – ComboView – ComboBox with a TreeView

Sunday, October 10, 2010

Update 26/09/2011 - There is an issue with the control where the entire tree is loaded, which may affect performance and memory allocation when working with many items. Unfortunately, I don’t think I would be able to fix that any time soon. A few years back, I built a WPF control that I decided to share here now. The control is called ComboView – A ComboBox showing a TreeView inside to display hierarchical data (you can use it for flat data if you need its features though). The control provides some really nice built-in...
tags: ,
19 comments

WCF Contrib – Your own base Client Channel Classes

One of the core components in WCF Contrib is the ‘ClientChannel’ which handles the client side proxy creation and management, allowing you to easily call services, with the addition of environment support, using using, and comprehensive behaviors extensions model. Currently, the built-in Client Channels can be instantiated with a configuration name which it loads the ChannelFactory with. A common question is, how can you use the Client Channel if you like to instantiate the ChannelFactory in code. The way to do that is to inherit from ClientChannel and override ‘CreateChannelFactoryCore’ and just return the ChannelFactory...
no comments

StreamInsight In a Nutshell

Monday, August 23, 2010

I’ve been reading about StreamInsight lately, there’s a lot of buzz around it nowadays. StreamInsight is mainly a data processing engine which has great performance and latency achievements, as well as massive throughput handling capabilities. It generally targets systems which need to handle events in massive concurrency or in cases where short latency is needed for resolving the information results. Let’s look at High Level Architecture - The architecture resembles BizTalk to say the truth, and is common for such processing engines. The main...
tags: ,
no comments

WPF – Editing Mode with Save and Cancel Capability – Serialization

Monday, August 9, 2010

In continuation of the previous posts - WPF – Editing Mode with Save and Cancel Capability WPF – Editing Mode with Save and Cancel Capability – Dynamic ViewModelProxy In this post I will demonstrate an elegant and simple solution that you can use regarding the second option presented in the first post series (cloning via serialization). The Use-Case Often, in more advanced scenarios, you need to duplicate your object for a different view. (read the first post for more detail) A commonly used technique is using serialization to clone the object....
tags: ,
one comment

WPF – Editing Mode with Save and Cancel Capability – Dynamic ViewModelProxy

Friday, July 23, 2010

Update 29/07: The project was updated, there was a minor bug in the object changed notifier. In continuation of a previous post - WPF – Editing Mode with Save and Cancel Capability In this post I will demonstrate an elegant and simple solution that you can utilize regarding the first option presented in the previous post. The Use-Case If you want to open an editable view over an existing read-only view with cancel capability, you usually wish you could use the same ViewModel instance as the DataContext. However, this...
tags: ,
no comments

WPF – Editing Mode with Save and Cancel Capability

Saturday, July 17, 2010

A common scenario that is required by applications is the ability to show an entity in a view mode, and when the user wishes to edit that entity, another view is loaded in edit mode. In most cases, you would allow the user to save or cancel his changes. To illustrate the concept, consider the following interface - When a user clicks ‘Edit’: ...
tags: ,
no comments

WPF – A Cool Feedback Control – 3D Book View Switching

Saturday, July 10, 2010

Update 29/07: The project was updated, there was a minor bug in the object changed notifier. A few years back I was looking for a good place to start with for building a nice feedback control. The purpose was to allow end-users to provide feedback on the application on any given subject. After browsing the internet, I found the following - Creating a 3D book-shaped application with speech and in using WPF 3.5 by Roberto Sonnino. It’s a very cool and a beautiful project, nice work Roberto! To make...
tags: ,
no comments

WCF Contrib v2.1.1

Saturday, July 3, 2010

Make sure you visit WCF Contrib home. This release adds core optimizations and internal fixes to the infrastructure. There are no breaking changes from the last version, only internal improvements. In previous versions you may have encountered synchronization related errors such as recursive write/read locking. These issues were resolved and you should no longer experience that. This release is highly recommended over previous versions, make sure you use this one.
no comments