| 

.NET C# Java Javascript Exception

The DotNet Experience

In 'The DotNet Experience' geht es im Wesentlichen um die Erfahrungen, die Daniel täglich mit dem .NET Framework macht. Angereichert werden diese Erfahrungen mit Einträgen zu neuen Technologien und aktuellen Themen.
Über den Autor
Daniel Grund ist Senior Consultant im Bereich Microsoft/.NET bei der Saxonia Systems AG. Er ist dort für den Wissensaufbau und -transfer in diesem Bereich zuständig.
Webseite des Autors Themen des Autors
.net 5-reasons about architecture asp.net aspects attribute binding bitmap canvas certification combobox csharp datacontext datagrid doubleclick drag drop duplex enum event exam extension-methods gray-scale guidance helper html-5 itemcontainergenerator javascript lightswitch listview loose-coupling model-view-presenter moq mvvm named-pipes pex pixel popup postsharp prism rad razor reflection scrollintoview serialization servicelocator sharepoint-2010 viewmodel wpf
Auf codekicker News finden Programmierer redaktionell vorausgewählte und daher hochwertige Artikel zu verschiedenen, auswählbaren Themen. Auch dieser Autor veröffentlicht seine Artikel auf codekicker News.

» News weiterer Autoren
» Auch Autor werden


News und Artikel von The DotNet Experience

9

Conference Papers .NET Day Franken

Lately I had the great pleasure to speak at the german community conference .NET Day Franken. I was talking about HTML 5 Canvas and its posibilities to display native animations, visual effects and even 3D in the browser. It was a lot of fun for me and I'd like to provide the presentation as well as the demos here for download. Please feel free to contact me if you have any questions ...
canvas html-5
21.05.2012 | 15 0
7

Video Manipulation with HTML 5 Canvas

No doubt that the HTML 5 Canvas is currently one of the most popular HTML 5 elements. Its pixel manipulation and drawing APIs provide a broad range of possibilities to create interactive content natively integrated into the ... In this blog post I’m going to show you how to implement a simple video filter application using the Canvas Image API and a little bit of JavaScript . Don’t be
canvas html-5 javascript
17.05.2012 | 26 0
5

Inter-Process Duplex Communication with WCF Named Pipes

Named pipes enable two applications on the same windows-based physical device to communicate with each other across process boundaries. This blog entry shows how to use WCF and the Net NamedPipeBinding to set up a duplex communication channel based on named pipes . A named pipe itself is just an object in the windows kernel. It provides access for different clients to a shared ...
.net duplex named-pipes wcf
21.02.2012 | 129 0
8

5 Reasons: Why you need an Architect

Today I’m starting off a new topic, called “5 Reasons …”. Five reasons why you need things, why you should do things or not, or why to love things or just hate them. I’ll start this by giving ... reasons why you need an architect in your software development project. The reasons provided here are inspired by the great article of Daniel Akenine in the Microsoft Architecture Journal No. 15 (
5-reasons architecture
08.12.2011 | 80 0
4

WPF - Working with XML and XmlDataProvider

Working with XML or XML related data is not always easy in C#. With .NET Framework 3.0 Microsoft introduced the Xml DataProvider as part of the data provider infrastructure. Using Xml DataProvider inside WPF applications together with some XPath expressions makes it really easy to bind whatever kind of Xml fragment you have to some user interface controls. This blog entry shows ...
.net binding csharp wpf xml
21.11.2011 | 244 0
0

Windows 8 Developer Preview - Screenshots

Last week Microsoft showed off the Windows 8 Developer Preview at BUILD 2011 (check out the impressing keynotes). I couldn’t resist and fetched the ISO image file containing the preview and the new developer tools like Visual Studio 2011 Express and Expression Blend 5. The ISO file can be used to easily set up a Virtual Machine using Virtual Box which is freely available. I made ...
windows-8
19.09.2011 | 134 0
0

The curious world of WPF Popups

Popup s in WPF sometimes appear to behave not as expected. Mostly it’s just because they are not used correctly or there’s just not enough understanding of the popup s functionality and the relations to other controls. I encountered such a situation lately in a project and thought it ... worth to share some thoughts on this topic. First of all it needs to be clear that a popup is not a window
.net popup wpf
24.08.2011 | 140 0
0

Aspect oriented programming with PostSharp and SharePoint 2010

The main purpose of aspect oriented programming in today’s software development processes is to separate the so called cross cutting concerns from the applications business logic. Things like logging or exception handling are used across all layers of an application. They should always be done in the same way and should not distract developers with their complexity. Aspect ...
.net asp.net aspects postsharp sharepoint-2010
12.08.2011 | 329 0
0

LightSwitch and Sharepoint 2010

LightSwitch is a rapid application development tool that can be used to easily build applications. Given a data source, like SQL Server, it generates user interface components and a full running application to edit data. This post shows how to use a Sharepoint list as data source and how to create custom user interface fields and implement validation. Connecting to Sharepoint ...
lightswitch rad sharepoint-2010
24.06.2011 | 446 0
0

WPF Toolkit DataGrid – Conditional Formatting

Often you may want to highlight certain data entries inside a datagrid according to given conditions. Imagine displaying business sales. Here you may want to highlight all rows that don’t reach a certain amount in the corresponding value column in order to get a quick overview. That is where conditional formatting comes into play. This post explains a possibility to achieve ...
.net wpf-toolkit-datagrid-formatting-sty
18.05.2011 | 287 0
0

Injecting XML Serialization for formatting decimal properties

When serializing objects that contain properties with type of decimal, the .NET XmlSerializer writes them to the resulting XML file exactly as they are specified in your program code. That means that if you assign a value of 5 then you will get the following XML from the serializer: 5 If you instead assign 5.00 you will receive the following output: 5.00 In this
attribute extension-methods reflection serialization xmlserializer
10.05.2011 | 140 0
0

WPF TreeView – Drag ‘n‘ Drop

Using Drag &Drop inside an application can greatly improve the user experience. This post shows how to implement Drag &Drop inside a TreeView within a WPF application. I will only point out key features directly within the post. For the complete code example ... the end of the post.TheoryLet’s take a second to see what it takes to realize Drag &Drop functionality. First of all the user
.net drag drop treeview viewmodel wpf
12.04.2011 | 461 0
0

Defeated Exam 70-516

Last week I did the MCTS Exam 70-516: Accessing Data with ADO.NET 4. Luckily I passed it at the first attempt. Because there are still no official Microsoft ... out there (the according book will be released in June 2011), it was not that easy to prepare for the exam . I used the following preparation materials:MCTS Self-Paced Training Kit (Exam 70-561): Microsoft .NET Framework
certification exam
03.04.2011 | 318 0
0

Having fun with Pex

Pex is a white box testing framework for .NET that integrates directly into Visual Studio 2010. Currently it’s in development by Microsoft Research. The framework uses symbolic execution to test the certain paths of a given method. It tries to find proper boundary conditions and applies them to the method. After execution the results for each input value are displayed and you can ...
pex testing
10.03.2011 | 116 0
0

MVVM "In the Box"

Recently I found a really cool MVVM training kit that integrates with guidance directly into Visual Studio 2010. It targets WPF and was created by Karl Shifflett. The extension package can be found on the Visual Studio Gallery, so you can just install it into the IDE.After installation there’s a new entry in the new projects wizard called “In the Box”. The template behind creates a ...
.net moq mvvm prism wpf
07.03.2011 | 203 0
0

Writing a WebMatrix Helper

I’ve been playing around with Microsofts WebMatrix for some time now. Together with the new Razor View Engine, Microsoft introduced the concept of Helper s. Helper s are mostly small static classes with static methods that generate some Javascript or HTML code ... onto a web page at run time. It’s pretty easy to write such a helper yourself and I’m going to present the steps required
helper razor webmatrix
22.02.2011 | 264 0
0

WPF DataGrid – Row Double Click

The DataGrid in WPF has no special event handler to handle mouse double click s on a row. If it had, you could easily determine the row that was clicked and could gain access to the underlying data. This blog entry shows a possible solution by implementing the standard mouse event handler. In short terms it looks for the element under the mouse cursor to determine if it’s a row and in ...
.net datagrid doubleclick event wpf
07.01.2011 | 454 0
0

WPF ListView – ScrollIntoView

Lately a colleague of mine had a requirement to add items to a ListView programmatically. After adding an item, the ListView was supposed to scroll automatically so that the newly item came into view. First attempts to use the ScrollIntoView method of the ListView failed. There was just no scrolling at all. So I decided to check things up and here are the results.ListView uses an
.net itemcontainergenerator listview scrollintoview wpf
15.12.2010 | 358 0
0

MVVM in WPF - Code Division

Often I hear the discussion where to put certain code within the MVVM pattern in WPF to achieve loose coupling and reduce unnecessary dependencies. Frameworks like PRISM (or Composite Application Guidance for WPF ), Caliburn, CoreMVVM and others try to address this problem in different ways. From speakers at conferences you may hear things like: “Never put any code in the ...
.net mvvm wpf
07.12.2010 | 132 0
0

WPF – Declaratively binding a ViewModel

The MVVM pattern is widely adopted within WPF and Silverlight. The very flexible binding mechanism introduced with WPF allows for a loose coupling between the view and its model. The only thing you have to do is to set the view model as DataContext for the view. All further communication can then be done by binding the properties of the model to the view. Frameworks like Prism ...
.net datacontext loose-coupling viewmodel wpf
25.11.2010 | 207 0
0

Converting 16 bit gray-scale TIFF images for use in WPF

When you try to open a 16 bit gray-scale TIFF image with WPF components you will only see a black screen. The image cannot be displayed by the Bitmap Decoder, because 16 bit gray-scale TIFF s are not supported. But this image format is widely used in scientific visualization (especially microscopy). So, if you want to display such images you first have to normalize them to 8 bit, which ...
.net bitmap gray-scale pixel tiff wpf
12.11.2010 | 325 0
0

Binding Enum values to WPF Item Collection Controls

There are several ways to bind an enum eration to an item collection control (like Listbox or Combobox ) in WPF . Because we’re using XAML I will show you the declarative way. Let’s assume we have an enum eration that represents different ways of transmission: public enum Transmission{ None 0, Phone 2, Mail 4, Letter 8, Chat 16} This enum eration needs to be
.net attribute combobox enum valueconverter wpf
04.11.2010 | 502 0
0

Model View Presenter Pattern with Sharepoint Service Locator

After playing around with the Sharepoint 2010 Guidance Package, I decided to implement a MVP pattern within a WebPart using the ServiceLocator component. Let’s start by creating a new Visual WebPart with the according project template in Visual Studio 2010. ... improvement and generates all components necessary for a Visual WebPart , especially an ASP.NET user control (ASCX),
model-view-presenter servicelocator sharepoint-2010 webpart
28.10.2010 | 365 0
0

Sharepoint Guidance Package - ServiceLocator

I recently took a look at the Sharepoint Guidance Package. The package supports Sharepoint developers by providing guidance and pre-defined components. Among these components you find the Service Locator , which can be used to register and find services within Sharepoint. A service may be any class. The Service Locator provides the ability to register types at SPSite and ...
guidance servicelocator sharepoint-2010
25.10.2010 | 125 0
0

About

Hi Folks! This Blog is about my experiences with .NET, C#, Sharepoint and maybe other stuff related to programming or architecture. Hope you enjoy it :)
about
25.10.2010 | 178 0