Reading the Responsive Profile

0
0

Is there a way outside of the ResponsiveProfileChanged event to read the current profile?

  • You must to post comments
0
0

You can use Application.ActiveProfile https://docs.wisej.com/api/wisej.web/general/application#activeprofile

For example, this code snippet would set the text of a button to be the name of the active profile when the button is clicked.

private void button1_Click(object sender, System.EventArgs e)
{
button1.Text = Application.ActiveProfile.Name;
}

Application.ActiveProfile is a ClientProfile object, so you might find the ClientProfile documentation helpful as well:
https://docs.wisej.com/api/wisej.web/general/application/wisej.core.clientprofile

-Julie

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.