A WindowsFormsHost cannot be rotated. To suppress this error, handle the LayoutError event and set ThrowException to false

StackOverflow https://stackoverflow.com/questions/15571277

سؤال

I have VLC ActiveX Plugin control inside of WPF.

<Grid> 
    <WindowsFormsHost  HorizontalAlignment="Stretch" Margin="0,0,0,0" Visibility="Hidden"   Name="windowsFormsHost1" VerticalAlignment="Stretch" ClipToBounds="True" SnapsToDevicePixels="True"  /> 
 </Grid> 

And when I try to apply some animation I am facing this error:

A WindowsFormsHost cannot be rotated. To suppress this error, handle the LayoutError event and set ThrowException to false. 

Any clue how we can fix it?

هل كانت مفيدة؟

المحلول

That error is pretty straight forward. You simply can't rotate or resize WinFormsHost controls. See here.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top