Click here to Skip to main content
15,897,334 members
Articles / Desktop Programming / WPF

Writing a Debugger Visualizer in WPF: Part 2

Rate me:
Please Sign up or sign in to vote.
4.45/5 (9 votes)
4 Jun 2010CPOL4 min read 24.8K   203   19  
This article describes writing a debugger visualizer in WPF for multiple data types.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyVisualizer;
using System.Windows.Media;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
using System.Windows;

namespace MyVisualizerClient
{
    class Program
    {
        [STAThread]
        static void Main(string[] args)
        {
            Employee emp = new Employee();

            emp.ID = 10;
            emp.Name = "Bob Smith;";

            Color color = new Color();
            color.R = 32;
            color.G = 127;
            color.B = 32;
            color.A = 255;

            MyColorClass.TestShowVisualizer(color);
        }
    }

    class Employee
    {
        private int _id;
        private String _name;

        public int ID
        {
            get { return _id; }
            set { _id = value; }
        }

        public String Name
        {
            get { return _name; }
            set { _name = value; }
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader American Institute for Research
United States United States
Working as a Team leader in American Institute for Research

Comments and Discussions