官术网_书友最值得收藏!

Debugging WPF Applications

When our WPF programs don't work as expected, we need to debug them, as we would with any other language. However, at first it can seem to be a daunting task, as WPF is very different from other languages. For example, when declaring a Dependency Property, we normally add a CLR property wrapper for convenience. However, the WPF Framework won't call it when the property value is changing, so we'd wait a long time for a break point in that setter to be hit

When we're testing our newly developed code, we need to be able to check the values of our data bound properties, and there are a number of ways to do that, although some are far from obvious. In this chapter, we'll investigate a number of important sources of information to help us to locate the mistakes in our code.

We'll discover a variety of tactics to help us when debugging the data bound values and find out how to track down the actual cause of a problem when faced with the dreaded XamlParseException. We'll cover all of these topics in detail shortly, but for now, let's first start with the absolute basics.

主站蜘蛛池模板: 沙河市| 邯郸市| 竹溪县| 山西省| 疏勒县| 定日县| 沂源县| 红河县| 莆田市| 黔西县| 隆尧县| 浮梁县| 炉霍县| 托克托县| 揭阳市| SHOW| 闽清县| 理塘县| 平南县| 康马县| 科尔| 常州市| 文成县| 许昌县| 扶风县| 祥云县| 新龙县| 博兴县| 湘阴县| 乌拉特中旗| 望谟县| 弋阳县| 湖口县| 哈尔滨市| 达拉特旗| 延长县| 宜黄县| 辽阳县| 花莲县| 扶绥县| 绍兴市|