custom-properties

How do I set a default value for a ASPX UserControl property?

I have a user control defined on an page as follows: <uc:MyUserControl ID="MyUserControl" runat="server" Visible="true" /> I am wanting to reuse the same control on a different page with a custom property as follows: <uc:MyUserControl ID="MyUserControl" runat="server" Visible="true" MyCustomProperty="MyCustomText" /> The purpose o...

Silverlight, custom object for shapes

Hello, I am studding Silverlight. I have an application where I create Polygons in UserControl_Loaded method. During creation stage I add MouseLeftButtonUp event handler like this: polygon.MouseLeftButtonUp += MouseButtonEventHandler_MouseLeftButtonUp; All polygons have the same handler. My goal is to use a custom object when I clic...

SharePoint Custom Web Part With Active Directory

Hello all. I am currently working on a custom SharePoint web part (WSS 3.0, not MOSS) that will pull in information for all of the users in Active Directory to build an up to date employee directory. This web part shows things like phone number, address, and other similar fields. The issue that I am having is that, by default, the Sha...

Custom property value problem.

My projects involve a number of usercontrols that are actually full blown applications. These usercontrols are designed to be placed onto tab controls. The apps area used by 2 different office locations, so one of the common items found on the controls is a combobox that lists the ID's for each of the 2 offices ('P' and 'G'). I wanted t...

Do I have to clean custom properties (Expandos) on window.onunload event?

Hi, In one article I have seen that it may be good to clear all expandos on window.unload event to prevent memory leaks. I cannot understand why to do this. Isn't the browser cleaning all the DOM and its relevant resources of it once you leave the page anyway? Thanks, burak ozdogan ...

WPF - Dependency Properties Error

Hello again. I'm working on a WPF project, and my intention is to make two specific RadioButtons alter properties of another specified Component. But for now, i'm just trying to store a String inside the RadioButton. For that, I've created a behavior class: public class AdjustBehavior : Behavior<RadioButton> { With this property...

Display word custom document property on screentip

On your Windows machine if you just hover your mouse over any Microsoft Office Word 2007/2010 document you get a screentip which generally contains metadata information such as Type,Authors, Size and DateModified. These metadata are the builtin document properties of any word document. I'm wondering if there is any (VSTO/other/hacked)wa...