AIF Object Model

May 27, 2010 at 2:24 PM

Hello.

I want to create some Hosted Application, that will send some  messages to UII Desktop. For example I want to maximize UII desktop size,

when some event occures in Hosted Application.I  have not found any availiablity to do this. I am able to send some messages only between Hosted Applications via ApplicationHost class.

Any solutions ?

Thanks

May 27, 2010 at 9:48 PM

In your hosted control, add a reference to Microsoft.Uii.Desktop.Core.dll from the framework directory.
Then add the IDesktopUserActionsConsumer Interface to the constructor for your hosted control, implement that interface. That will give you a pointer to the UiiDesktop Services.
At that point you can use the UserDefinedCommand method to pass information from your hosted control to the desktop,

You will find a method in the Desktopservices.cs Class called UserDefinedCommand.

MattB.

Jun 1, 2010 at 5:54 AM

Thank you, just what I need :)