# HG changeset patch # User Steven Hollidge # Date 1335098022 -3600 # Node ID 536498832a79f8a0b9314aec75938ddcb54e65db # Parent 810116cd6b8e8f358139f5811c7b968132406db8 Latest version before changing bindings to Listbox diff -r 810116cd6b8e -r 536498832a79 .hgignore --- a/.hgignore Sun Apr 22 09:01:20 2012 +0100 +++ b/.hgignore Sun Apr 22 13:33:42 2012 +0100 @@ -9,3 +9,4 @@ */packages/* *.stats */Bin/* +*/ClientBin/* diff -r 810116cd6b8e -r 536498832a79 Glimpse/Glimpse Services/GlimpseService.vb --- a/Glimpse/Glimpse Services/GlimpseService.vb Sun Apr 22 09:01:20 2012 +0100 +++ b/Glimpse/Glimpse Services/GlimpseService.vb Sun Apr 22 13:33:42 2012 +0100 @@ -86,9 +86,10 @@ Me.RootVisual = TryCast(objApp.RootVisual, FrameworkElement) Me.HostApplicationName = strHostApplicationName - Dim fw As New ChildWindow + Dim fw As New FloatableWindow() fw.Title = Me.HostApplicationName fw.Content = New GlimpseViewer + fw.ParentLayoutRoot = DirectCast(VisualTreeHelper.GetChild(RootVisual, 0), Panel) If Double.IsNaN(Me.RootVisual.Width) Then 'if the host control is autosized (consumes the browser window) then locate Glimpse in the top, left @@ -103,7 +104,7 @@ dblLeft = 0 End If - fw.Show() + fw.Show(dblLeft, 10) End If End Sub diff -r 810116cd6b8e -r 536498832a79 Glimpse/Glimpse.vbproj --- a/Glimpse/Glimpse.vbproj Sun Apr 22 09:01:20 2012 +0100 +++ b/Glimpse/Glimpse.vbproj Sun Apr 22 13:33:42 2012 +0100 @@ -158,6 +158,12 @@ true + + + {D47E6045-91BB-4CD0-942F-FF015F10F7F2} + FloatableWindow + + + + v3.5 + + + true + full + false + Bin\Debug + DEBUG;TRACE;SILVERLIGHT + true + true + prompt + 4 + false + BasicCorrectnessRules.ruleset + + + pdbonly + true + Bin\Release + TRACE;SILVERLIGHT + true + true + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Code + + + + + + + + + + + + + + + + MSBuild:Compile + Designer + + + + + + + + + + + + + \ No newline at end of file diff -r 810116cd6b8e -r 536498832a79 SilverlightGlimpse/SilverFlow.Controls/Themes/generic.xaml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightGlimpse/SilverFlow.Controls/Themes/generic.xaml Sun Apr 22 13:33:42 2012 +0100 @@ -0,0 +1,787 @@ + + + + #FF9E9E9E + #FFd1d9e1 + White + White + #FF899199 + #FF0667D4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 810116cd6b8e -r 536498832a79 SilverlightGlimpse/SilverlightGlimpse.Test/App.xaml.cs --- a/SilverlightGlimpse/SilverlightGlimpse.Test/App.xaml.cs Sun Apr 22 09:01:20 2012 +0100 +++ b/SilverlightGlimpse/SilverlightGlimpse.Test/App.xaml.cs Sun Apr 22 13:33:42 2012 +0100 @@ -1,39 +1,28 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Net; using System.Windows; -using System.Windows.Controls; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Shapes; using SilverlightGlimpse.Services; //using Glimpse; +using System.Reflection; namespace SilverlightGlimpse.Test { public partial class App : Application { - public App() { - this.Startup += this.Application_Startup; - this.Exit += this.Application_Exit; - this.UnhandledException += this.Application_UnhandledException; + Startup += Application_Startup; + Exit += Application_Exit; + UnhandledException += Application_UnhandledException; InitializeComponent(); } private void Application_Startup(object sender, StartupEventArgs e) { - string appName = "SilverlightGlimpse"; - try { - this.RootVisual = new MainPage(); - GlimpseService.CreateInstance.Load(this, appName); + RootVisual = new MainPage(); + GlimpseService.CreateInstance.Load(this, Assembly.GetCallingAssembly().FullName); } catch (Exception ex) { @@ -74,6 +63,7 @@ } catch (Exception) { + //TODO: log here } } } diff -r 810116cd6b8e -r 536498832a79 SilverlightGlimpse/SilverlightGlimpse.Test/BuggyControl.xaml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightGlimpse/SilverlightGlimpse.Test/BuggyControl.xaml Sun Apr 22 13:33:42 2012 +0100 @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff -r 810116cd6b8e -r 536498832a79 SilverlightGlimpse/SilverlightGlimpse.Test/BuggyControl.xaml.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SilverlightGlimpse/SilverlightGlimpse.Test/BuggyControl.xaml.cs Sun Apr 22 13:33:42 2012 +0100 @@ -0,0 +1,29 @@ +using System.Collections.Generic; + +namespace SilverlightGlimpse.Test +{ + public partial class BuggyControl + { + public BuggyControl() + { + InitializeComponent(); + + var list = new List(5) + { + new Person { Id = 1 , Name = "Steve"}, + new Person { Id = 2 , Name = "Dave"}, + new Person { Id = 3 , Name = "Bob"}, + new Person { Id = 4 , Name = "Rich"}, + new Person { Id = 5 , Name = "Clare"} + }; + + listbox1.ItemsSource = list; + } + } + + public class Person + { + public int Id { get; set; } + public string Name { get; set; } + } +} diff -r 810116cd6b8e -r 536498832a79 SilverlightGlimpse/SilverlightGlimpse.Test/MainPage.xaml --- a/SilverlightGlimpse/SilverlightGlimpse.Test/MainPage.xaml Sun Apr 22 09:01:20 2012 +0100 +++ b/SilverlightGlimpse/SilverlightGlimpse.Test/MainPage.xaml Sun Apr 22 13:33:42 2012 +0100 @@ -2,6 +2,7 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:local="clr-namespace:SilverlightGlimpse.Test" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:DesignHeight="300" d:DesignWidth="400" @@ -9,22 +10,10 @@ - + -