|
|
Browse by Tags
All Tags » c# » .NET 3.5
Showing page 1 of 2 (17 total posts)
-
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 ...
-
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 ...
-
This could help on client sites where they've not changed the out of the box default assemblyinfo settings, and you want to know when a build was made of a particular assembly
http://www.geekproject.com/showtopic.aspx?ID=21
When you specify that you want to have Buildnumber and revision automatically generated then the compiler (C#) will ...
-
Update: 16:37 09/07/2010 – For a more fuller explanation of how to do this see this post - http://www.codeproject.com/KB/dotnet/xamlconfig.aspx?msg=3409766#xx3409766xx
The following code snippet shows an example of how to load a Configuration class, from an associated XAML file. This can be done in any application that is referencing the ...
-
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.IO;
namespace DataSetSerializer
{
class Program
{
static void Main(string[] args)
...
-
See this article here...
http://kashfarooq.wordpress.com/2008/11/29/mocking-wcf-services-with-rhinomocks/
1
|
|
|