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

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.

主站蜘蛛池模板: 会东县| 阿鲁科尔沁旗| 五莲县| 清远市| 岑巩县| 抚州市| 综艺| 武宣县| 利辛县| 汉中市| 剑河县| 化隆| 山东省| 黔西| 彝良县| 通许县| 大宁县| 华容县| 南康市| 洪雅县| 湾仔区| 望江县| 淅川县| 乐业县| 临武县| 镇安县| 太白县| 奎屯市| 化隆| 滦平县| 商都县| 宿松县| 甘南县| 凌源市| 黎城县| 黔南| 秦安县| 汶川县| 咸丰县| 彭泽县| 河曲县|