jonaskello

Stories submitted by jonaskello

Why I don’t choose to use NHibernate(jonaskello.wordpress.com)

submitted by jonaskellojonaskello(50) 3 years ago

Why NHibernate is used for Domain Models. read more...

add a comment |category: |Views: 59

tags: another

Model-View-ViewModel and naming conventions for bound data objects in (jonaskello.wordpress.com)

submitted by jonaskellojonaskello(50) 3 years, 2 months ago

When designing Views and ViewModels for M-V-VM (or Presentation Model if you prefer) I often find myself in a situation where I need a ListView or ListBox in the View which is bound to a list of objects exposed from the ViewModel. For several reasons I don’t want to put the domain/business object directly in that list. They may not have all properties I want to display because some extra properties would be calculated for screen only use or represent some visual state. Also I don’t want to force the domain/business objects to fit the screen since that should not be their design goal. read more...

add a comment |category: |Views: 34

tags: another

Printing WPF Visuals that are created in code and not displayed « Kell(codeblog.kello.se)

submitted by jonaskellojonaskello(50) 3 years, 4 months ago

Today I had to print some WPF visuals (actually multiple views of a 3D model) that were not rendered to the screen but only existed in memory. If you try this you will notice it is not obvious how to do it. read more...

add a comment |category: |Views: 31

tags: another

Model-View-ViewModel and InputBindings for ICommand « Kello’s Code Cor(codeblog.kello.se)

submitted by jonaskellojonaskello(50) 3 years, 4 months ago

When using the Model-View-ViewModel pattern best practice is currently to expose properties of type ICommand from the ViewModel and map them to the Command property on Buttons, MenuItems etc. in the view. Using this approach is considered better than using RoutedCommands but we loose InputBindings becuase there is no ICommand.InputBindings like there is RoutedCommand.InputBindings. Instead we have to map KeyBindings at some level to the commands, for example at the Window or UserControl level. read more...

add a comment |category: |Views: 74

tags: another

Application level resources for WPF UserControls hosted in WinForms « (codeblog.kello.se)

submitted by jonaskellojonaskello(50) 3 years, 4 months ago

How do I provide application-level resources when I host WPF UserControls in an WinForms application? read more...

add a comment |category: |Views: 36

tags: another

VB.NET lambda expressions intellisense not working for Repository(Of T(codeblog.kello.se)

submitted by jonaskellojonaskello(50) 3 years, 4 months ago

When designing an IRepository(Of T) implementation with lambda expressions in VB.NET I found out that there is a bug in the VB.NET intellisense of Visual Studio 2008 SP1. When trying to get a list of members for an type-inferred lambda parameter in VB.NET (Visual Studio 2008 SP1) there are no members shown in the intellisense drop down list. It does however work in C#. read more...

add a comment |category: |Views: 19

tags: another