|
|
Browse by Tags
All Tags » C#
Showing page 1 of 10 (92 total posts)
-
I’ve been using AutoMapper on a number of projects for a number of years now and it’s always been a love/hate relationship. AutoMapper is a great little .NET class library that takes the pain out of mapping one class to another but sometimes it makes me nervous when I just trust the magic and wonder what it’s really doing because although it ...
-
Had been getting this recently in our builds, and have finally tracked it down to conflicting versions of the Microsoft.ReportViewer.Common.dll in our project references. This came about as one of our developers was using VS 2010, but the rest were still back on VS 2008.
Anyway, I thought I’d blog around how we traced this issue down in the end, ...
-
Came across this issue on the project I’ve been working on. When resizing a form that contained the System.Windows.Forms.Integration.ElementHost control to host WPF content inside a Windows Forms control, we noticed that the new screen real estate inside the ElementHost was not redrawn at all. Rather it just left a black border around the original ...
-
Finally managed to figure out how to get virtualization to actually behave itself in a listbox wpf control.
Turns out that in order for Virtualization to work, you need three things satisfied.
1) Use a control that supports virtualization (e.g. list box or list view). (see Controls That Implement Performance Features section at bottom of ...
-
Even though x:Name is a dependency property for a WPF framework element, you cannot the name of the control to a static resource in the code behind file <Window x:Class="WpfApplication2.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" ...
-
I’ve been wanting to know this for years, and finally discovered it the other day when looking inside the Microsoft Composite Application Blocks class in Microsoft.Practices.CompositeUI.BuilderStrategies.CommandStrategy.
There’s some code in this class to discover if an event handler has already been attached to the event, and it goes a little ...
-
There's 2 products (both with free versions) you can use for T4 intellisense:
One is by Clarius at http://www.visualt4.com/. But best to go with Tangible's T4 editor at http://t4-editor.tangible-engineering.com/T4-Editor-Visual-T4-Editing.html (available through the Extension Manager in VS2010 under tools).
Also if you want to get a bit more ...
-
As you may or may not be aware I have recently spending some time trying to get a re-usable MVVM template together. On my voyage of discovery when creating this I wanted to take out the standard boiler plate NotifyPropertyChanged code form the MVVM Light Toolkit. I wanted to use AOP (Aspect Orientated Programming) so that on properties ...
-
On our project we were noticing a massive performance penalty when sending a number of records to the database to either be inserted or updated via the standard NHibernate framework syntax, so we decided to see if we could do anything about this. Turns out that we were able to alter the query that NHibernate normally generated, and change it into ...
-
I suddenly realised every time I started a new project for Windows Phone 7 Development for Silverlight I was repeating my initial setup of projects way to much. Not only that it was hampering my creativity of “just getting on with coding, the fun part!” Since this eureka..ka.ka.ka.ka moment (should have come sooner) I decided to setup a ...
1 ...
|
|
|