|
|
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
35 Articles match "Behavior"
|
Related DevelopMentor Courses
|
MORE
|
|
Essential Silverlight 3
How do I use Expression Blend to get the most out of Visual State Manager and Silverlight 3 Behaviors? You will also examine Silverlight's new Behaviors, Triggers and Actions model that enable developers to create reusable units of functionality that can then be applied by designers to many different elements. Create Rich Internet Applications (RIAs) using languages and libraries that you already know. Deliver online business applications, multimedia websites, and games to Windows, Mac OS, and Linux clients. How can I utilize background threads to make my UI more responsive?
DevelopMentor Courses
- Wednesday, June 17, 2009
Foundations of C# Programming and the.NET Framework
We discuss how to use dynamic binding to achieve polymorphic behavior. less code!) Distinguish between "implementation inheritance" and "interface inheritance" Use ADO.NET to connect to SQL Server and run a simple query Build a basic Windows Forms GUI Essential C# is ".NET NET 101" for developers moving to.NET. Explore core C# features like classes, inheritance, namespaces, and events. Discuss fundamental concepts such as the Common Language Runtime (CLR), garbage collection, and deployment. In this course, you spend half your time on the C# language and half on the.NET platform. field)?
DevelopMentor Courses
- Friday, June 12, 2009
Virtual Design Patterns
This pattern shows that an object's behavior and responsibilities can be extended at runtime, as opposed to design time using inheritance. This allows us to combine a variety of behaviors far more efficiently that normal inheritance. State In many cases object behavior depends on the state an object is in. When the state of an object changes the behavior of the object also changes. This pattern provides a means to map a finite state machine into a series of classes where each class represents a different state, thus providing different behaviors.
DevelopMentor Courses
- Tuesday, March 2, 2010
|
72 Articles match "Behavior"
|
The Latest from DevelopMentor
|
MORE
|
|
Workflows and no persist zones
Turns out that duplicating this behavior is quite easy though. There are times when a workflow can't be persisted safely using a SqlWorkflowInstanceStore. The reason isn't so much saving the state of a workflow to disk, that could be done at any time, but the result when a workflow would be reloaded from disk in that state. An easy example is a workflow handling a WCF request with a Receive and SendReply activity pair. Suppose you would save the workflow state after the message had been received but before the response had been send. No problem there. But where? But wait. null ); }. }.
The Problem Solver
- Sunday, August 22, 2010
Unity, Multiple Constructors and Configuration
This is caused by Unity’s default behavior where it will try to resolve on the constructor with the most parameters (on the basis that this one will have the most dependencies that can be injected). I’ve been working with the Unity IoC container from Microsoft Patterns and Practices recently. Its mostly straightforward as IoC containers go but one thing had me puzzled for a while as its not really documented or blogged as far as I can see; so I decided to blog it so hopefully others looking will stumble across this article. 1: public interface IService. 3: void DoWork(); 4: }. 10: {.
.NET Meanderings
- Monday, June 7, 2010
A more elegant way of embedding a SOAP security header in Silverlight 4
Here’s the code for the behavior/inspector: public class IssuedTokenHeaderInspector : IClientMessageInspector. {. The current situation with Silverlight is, that there is no support for the WCF federation binding. This means that all security token related interactions have to be done manually. Requesting the token from an STS is not really the bad part, sending it along with outgoing SOAP messages is what’s a little annoying. So far you had to wrap all calls on the channel in an OperationContextScope wrapping an IContextChannel. rstr = rstr; }. if (rstr == null ). {. rstr = rstr; }.
www.leastprivilege.com
- Thursday, May 13, 2010
|
-
|
The Best from DevelopMentor
|
MORE
|
-
Playing with WPF Behaviors - a WatermarkText behavior
One of the coolest new features of Blend 3 is the inclusion of behaviors. This new feature formalizes the "attached behavior" model that has become so prevelant in WPF (and Silverlight) development. I've included this new behavior into the current build of my MVVM toolkit which I'll release soon, but for now, let's look at the behavior: First, we derive from System.Windows.Interactivity.Behavior - the placeholder parameter is the Visual type you want the behavior to act on. class WatermarkTextBehavior : Behavior >. public. protected. protected.
-
Blend Behaviors in Styles: DragPositionBehavior
This behavior allows any UIElement to be dragged and repositioned using the mouse without requiring any code logic on your part. It’s easy to apply – using the traditional Blend syntax (easiest done by dragging the behavior onto an element): {rtf1ansiansicpglang1024noproof65001uc1 deff0{fonttbl{f0fnilfcharset0fprq1 Consolas;}}{colortbl;??red163green21blue21;red255green255blue255;red0green0blue255;}??fs28 So I showed an alternative syntax to apply the same behavior: {rtf1ansiansicpglang1024noproof65001uc1 deff0{fonttbl{f0fnilfcharset0fprq1 Consolas;}}{colortbl;??red163green21blue21;red255green255blue255;red0green0blue255;red255green0blue0;}??fs28
-
MVVM: IUIVisualizer and event management with behaviors
It provides drag support through a behavior on the style. You can also double-click to change the values and it enforces numeric text box behavior. Both of these are accomplished with Blend Behaviors. To use them, you add the behavior to the visual element in question, for example, the watermarked textbox behavior gets applied like this: {rtf1ansiansicpglang1024noproof65001uc1 deff0{fonttbl{f0fnilfcharset0fprq1 Consolas;}}{colortbl;??red0green0blue255;red255green255blue255;red163green21blue21;red255green0blue0;}??fs28 Drag/Position Behavior. par ??
-
Getting started with Windows Workflow Foundation 4
So basically forget all you knew about the behavior of WF 3 So lets take a brief look at creating a new workflow 4 style workflow. As you may have heard Windows Workflow Foundation 4 is not an upgrade from Windows Workflow Foundation 3 (or 3.5). The version numbers might suggest that the previous version was quite mature but in fact it refers to the version of the.NET framework. In fact Windows Workflow Foundation 3 was the first version and 3.5 added only very few features and some bug fixes. Well wrong actually! There no longer is a class named WorkflowRuntime. Yes there is.
The Problem Solver
- Monday, June 22, 2009
-
Windows Workflow Foundation 4 and persistence
sqlexpress;Initial Catalog=WorkflowInstanceStore;Integrated Security=True;Pooling=False" ; var behavior = new SqlWorkflowInstanceStoreBehavior(connStr); behavior.InstanceCompletionAction = InstanceCompletionAction.DeleteNothing; behavior.InstanceLockedExceptionAction = InstanceLockedExceptionAction.AggressiveRetry; behavior.InstanceEncodingOption = InstanceEncodingOption.None; host.Description.Behaviors.Add(behavior); So that is all there is to it? The whole persistence model has changed quite a but for WF4. So what can we do with the SqlWorkflowInstanceStore? Enjoy!
The Problem Solver
- Thursday, November 19, 2009
-
Workflow 4 and soap faults
Sometimes the behavior above is just fine but at other times it is not. Image by ponChiang via Flickr Note: This blog post is written using the.NET framework 4.0 RC 1 Using the ReceiveAndSendReply activity template and the WorkflowServiceHost it is easy to create a workflow service. Other applications can communicate with the workflow just as if it is a regular WCF service, they never need to know the difference. Most of the configuration is quite straightforward. Select the Receive activity and configure it and do the same with the SendReply activity. But what about faults? DataMember].
The Problem Solver
- Wednesday, March 24, 2010
-
Flowcharts in Workflow 4 and the Switch activity
They allow for a lot of pretty complex behavior that is hard to do in a sequential workflow. In WF 3 we used to model these complex behaviors as state machine workflows. Flowcharts are a nice addition to Windows Workflow Foundation 4. That worked but they weren't really state machines or event driven and things could get a bit tricky. Enter the flowchart in Windows Workflow Foundation 4 One of the good things is that a flowchart is not another workflow type. No it is just another activity to drop in a workflow. guess you get the picture. So far so good. Next (5). And again.
The Problem Solver
- Tuesday, October 27, 2009
|
|
|