Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
510
Restrict dialog to silverlight client window
posted

Hello,

I would like to restrict a xamDialogWindow to silverlight client : like RestrictInContainer, but with a restriction on the whole silverlight plugin window.

Is there sample for this restriction? this could be a nice new feature ;)

Regards,

Parents
  • 28407
    posted

    HI,

     You could wire up the XamDialogMoving event and cancel it if the windows goes too far to the left or from the top.

     Here is a code snippet

     private void xamDialogWindow1_Moving(object sender, Infragistics.Controls.Interactions.MovingEventArgs e)

    {

     

     

    if (e.Left > 200)

    {

    e.Cancel =

     

    true;

    }

     

     

    if (e.Top > 200)

    {

    e.Cancel =

     

    true;

    }

    }
    Sinceerly,
     Matt
    Developer Support Engineer

Reply Children