Share via


DialogDebuggerVisualizer Class

Definition

All custom Debugger Visualizers must derive from this class and provide a parameterless constructor to be called by VS.

public ref class DialogDebuggerVisualizer abstract
[Windows::Foundation::Metadata::WebHostHidden]
public ref class DialogDebuggerVisualizer abstract
[Windows::Foundation::Metadata::WebHostHidden]
class DialogDebuggerVisualizer abstract
public abstract class DialogDebuggerVisualizer
type DialogDebuggerVisualizer = class
Public MustInherit Class DialogDebuggerVisualizer
Inheritance
DialogDebuggerVisualizer

Examples

public class Visualizer1 : DialogDebuggerVisualizer
{
    protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
    {
        IVisualizerObjectProvider3 objectProvider3 = (IVisualizerObjectProvider3)objectProvider;

        // TODO: Get the object to display a visualizer for.  
        var data = objectProvider3.GetObject<MyExampleType>();

        // TODO: Display your view of the object.  
        //       Replace displayForm with your own custom Form or Control.  
        Form displayForm = new Form();
        displayForm.Text = data.ToString();
        windowService.ShowDialog(displayForm);
    }
}

Remarks

This is the debugger-side class, which receives data from the object source through the object provider. This class is responsible for showing and managing the user interface and optional editing of data. Typically, you only need to override the Show() method to use this class.

Constructors

DialogDebuggerVisualizer()
Obsolete.

Creates a new instance of the DialogDebuggerVisualizer base class that uses the Legacy serialization policy when communicating with the VisualizerObjectSource.

DialogDebuggerVisualizer(FormatterPolicy)

Creates a new instance of the DialogDebuggerVisualizer base class that uses the specified FormatterPolicy as its serialization policy when communicating with the VisualizerObjectSource.

Methods

Show(IDialogVisualizerService, IVisualizerObjectProvider)

Displays the visualizer.

Applies to