Afficher un WindowsFormsHost (UserControl) sur un WPF form(allowTransparency=tr
sofienjustdoit
Messages postés6Date d'inscriptionjeudi 12 avril 2012StatutMembreDernière intervention24 mai 2012
-
4 mai 2012 à 18:58
sofienjustdoit
Messages postés6Date d'inscriptionjeudi 12 avril 2012StatutMembreDernière intervention24 mai 2012
-
24 mai 2012 à 21:08
Bonjour a tous , j ai une petite problème dans ce contexte et vraiment je sais pa comment faire pour le régler ..
Bon alors tous simplement :
1- j ai créer mon application WPF
2- dans mon MainWindow j ai inséré un windowsFormsHost
(pour hoster un userControl (Windows Forms) qui contient un bouton..)
=>lorsque je fais l exécution ;; mon userControl s affiche bien !!,
>La Problème!!! c'est que si je change la propriété:
-MainWindow.allowsTransparency =true;
(avec MainWindow.WindowStyle=None;)
Le userControl devien invisible et se cache; (si je change MainWindow.allowsTransparency =false il s affiche bien !)
Quelq'un a un solution pour afficher mon windows userControl dans mon MainWindow en gardant MainWindow.allowsTransparency =true ?????????????
Car je doit afficher des transparences dans le form MainWindow(form pas rectangulaire..)
Merci d avance :)