简体   繁体   中英

How can I make a simple test to verify that Visual Studio 2015 in Design Mode is executing my code?

Working on a Visual Studio 2015 Windows Phone 8.1 app (Developing on Windows 10!), how can I make a simple test to verify that Visual Studio in Design Mode is executing my code?

I tried to put

Debug.WriteLine("DesignMode executing test");

in the constructor of a page, but when I load it in Design Viewer, nothing happens. I think the test I made isn't clever.

可以测试Component.DesignMode

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM