How to access Silverlight properties and management methods on an aspx page?

I am developing a website and I am using infragistics for the Internet, but I want to use silverlight (Infragistics) controls on some pages. Is there a way to access Silverlight properties and management methods on an aspx page?

Thanks in advance for your help.

+3
source share
1 answer

The silverlight control works on the client, so the best way to access the silverlight control data is to expose it using javascript methods.

silverlight javascript, .

Silverlight, , , javascript, javascript , .

javascript, silverlight, :

[ScriptableMember]
public int GetValueFromSilverlight()
{
    // lame example
    return int.Parse(textBox.Value);
}

, .

, silverlight.

, ( ), - Silverlight -, , .

, - , , , , - ( ).

+4

Source: https://habr.com/ru/post/1742837/


All Articles