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

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.

主站蜘蛛池模板: 阳东县| 泗洪县| 梅州市| 赫章县| 峨山| 当涂县| 广南县| 庄浪县| 六枝特区| 武义县| 项城市| 长岛县| 弋阳县| 辽源市| 枞阳县| 常熟市| 武平县| 金华市| 洛宁县| 虎林市| 金湖县| 西宁市| 安宁市| 上饶县| 阿城市| 平凉市| 石泉县| 全南县| 留坝县| 广东省| 鹰潭市| 定日县| 滕州市| 共和县| 修武县| 靖远县| 济源市| 凉城县| 马关县| 突泉县| 邹城市|