Notice that in the example below the SuperStyle which is based on StartingStyle does not automatically know the TargetType, and is complaining about access to the TextTrimming property. If the TargetType of TextBlock is repeated in the SuperStyle declaration, the error goes away.
By retrieving the SuperStyle from the window’s resources we find that the TargetType is System.Windows.IFrameworkInputElement
and not System.Windows.Controls.TextBlock. So be sure to indicate the TargetType even when using BasedOn to compose a style.
I just posted an article on the .NET link about using the Spring.NET core IoC technology to instantiate an application object that contains a list of other objects, and initialize them both using XML. The IoC container takes care of everything. For more info on Spring, check out the Spring.NET application framework site.
I’ve added a look at the ODBC DataSet to the .NET tab that looks at the foundation that this wizard generated dataset is build upon.
I’ve just added a new tab to contain articles that I write about .NET programming. I’ve started off with a review of creating an ODBC data source for a Windows Forms application, for those times when the database vendor has no other way of connection. Check it out if you are interested.
I just finished a virtual presentation on using PowerShell 3.0 to administer Internet Information Service. One of the things that struck me as I looked around for examples, is that after the IIS team spent what I hope is a lot of time and effort to write over 70 new cmdlets, most of the examples that I find being published online are just using PowerShell as a command window to execute existing commands. Hopefully as more people learn about the fine grained capabilities of the WebAdministration modules cmdlets we will see more moving in that direction.
Your Technology Tour Guide