# HG changeset patch # User Steven Hollidge # Date 1335209395 -3600 # Node ID a79e235177f5e3d136ded52d65034d6138a9167d # Parent d06c852e01670fde918b75ac2226ed73fe5761cf Working version diff -r d06c852e0167 -r a79e235177f5 SilverlightGlimpse/SilverlightGlimpse/Controls/FloatableWindow/FloatableWindow.cs --- a/SilverlightGlimpse/SilverlightGlimpse/Controls/FloatableWindow/FloatableWindow.cs Mon Apr 23 19:15:52 2012 +0100 +++ b/SilverlightGlimpse/SilverlightGlimpse/Controls/FloatableWindow/FloatableWindow.cs Mon Apr 23 20:29:55 2012 +0100 @@ -874,7 +874,7 @@ this._isMouseCaptured = true; this._clickPoint = e.GetPosition(sender as UIElement); #if DEBUG - this.Title = string.Format("X:{0},Y:{1}", this._clickPoint.X.ToString(), this._clickPoint.Y.ToString()); + //this.Title = string.Format("X:{0},Y:{1}", this._clickPoint.X.ToString(), this._clickPoint.Y.ToString()); #endif } } diff -r d06c852e0167 -r a79e235177f5 SilverlightGlimpse/SilverlightGlimpse/Services/Glimpse.cs --- a/SilverlightGlimpse/SilverlightGlimpse/Services/Glimpse.cs Mon Apr 23 19:15:52 2012 +0100 +++ b/SilverlightGlimpse/SilverlightGlimpse/Services/Glimpse.cs Mon Apr 23 20:29:55 2012 +0100 @@ -64,8 +64,10 @@ #endregion - #region UI Creation and Loading + #region Methods + // Used when application fails to load a rootpage due to an exception. + // Silverlight Glimpse becomes the new rootpage. public void DisplayLoadFailure(Application app, Exception ex, string title) { var source = ex.StackTrace.Substring(0, ex.StackTrace.IndexOf(Environment.NewLine, StringComparison.Ordinal)); @@ -76,6 +78,8 @@ Debug.WriteLine("{0} had exception. {1}", Title, ex); } + + // Normal loading of Silverlight Glimpse. public void Load(Application app, string title, TimeSpan bindingsRefreshRate = default(TimeSpan)) { App = app; @@ -118,6 +122,14 @@ _refreshBindingCountTimer.Start(); } + public void Clear() + { + BindingErrors.Clear(); + Log.Clear(); + ValidationErrors.Clear(); + Exceptions.Clear(); + } + #endregion #region Events handlers @@ -152,8 +164,8 @@ ValidationErrors.Add( new ValidationWrapper( e.Action, - e.OriginalSource.GetType().ToString(), - controlName, + controlName, + e.OriginalSource.GetType().Name, e.Error.ErrorContent.ToString())); } diff -r d06c852e0167 -r a79e235177f5 SilverlightGlimpse/SilverlightGlimpse/Views/BindingsViewer.xaml --- a/SilverlightGlimpse/SilverlightGlimpse/Views/BindingsViewer.xaml Mon Apr 23 19:15:52 2012 +0100 +++ b/SilverlightGlimpse/SilverlightGlimpse/Views/BindingsViewer.xaml Mon Apr 23 20:29:55 2012 +0100 @@ -11,26 +11,24 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + diff -r d06c852e0167 -r a79e235177f5 SilverlightGlimpse/SilverlightGlimpse/Views/GlimpseViewer.xaml --- a/SilverlightGlimpse/SilverlightGlimpse/Views/GlimpseViewer.xaml Mon Apr 23 19:15:52 2012 +0100 +++ b/SilverlightGlimpse/SilverlightGlimpse/Views/GlimpseViewer.xaml Mon Apr 23 20:29:55 2012 +0100 @@ -34,15 +34,15 @@ - + - - + + - +