Blog

  • Fast switching between ViewModels in Caliburn.Micro

    You can see demo here. I have asked several questions (StackOverflow, C.M forum, Silverlight forum). Found no solution but at least a hint that the problem is in adding the view to visual tree. My idea was to create a custom ContentControl that would cache all views so that it can quickly switch between them. After few minutes, I came up with this: public class ContentHost : ContentControl { private Grid _contentGrid; private UIElement _currentView; public ContentHost() { … more

  • Coproject - a RIA Caliburn.Micro demo, part 14

    by Augustin Šulc

    In the last part, we created LazyScreen class so that we can load our view models into memory only when they are requested and not right after the application start. In this part, I want to create LazyConductor – a conductor that will support closing of child LazyScreens and then opening new ones instead of removing them from its Items collection. Please note that this is just a simple demo of an idea I had about lazy screens/conductors and using it in production might need additional … more

  • Coproject - a RIA Caliburn.Micro demo, part 13

    by Augustin Šulc

    By now, you are probably using Caliburn.Micro for your applications and hopefully Coproject helped you to learn it. But if you are creating large business applications as we do, you have probably realized that you need to tweak and extend C.M a little bit. That’s why I would like to continue on this Coproject series while focusing on these advanced features. As you probably know, ordinary ViewModels hierarchy and thus whole application structure is loaded on the application startup. This … more

  • Unity/EntLib interceptors in MEF

    By Augustin Šulc

    In one of our applications, we use MEF for discovery of component exports. To make it more complicated, we also wanted to use Enterprise Library interceptors for advanced logging, error handling and caching (from Policy Injection Application Block) so we needed to use Unity as well. MEFContrib was a great helper for us so we were able to use (in simplified words) MEF for exports and Unity for imports. Although there were some problems it worked. With the new version of MEFContrib, things became … more

  • Optimizing size of public websites based on Sharepoint

    By Míša Hájková

    Sharepoint is generally very good platform for intranet applications. But you can meet more and more public web applications based on Sharepoint. Despite my humble opinion, that Sharepoint really isn’t the best choice for this purpose, some of our customers web presentations are based on it. The biggest problem, I was faced, is many many…. really many parts I don’t need. Default master page in Publishing site contains lot of controls and referenced files, which are useful in … more

  • The first official release of T4RIA

    by Petr Hošek

    During the Rapid RIA development using .NET presentation, we have presented our own T4 template for WCF RIA Service called T4RIA. T4RIA is a T4 template that generates domain services, metadata and localization for WCF RIA Services from ADO.NET Entity Data Model. We have promised to release T4RIA under open-source license. Today, I would like to announce the first official release which is part of WCF RIA Contrib project. This project is a collection of tools for WCF RIA Services … more

  • Coproject - a RIA Caliburn.Micro demo, part 12

    by Augustin Šulc

    In this part, I would like to use RIA Services a little more and then show you how to customize Caliburn.Micro conventions. Remember to visit Coproject Codeplex site for latest news. Display metadata If you remember Part 2, RIA Services use metadata to describe what data should be transferred to the client. But that is not all – you can add things like label text or validation. So, open Coproject.Web/Services/CoprojectService.metadata.cs. Let’s say we want to change labels in … more

  • Coproject - a RIA Caliburn.Micro demo, part 10.5

    by Augustin Šulc

    If you watched CPU usage after implementing BusyIndicator, you might notice major increase in CPU usage on To do module after the list is loaded for the first time. High CPU usage with BusyIndicator and ProgressBar It is a common issue with BusyIndicator: Silverlight forum, Silverlight toolkit issue, Appsolo blog but the solution is not obvious or easy to find. So I’ve spent some time and figured out that the excessive CPU usage is caused by ProgressBar that is present in … more

  • Coproject - a RIA Caliburn.Micro demo, part 11

    by Augustin Šulc

    In this part, we will synchronize list after saving data and add some icons. You may continue on your work from older parts, or download updated code from Coproject site. Event aggregator Usually, if you want a component of your application to notify other components about an event that occurred, you use standard .NET events. The problem with events is that you always need to access the publisher of an event from the subscriber. What’s more, you also need to unsubscribe from the event. … more

  • Coproject - a RIA Caliburn.Micro demo, part 10

    by Augustin Šulc

    In this part, we will add a busy indicator. As you know, communication with server takes some time. Even in our small project loading might take several seconds so it would be a good idea to notify the user that something is happening in background. So, open your solution from part 9 or grab source codes from Coproject site and let’s start. BusyIndicator First of all, add a BusyIndicator control to ToDoListsView. So, add this namespace using: … more