WPF vs. GDI+ Some additional notes
20 June 2015In one of my previous posts, WPF vs. GDI+ I wrote about the performance of WPF and how to solve this problem. After some experiments in Kvinivel we've found more improvements to the solution described in the previous post. The main idea is that when you are converting GDI bitmap to WPF bitmap it requires memory allocation and decreases performance. And fortunately, there is a solution that allows mapping WPF bitmap to GDI bitmap, so when we are drawing on…Fornt-end with Knockout.js, require.js and TypeScript
22 March 2015Let's talk about how to correctly organize the front-end with Knockout.js require.js and TypeScript. The problem If we read TypeScript handbook we will find a lot of information about how to load modules with AMD and require.js, and everywhere in samples, we will find something like this import module=require('./module'); But in a real application we always have some folder structure to keep the files organized, we are using different package managers and so on, thus in most cases import should…Knockout.js components. What they are and what they are not
07 February 2015What are components? Some time ago, Knockout.js team released a new feature — components. This feature allows developers to build some custom components that will have their own view and logic. Registration of components looks almost like binding registration. ko.components.register('mywidget', { viewModel: function(params) { //Define view model here this.title = ko.observable("Hello from component!!!"); }, template: '<div data-bind="text: title"></div>' }); The example below looks very similar to the definition of user control in technologies like WPF/Silverlight or even WinForms. We have…