loadsofcode.blogspot.com
Loads<Code>: Documenting Attached Properties with Sandcastle
http://loadsofcode.blogspot.com/2009/07/documenting-attached-properties-with.html
A technical blog, primarily about .NET development with C#. Thursday, 23 July 2009. Documenting Attached Properties with Sandcastle. I’ve been using Sandcastle. And Sandcastle Help File Builder. Recently to produce some SDK documentation and noticed that topics were automatically created for attached properties. Like the one shown here. But how do you actually populate these topics and how do you link back to them? Well let’s work through a simple example. Identifies the MyAttached attached property.
loadsofcode.blogspot.com
Loads<Code>: Declaring Default Values for Control Properties
http://loadsofcode.blogspot.com/2009/02/declaring-default-values-for-control.html
A technical blog, primarily about .NET development with C#. Wednesday, 18 February 2009. Declaring Default Values for Control Properties. Consider the following example, where the. Control exposes a hover delay for generating a hover event during a drag-and-drop operation. M dragHoverTime = 400; public int. M dragHoverTime; } set. M dragHoverTime = value. Remainder of CustomListView omitted. Class to advertise the default value of a property to visual designers and code generators. M dragHoverTime; } set.
loadsofcode.blogspot.com
Loads<Code>: Implementing Observable Objects – Part VI
http://loadsofcode.blogspot.com/2009/02/implementing-observable-objects-part-vi.html
A technical blog, primarily about .NET development with C#. Thursday, 12 February 2009. Implementing Observable Objects – Part VI. I mentioned that the. Class makes no checks to ensure any UI updates are made on the correct thread, which means it could potentially violate the threading model employed by both. Now if you spent much time working with. You’re probably aware that the data binding mechanism can actually cope with PropertyChanged. Events raised on different threads to the bound UI object.
loadsofcode.blogspot.com
Loads<Code>: July 2009
http://loadsofcode.blogspot.com/2009_07_01_archive.html
A technical blog, primarily about .NET development with C#. Thursday, 23 July 2009. Documenting Attached Properties with Sandcastle. I’ve been using Sandcastle. And Sandcastle Help File Builder. Recently to produce some SDK documentation and noticed that topics were automatically created for attached properties. Like the one shown here. But how do you actually populate these topics and how do you link back to them? Well let’s work through a simple example. Identifies the MyAttached attached property.
loadsofcode.blogspot.com
Loads<Code>: Implementing Events with C++/CLI
http://loadsofcode.blogspot.com/2009/07/implementing-events-with-ccli.html
A technical blog, primarily about .NET development with C#. Friday, 10 July 2009. Implementing Events with C /CLI. I’ve been doing a fair amount of work in. For interop between managed and unmanaged code. I found a minor problem when implementing events in a class library that I thought I’d share. As with. You have a couple of options for events: use the data member syntax or define individual event accessor methods. Just like. System: EventHandler MyEventArgs MyEvent; / Remainder of MyClass omitted.
loadsofcode.blogspot.com
Loads<Code>: January 2009
http://loadsofcode.blogspot.com/2009_01_01_archive.html
A technical blog, primarily about .NET development with C#. Wednesday, 28 January 2009. Implementing Observable Objects – Part III. We saw the introduction of the. Base class, which simplifies the property update mechanism by placing all of the boilerplate code in the. Method. The problem with this approach is that it’s too easy to make a mistake with the property names, so now we’re going to reinforce the. Method by asserting the relevant assumptions. These assumptions are:. SetProperty T ( string.
loadsofcode.blogspot.com
Loads<Code>: Implementing Observable Objects – Part V
http://loadsofcode.blogspot.com/2009/02/implementing-observable-objects-part-v.html
A technical blog, primarily about .NET development with C#. Friday, 6 February 2009. Implementing Observable Objects – Part V. I mentioned that the. Method can call unknown code. This is true for any method that raises an event. Why is this a problem? It’s a problem for the. We should provide one of three established guarantees in the face of errors:. Guarantee – data and invariants remain valid when the operation fails. Guarantee – data is rolled back to its original state when the operation fails.
loadsofcode.blogspot.com
Loads<Code>: February 2009
http://loadsofcode.blogspot.com/2009_02_01_archive.html
A technical blog, primarily about .NET development with C#. Thursday, 19 February 2009. Restricting the Contents of Container Controls. It’s quite common for container controls to place a restriction on the type of child controls they contain. For example, the TabControl. Class will only accept instances of the TabPage. Method and return a more specialised control collection that provides the correct behaviour for adding and removing child controls. Consider the following example, where the. Method for c...
SOCIAL ENGAGEMENT