DCSIMG
.NET - Tal Pasi

Tal Pasi

Tales of daily battles in the world of .NET

Browse by Tags

All Tags » .NET (RSS)
PropertyBag .Net 4.5 Style
PropertyBag .Net 4.5 Style When dealing with Infrastructure for entity data class, Property-Bags comes into consideration ever so often. The main benefits of using a property-bag as I see them: 1. Support dynamic addition of properties to a class without recompiling, for instance if the content of the property bag is taken from a database or other data repository 2. As the owner of the base class that contains the property dictionary, you can iterate over the properties of the derived classes (for...
Nuget + Symbol Server + Solution Template = Bliss
  As A software infrastructure provider deploying our Products to the other Dev teams was not as easy as we wanted it to be. This is all about to change because of the generous gift that was given to the world which is Nuget . I am not going to introduce Nuget here, you can find a lot of documentation, a good place to start is Nuget Doc site and Nuget codeplex site . the goal of this post is tell you about the good things that Nuget did for us. Nuget in my enterprise We divided all of the assemblies...
WPF ComboBox dropdown disappears in Windows XP when Window with AllowTransparency=”True”
This week we had a very strange case that 2 of our ComboBox controls did not open their dropdown although you can select the items with either the mouse wheel or the keyboard arrow keys. We thought at first that there is something wrong with our Styles, especially because we got a new version from our UX team this week. First we removed the ComboBox related styles and to see if the style is the actual cause of this problem, it turns out the there is nothing wrong with the style and the “naked” ComboBox...
WPF - Main Window disappears when closing the last owned child window
Today I witnessed a weird thing with WPF Itay, a very good friend of mine noticed that when you have multiple child windows in a WPF application, and you close the last one, the application suddenly disappears, This only happens if you have more than one child window and you set the MainWindow as the owner of the other windows  This is a very unexpected behavior. Let me demonstrate The following code is in the MainWindow.xaml.cs   private void ShowChildWindows() { ChildWindow window = new...
To const or to not to const (static readonly) that is the question
Lets discuss the following scenario: We have an assembly named [DomainModel] that has a class named [Person] that all of its properties are stored in a property-bag, in addition we have a const string that holds the key of the Name Property, this key is named [NameKey] and Its value is “Name”, so far so good. don’t ask me why I use property bag this is just for demonstration purposes only. namespace DomainModel { public class Person { public const string NameKey = " Name " ; public Person...
Posted: Dec 20 2010, 06:43 PM by Tal Pasi | with no comments
תגים:,