/// <summary> /// Displays the panel by sliding it to the right /// </summary> public new void Show() { if (busy) { return; } InitialisePosition(); //SetLvLogItemsSource(); DebugPane.UpdateFilter(); base.Show(); DebugPane.ScrollToBottom(); AnimateWindowShow(); }
/// <summary> /// This class attaches a debug panel to the right side of the owner application which enables the option to have a simultaneous display of the LogWriter log /// </summary> /// <param name="owner"></param> /// <param name="log"></param> /// <param name="width"></param> public DebugPanel(Window owner, LogWriter log, double width = Double.NaN) { if (owner != null) { this.Owner = owner; } InitializeComponent(); DebugPane.Initialise(log); this.DataContext = this; this.AnimationTime = new TimeSpan(0, 0, 0, 0, 250); this.DesiredWidth = width == Double.NaN ? 500 : width; }
/// <summary> /// Disposes the log eventhandler /// </summary> public void Dispose() { DebugPane.Dispose(); }