FindMyFiles

FindMyFiles.Views

PerfPanel Class

The F12 performance panel: stage bar (proportional theme-brush segments), latency sparkline, volume/USN/error text blocks and the one-click diagnostics dump. Rendered imperatively from PerfDataChanged — it is diagnostic chrome, not app data. The host supplies ViewModel via x:Bind; the 1 Hz stats poll runs only while the panel is open. UI thread only.

public sealed class PerfPanel : Microsoft.UI.Xaml.Controls.UserControl, Microsoft.UI.Xaml.Markup.IComponentConnector

Inheritance System.ObjectMicrosoft.UI.Xaml.DependencyObjectMicrosoft.UI.Xaml.UIElementMicrosoft.UI.Xaml.FrameworkElementMicrosoft.UI.Xaml.Controls.ControlMicrosoft.UI.Xaml.Controls.UserControl → PerfPanel

Implements Microsoft.UI.Xaml.Markup.IComponentConnector

Constructors

PerfPanel() Constructor

Builds the 1 Hz stats poll timer (runs only while `ViewModel.IsOpen` is true). The timer is not started here; it is started/stopped on open/close.

public PerfPanel();

Fields

PerfPanel.ViewModelProperty Field

Backing DependencyProperty for ViewModel. On value swap, re-routes `PerfDataChanged`/`PropertyChanged` subscriptions from old to new.

public static readonly DependencyProperty ViewModelProperty;

Field Value

Microsoft.UI.Xaml.DependencyProperty

Properties

PerfPanel.ViewModel Property

Diagnostic ViewModel supplied by the host via `x:Bind`. Source of trace/stats update notifications; drives the 1 Hz stats poll only while the panel is open.

public FindMyFiles.ViewModels.PerfPanelViewModel? ViewModel { get; set; }

Property Value

PerfPanelViewModel

Methods

PerfPanel.Connect(int, object) Method

Connect()

public void Connect(int connectionId, object target);

Parameters

connectionId System.Int32

target System.Object

Implements Connect(int, object)

PerfPanel.GetBindingConnector(int, object) Method

GetBindingConnector(int connectionId, object target)

public Microsoft.UI.Xaml.Markup.IComponentConnector GetBindingConnector(int connectionId, object target);

Parameters

connectionId System.Int32

target System.Object

Implements GetBindingConnector(int, object)

Returns

Microsoft.UI.Xaml.Markup.IComponentConnector

PerfPanel.InitializeComponent() Method

InitializeComponent()

public void InitializeComponent();