Tag Archives: Code

WPF treeview node select

My project contains a treeview which is bound to a hierarchical list. The data is displayed correct, but the nodes cannot be selected by clicking the text, you must click on the little space reserved for an icon of so. … Continue reading

Posted in Development | Tagged , , | 1 Comment

EF4 and SQLite

I want to create my datalayer with Entity Framework. But I’m using SQLite as the database. How to create the database if it is a new file? First create a database to import in EF. Model first just isn’t that … Continue reading

Posted in Development | Tagged , , , , , , | 2 Comments

Upload progress in WCF

Uploading a file in WCF is done via a stream that is send to the service in a message. The service then reads the stream to the end and writes everything to disk or memory or whatever. Now I want … Continue reading

Posted in Development | Tagged , , | Leave a comment

Remote trace listener

Code first, ask questions later Now my trace messages are directly visible in a console window. This is a great help with debugging. Of course this can be applied to existing applications via the config file….

Posted in Development | Tagged , , | 2 Comments

WPF Styles and triggers

Whenever no selection is made from all checkboxes I want the user to see an orange border around the checkboxes. This is not a validation error, but a warning this is not the intended use. My style in XAML looks … Continue reading

Posted in Development | Tagged , , | Leave a comment