A Freezable is a type of object that has two states: frozen or unfrozen. When it is not frozen, a Freezable object behave like any other object. However, when it is frozen, a Freezable object can no longer be modified (immutable). Although the Freezable class has many applications, most Freezable objects in Windows Presentation Foundation (WPF) are linked to the graphics subsystem. For instance Brush,… [read more]
Here is a php script to save a database in a gzip archive. %s/db-%s.sql.gz', $host, $user, $pass, $db, $backup_folder, $d )); ?> [read more]
In the solution explorer you can see nested files: Let's see how to do the same with the two files Class1.cs and Class1.Custom.cs. The trick is in the project file (csproj). You need to look for the Class1.Custom.cs file in it and indicate which item is its parent.
And here's the… [read more] Class1.cs
WPF introduces the routed events. These are no longer specific to a single control but are "routed" through the hierarchy of controls. To stop an event, just mark it as handled by setting the property Handled to True in a handler. The WPF routing engine stops propagating it. Anyway, that's what you think. Actually, the event continues to go up but the different event handlers are no longer called.… [read more]