I added a in the TABCONTROL USERCONTRL, sometimes it can be showed that sometimes you can't, would you please tell me why god?
This USERCONTROL to add a background image, open USERCONTRL alone is not an error, normal program is running normally, now is in the TABCONTROL XAML interface can't display properly
CodePudding user response:
Usercontrol parent container don't use viewbox, usercontrol is no wide high need parent control specified and viewbox was scaling of the content of the container, if want to zoom in so child controls must specify the width is high, so change viewbox to the grid or in usercontrol explicitly specify the width and height properties Of course this is just personal speculation that the original poster can have a try
CodePudding user response:
There are errors in the UserControl, and ViewBox it doesn't matter, but ViewBox generally used in the outermost layers of the xaml,