- 浏览: 399884 次
- 性别:
- 来自: 上海
最新评论
文章列表
Behavior is something that we have know very good in the past that we can build something into the WPF system. There is Behavior class where can use as a base calss if we want to build our own behavior entities.From its definition, you can see that
msdn 写道
Encapsulates state information and zero ...
You might as well as I would suppose that if we just set the foreground of a window to something different from its original color, then the whole controls from the window might change as well?well this is not true, consider this example.
<Window Foreground="Red">
<Label Con ...
As an opening word, let's check on the background of the Prerendering tab controls.
TabControlEx 写道
There is a known behavior of TabControl that it will "virtualize" its tabs when they are created via data binding. Only the visible tab actually exists and is bound to the selected data ...
Recently I was trying to debug into one mysterious issue where the DockManager from DevExpress is so slow when certain theme is applied.And I have noticed that there are hotspot such as AddLogicalTree and RemoveLogicalChild on the performance counter. Below is a analysis on the result of analysis.
...
P/Invoke as in the following quote provides basically the way to calls into the unmanaged DLLs. the quote is as follow.
MSDN 写道
P/Invoke is short for Platform Invoke and provides the functionality to access functions, structs, and callbacks in unmanaged DLLs. P/Invoke provides a translation layer ...
NativeWindow gives you a way to way to intercept the window messages (are you familiar with the Windows Message Pump?)
Aslo, this class have provided with some default impl on manipulating handles and create child handle/control.s
NativeWindow for Message Intercepting and Handle Manipulation
...
It is sometimes very important to let the server knows when the client has made a proxy which may talks to the server.
However due to the complication and the design that WCF server has employeed to separate the low-level connection based management from the actual proxy itself. It is really hard ...
WCF will be able to send back the status of server and client erroneous condition in Fault messages. However, due to the security consideration, it is commonly disabled on the server side so that normally you are not able to view the server internal information direclty (suppose there are some crit ...
In WCF, primitives type are serialzable, and some commonly used types are also serialzable, but some types are not serialzable , and when this types to be used in wcf as the data contract for message, then you might get into trouble.there are ways to determine if a type is serializable or an instan ...
I have a service decorated with a ServiceContract attribute, and the interface definition is something like this:
[ServiceContract(CallbackContract = typeof(ITabularPushCallback))]
public interface ITabularPushService
{
[OperationContract(IsOneWay = true)]
void Subsc ...
Blocking Queue is something that we might demand constantly for various kinds of applications, where one thread might take data from the queue, and other threads might try to put data into the queue. Unlike other thread-safe queue, the blocking queue should have one unique requiremnt in that whether ...
ExpandoObject as we have introduce in the "C# - DynamicObject with Dynamic and create wrapper with DynamicObject " section in that it allows dynamically add/remove properties. and in tihs post, we will going to examine the attributes of ExpandoObject more closely.
In general, ExpandoObje ...
There is a expando object which allow you add/remove properties at runtime, DynamicObject provides ou with more capability and it is better used in places where a wrapper excels a raw XML file or script object syntax.
First, we will intoduce the DynamicObject, as stated in the References Section ...
we have seen the zipper in the previous post, now we will see some application and examples of Zippers.
firt, we will examine a simple file system implemented with Zipper.
type Name = String
type Data = String
data FSItem = File Name Data | Folder Name [FSItem] deriving (Show)
...
referential transparency,, one value is as good as another in Haskell if it represents the same thing.
e.g.
we have to have some way of knowing exactly which five in our tree we want to change. We have to know where it is in our tree. In impure languages, we could just note where in our ...