Contents tagged with Silverlight

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

    by Augustin Šulc

    In this part, we will load data from database and start using Caliburn.Micro coroutines. Remember that you can get latest news and source code from Coproject Codeplex site. ToDoListsView Create a new Silverlight User Control called ToDoListsView in the Views folder. Then replace the original LayoutRoot grid with this one: <Grid x:Name="LayoutRoot"> <Grid.ColumnDefinitions> <ColumnDefinition Width="6*" /> <ColumnDefinition Width="5*" /> … more

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

    by Augustin Šulc

    In this part, we will dig a little bit into Caliburn.Micro and create application modules. Note: some information are intentionally simplified to make the whole concept easier to understand. Once you master it, go ahead and read more detailed articles. Screens As I indicated in the last part, we will describe Coproject structure and hierarchy of application screens via ViewModels. And then, we will let C.M to take care of wiring it to views and showing it to the user. You will see that this … more

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

    by Augustin Šulc

    In this third part, we will set up Caliburn.Micro to our client project and add some cool styles :-). 1. Project cleanup Let’s create some structure in the project. Delete MainPage.xaml and create folders Assets, ViewModels, ViewModels/Interfaces, and Views. Your Solution Explorer should look like this: Finally, to make the solution build, make function Application_Startup in App.xaml.cs empty (we have deleted MainPage). 2. Add Caliburn.Micro Open Coproject client in Solution Explorer, … more

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

    by Augustin Šulc

    In this part, we will create a domain model and a RIA service so that the client application will be able to access data in Coproject database. For those of you, who would like to see the code running but don't have time to write it, check Coproject codeplex site. 1. Create domain model In Coproject.Web, create a new folder called Models. Add a new Entity Data Model called CoprojectModel to it. In Entity Data Model Wizard, choose Generate from database. Choose the proper database … more

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

    by Augustin Šulc

    In this part, I would like to describe the Coproject application, overview its architecture, and prepare its database. What will Coproject do If you know BaseCamp, the idea of Coproject should be familiar to you. For others, let’s say we want to create a simple project management tool. It should help you track current state and progress of a project. We want it to have four modules: Home and overview, Messages, To-Do lists, and Milestones. Since I want this tutorial to be as simple and … more

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

    by Augustin Šulc

    At the presentation about Rapid RIA development in .NET, I promised to publish a tutorial about using WCF RIA Services and Caliburn.Micro. So here it is! In this part, we will get our computer ready for development. You will need Visual Studio 2010 to follow this tutorial. Express edition of Visual Studio is not supported by RIA Services.You will also need a MS SQL Server instance. Locally running Express edition is fine. On the other hand, you should be able to use any data store supported by … more

  • Prezentace Rapidní vývoj RIA aplikací pomocí .NET technologií

    Petr Hošek a Augustin Šulc

    Máme za sebou prezentaci Rapidní vývoj RIA aplikací pomocí .NET technologií. Rádi bychom touto cestou poděkovali všem z Vás, kteří se jí zůčastnili, a věříme, že se nám podařilo ukázat něco nového, zajímavého a inspirativního. Vážíme si všech ohlasů a Vašeho hodnocení, pozitivního i negativního. Je pro nás velkou … more

  • Memory leak in Silvelright with INotifyDataErrorInfo

    by Augustin Šulc and Petr Jerman

    We are facing memory leaks in Silverlight with almost every application we make. Although some issues were fixed by Silverlight 4.0.50826.0, there is still one serious leak left. To reproduce the leak, you only need to create an object that implements INotifyDataErrorInfo interface and them bind any UI element (for example, a TextBlock) to it. When you refresh the object and notify the binding that the source has changed, something is still left in the memory. This problem is very … more

  • Filtering with ComboBoxes in Silverlight business applications

    by Augustin Šulc

    We usually create applications that manage a database and some workflows over the data in it. Therefore, we often create many filtering controls. The most typical way is to use a combobox, fill it with choices and leave the first item blank so that if the blank item is selected, no filtering is applied. It is then pretty easy to create the query for data, because you can combine all filtering predicates as follows (for RIA services problem, see below): if (SelectedCustomerType != null) { … more

  • Customization of Silverlight application from web.config

    by Augustin Šulc

    We came across a situation when we needed to configure a Silverlight application through AppSettings in web.config. Since every Silverlight application runs on client, it cannot read the file directly. There was an idea to create a web service that would pass the configuration parameters to the Silverlight client, but this seemed as overkill to me. I came up with another solution. The core idea is: Set the parameters in the AppSettings node in web.config. Pass the parameters through the … more