Archive for the ‘c#’ Category
Thursday, November 13th, 2008
When using the new WPF Ribbon CTP with CompositeWPF (aka Prism), you probably want your modules to fill the ribbon with tabs. To let modules add content to your shell window, you have to mark the designated areas as Region.When trying to add a Region name to the ribbon with ...
Posted in .NET, WPF, c#, development | 9 Comments »
Wednesday, July 30th, 2008
In one of my current projects i have to convert a lot of strings to DateTime structures. Sometimes tens of thousands datetime-string arrive at the service per second. As performance is an issue in this project, i was looking for the most performant way to do all the stuff. that's ...
Posted in .NET, c# | No Comments »
Monday, July 7th, 2008
I recently played around with the new Webbrowser control delivered with the SP1 update of .NET 3.5 .
But when i tried to use it in a WPF Window that has its WindowStyle set to None and AllowsTransparency to True (due to some custom window drawing), i noticed that the ...
Posted in WPF, c# | 3 Comments »
Tuesday, May 13th, 2008
Everyone that has ever worked with the WinForms PropertyGrid will miss it in WPF.
Therefore i wrote this tiny turorial on how to write your own very basic PropertyGrid on top of WPF.
Disclaimer:This is not a ready to use fully-featured control for production use. It just shows in a very ...
Posted in .NET, WPF, c#, development | 2 Comments »
Monday, May 5th, 2008
Today i encountered a strange behaviour with NHibernate. The error message in the headline was kinda confusing. I spent some time on google and everything i found was that my mapping is probably wrong or contains some bugs though i knew my mapping was definitely correct.
Some time later i found ...
Posted in .NET, NHibernate, c#, development | No Comments »
Saturday, May 3rd, 2008
Wcf is great when it comes to message exchange. But Wcf even contains functionality when you want to stream data.
This is especially useful if you want to transmit a huge amount of data (think about the maxBufferSize option in Wcf configuration) or you want your clients to start processing ...
Posted in .NET, WCF, c# | 4 Comments »
Friday, April 25th, 2008
WPF offers great functionality when it comes to DataBinding. You can e.g. set a List of Customer-Objects as DataContext on a ListView and don't have to care about the rest.The following example shows a List of Customer's bound to a ListView:
But what if you want to display some Properties of ...
Posted in .NET, WPF, c#, development | 1 Comment »
Friday, April 18th, 2008
log4net is a great logging library that comes with a couple of nice Appenders (these are the parts that actually log the stuff to a specific medium). It even has some appenders that can send the log data over the wire:
NetSendAppender
UdpAppender
RemotingAppender
SmtpAppender
TelnetAppender
...
But these appenders just did not fit my needs. ...
Posted in .NET, c#, development | 4 Comments »
Friday, April 18th, 2008
Visual Studio offers a nice designer for creating/editing settings for your Application. Accessing those settings via the static Settings class is a breeze and the configuration method of choice for small applications (i wouldn't use it in larger LOB applications though).But i was never happy how Microsoft solved the way ...
Posted in .NET, c#, development | 3 Comments »
Friday, February 15th, 2008
Dass man den Workflow Desiger den man aus Visual Studio her kennt auch in eigenen Projekten verwenden kann ist an sich schon eine tolle Sache. Wenn man jetzt aber eine toll Applikation an Kuden verkaufen will, dann sollte alles einen einheitlichen Optischen Eindruck machen.Wer Anwendern die Möglichkeit geben will selbst ...
Posted in .NET, WF, c#, development | No Comments »