Hi Guys,
I would like to ask you all the way to attach event to element which has dependency property.
I did but got no effect.
1. registry help ID
public
static
readonly
DependencyProperty HelpIDProperty =
DependencyProperty.RegisterAttached(
"
HelpID"
,
typeof
(
string
),
typeof
(HelpProvider));
2. Attach event when setting helpID to element
public
static
void
SetHelpID(DependencyObject obj,
string
value
)
obj.SetValue(HelpIDProperty,
value
);
var
element = obj
as
FrameworkElement;
if
(element !=
null
)
element.MouseDown += SensitiveElementOnMouseDown;
Is there any idea for this help
Read the question carefully.
Understand that English isn't everyone's first language so be lenient of bad
spelling and grammar.
If a question is poorly phrased then either ask for clarification, ignore it, or
edit the question
and fix the problem. Insults are not welcome.
Don't tell someone to read the manual. Chances are they have and don't get it.
Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.