Ask a questionAsk a question
 

AnswerSetting ZPanel Index on windows forms host in WPF

  • Sunday, March 30, 2008 11:20 PMcynistersix Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    I'm creating a grid with a windows forms host in WPF and behind it put a progress bar control but I can't find how to get the z index of the host to change so i can hide the windows forms host and then show the progress bar, and when the host control is finished doing its work hide the progress bar and show the windows forms host.

    Any help would be much appreciated

    Thanks

Answers

  • Monday, March 31, 2008 12:58 AMJeremiah Morrill Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    You are probably running into airspace issues, in which a forms host will always be on top of all WPF content.

     

    Try searching the internet, there are several hacks and work arounds...and just advice on how to "live with it". Wink

     

    -Jer

     

  • Tuesday, April 01, 2008 12:09 AMcynistersix Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

     

    Yep! Had to change the width and height of the forms host to 0 when i wanted to show the items behind it and then set them back to the grid containing the control's height and width.

     

    Thanks

All Replies

  • Monday, March 31, 2008 12:58 AMJeremiah Morrill Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    You are probably running into airspace issues, in which a forms host will always be on top of all WPF content.

     

    Try searching the internet, there are several hacks and work arounds...and just advice on how to "live with it". Wink

     

    -Jer

     

  • Tuesday, April 01, 2008 12:09 AMcynistersix Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

     

    Yep! Had to change the width and height of the forms host to 0 when i wanted to show the items behind it and then set them back to the grid containing the control's height and width.

     

    Thanks