PDA

View Full Version : XAML in Label Demo



TBrauner
28-Mar-2009, 10:22 AM
In the demo there is the LabelControlDemo".
With the ComSetMethod there are some methods "connected" to the MarkupContext, e.g. "MakeShapeRed". I tried to load the "shapes.xaml" an expected, that the method will be called, if i go to the "ellipse". But nothing happens.

How can i install a "click"-method to a xaml?

Thomas

Ian Smith
28-Mar-2009, 02:57 PM
Hi Thomas

You cannot!

The Markup functionality depends on a COM dispatch interface to return the Click event. There is no embedded COM interface in the VDF runtime and therefore nowhere for the click event to go. We did talk to DAW about this last June at EDUC and they did some investigations. There were no definitive conclusions.

To get this to work in VDF we need an “anonymous” OCX. i.e. an OCX that will handle any function call made to it, even if the function is not in the OCX dispatch interface. This OCX needs to raise a standard Event passing the function name and any other parameters. No one on the SigCj team has the experience to create this OCX.

Until we get this OCX or DAW are able to implement a COM dispatch for the call back in the runtime, Codejock Markup can only be used to enhance the look of a control.

wila
12-Dec-2014, 01:05 PM
Hi Thomas

You cannot!

The Markup functionality depends on a COM dispatch interface to return the Click event. There is no embedded COM interface in the VDF runtime and therefore nowhere for the click event to go. We did talk to DAW about this last June at EDUC and they did some investigations. There were no definitive conclusions.
Before I start and burn a lot of time on this (or even decide to take a completely different approach) has anybody out there been able to get this to work somehow?

What we need is to built a custom control and xaml appeared to fit the needs very well. Until I started to look at hooking up parts of the control.

It's nice being able to render a pretty custom control, but if the user can't interact with it, then it becomes a bit useless for most things.

--
Wil