WPF animation: binding to the “To” attribute of storyboard animation

I’ve had similar situations in ControlTemplates where I’ve wanted to bind the “To” attribute to a value (rather than hard-coding it), and I finally found a solution. Quick side note: If you dig around on the web you’ll find examples of people being able to use data binding for the “From” or “To” properties. However, … Read more

asp.net: what’s the page life cycle order of a control/page compared to a user contorl inside it?

You should look at this ASP.NET Page Life Cycle Overview and this Page: PreInit Control: Init Page: Init Page: InitComplete Page: PreLoad Page: Load Control: Load Page: LoadComplete Page: PreRender Control: PreRender Page: PreRenderComplete Page: SaveStateComplete Page: RenderControl Page: Render Control: RenderControl Control: Unload Control: Dispose Page: Unload Page: Dispose

Window vs User Control

A Window is as the name suggests a window, it can be closed, minimized, resized etc. This should be quite intuitive. A UserControl on the other hand is a composite component/module which can be placed inside other controls and is itself made up of controls (possibly even other UserControls), the main use for UserControls is … Read more

Inheriting from a UserControl in WPF

Well .. you create your base control public abstract class BaseUserControl : UserControl{…} then in the XAML file : <Controls:BaseUserControl x:Class=”Termo.Win.Controls.ChildControl” xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml” xmlns:Controls=”clr-namespace:Namespace.Of.Your.BaseControl”> And that should work. EDIT: Hmm.. this example is useful when you have a base control without XAML and then inherit from it. The other way around(from a base control with … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)