-
|
The Best from DevelopMentor
|
MORE
|
-
WPF MVVM Helper Library (WPF + MVVM = testability)
always introduce students to MVVM as part of the Essential WPF class, it's an incredibly
useful utility classes, helpers, wrappers, etc. places as I built various classes I needed for my own work. These classes
tended There's been a lot of talk about the Model-View-ViewModel pattern recently and it's
usage usage around the WPF and Silverlight technology stack.
-
SOS: finding the method bound to an EventHandler with WinDbg.
I was preparing a sample memory leak application for an Advanced C# class at Microsoft this past week and debugging through it with SOS.DLL ("Son of Strike"). said, this was a sample.
So, So, I was debugging through it prior to the class just to make sure it exhibited the
behavior My prepared application was an ASP.NET application that would leak memory by holding references to the page objects after they had completed their work. I did this by having the page hook up an event handler to a global event and then never remove the handler.
This,
-
Part 3: Shifting focus to the first available element in WPF
a markup extension is trivial - you just extend the MarkupExtension base
class and implement the ProvideValue method. x:Class="FocusTest.Page2"
xmlns:FocusTest="clr-namespace:FocusTest"
FocusManager.FocusedElement="{FocusTest:FirstFocusedElement} ">
Now,
I didn't in the sample (or in my production app) but I We've seen how to programatically control focus and that's all great stuff, but one
thing I like to do with WPF is see how much of the repetitive or UI-specific code
-
Using SAML as a Client Credential Type in WCF (with Geneva)
this credential could be a normal WCF service or a STS that issues tokens based on
Using Geneva you can generate a SAML token like this:
public static class ClientToken
{
private const string _claimsUri
= http://www.leastprivilege.com/claims/ ;
public static SamlSecurityToken Create( string subjectName, Dictionary
does not know how to authenticate the client based on the values of certain SAML attributes.
Disclaimer
For the motivation for this article please read this here
www.leastprivilege.com
- Monday, March 9, 2009
-
Part 3: Shifting focus to the first available element in WPF
markup extension is trivial - you just extend the MarkupExtension base
class class and implement the ProvideValue method. Class="FocusTest.Page2"
didn't in the sample (or in my production app) but I could certainly see that being
a We've seen how to programatically control focus and that's all great stuff, but one
thing thing I like to do with WPF is see how much of the repetitive or UI-specific code
I
-
More asynchronous work in Windows Workflow Foundation 4
The activity will be signaled as closed and we are ready to go. One big difference is the activity base class. In the previous sample I was using the CodeActivity as the baseclass for my custom activity while in this case I am using the more powerful NativeActivity . A word of warning here, these are the names in WF4 Beta 1 and they are likely to change before WF4 is release! So what does my activity look like? class AsyncWorker : NativeActivity
{
protected override void Execute(ActivityExecutionContext context)
{
The Problem Solver
- Wednesday, July 15, 2009
-
SOS: finding the method bound to an EventHandler with WinDbg.
I was preparing a sample memory leak application for an Advanced C# class at Microsoft this past week and debugging through it with SOS.DLL ("Son of Strike"). said, this was a sample.
So, So, I was debugging through it prior to the class just to make sure it exhibited the
behavior My prepared application was an ASP.NET application that would leak memory by holding references to the page objects after they had completed their work. I did this by having the page hook up an event handler to a global event and then never remove the handler.
This,