PK
xIUBn2 2 App.xaml
PK
yIUB App.xaml.csusing 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;
namespace SilverlightApplication1
{
public partial class App : Application
{
public App()
{
this.Startup += this.Application_Startup;
this.Exit += this.Application_Exit;
this.UnhandledException += this.Application_UnhandledException;
InitializeComponent();
}
private void Application_Startup(object sender, StartupEventArgs e)
{
this.RootVisual = new MainPage();
}
private void Application_Exit(object sender, EventArgs e)
{
}
private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
{
// If the app is running outside of the debugger then report the exception using
// the browser's exception mechanism. On IE this will display it a yellow alert
// icon in the status bar and Firefox will display a script error.
if (!System.Diagnostics.Debugger.IsAttached)
{
// NOTE: This will allow the application to continue running after an exception has been thrown
// but not handled.
// For production applications this error handling should be replaced with something that will
// report the error to the website and stop the application.
e.Handled = true;
Deployment.Current.Dispatcher.BeginInvoke(delegate { ReportErrorToDOM(e); });
}
}
private void ReportErrorToDOM(ApplicationUnhandledExceptionEventArgs e)
{
try
{
string errorMsg = e.ExceptionObject.Message + e.ExceptionObject.StackTrace;
errorMsg = errorMsg.Replace('"', '\'').Replace("\r\n", @"\n");
System.Windows.Browser.HtmlPage.Window.Eval("throw new Error(\"Unhandled Error in Silverlight Application " + errorMsg + "\");");
}
catch (Exception)
{
}
}
}
}
PK
[dBv, , GraphSource.csusing System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Telerik.Windows.Controls.Diagrams.Extensions.ViewModels;
namespace SilverlightApplication1
{
public class GraphSource : SerializableGraphSourceBase
{
public override string GetNodeUniqueId(Node node)
{
return node.ToString();
}
}
}
PK
EdBϧ Link.csusing System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Telerik.Windows.Controls;
using Telerik.Windows.Controls.Diagrams.Extensions.ViewModels;
using Telerik.Windows.Diagrams.Core;
namespace SilverlightApplication1
{
public class Link : LinkViewModelBase
{
public Link ()
{
this.PropertyChanged += Link_PropertyChanged;
}
void Link_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{
if (e.PropertyName == "Target")
{
MessageBox.Show("Target Attached");
}
}
}
}
PK
DdBY
MainPage.xaml
PK
BdB+ + MainPage.xaml.csusing 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 Telerik.Windows.Diagrams.Core;
namespace SilverlightApplication1
{
public partial class MainPage : UserControl
{
GraphSource source ;
Link l;
public MainPage()
{
InitializeComponent();
source = new GraphSource();
Node a = new Node(){Position = new Point(50, 100), Content = "Shape A"};
Node b = new Node(){Position = new Point(250, 100), Content = "Shape B"};
source.AddNode(a);
source.AddNode(b);
this.diagram.GraphSource = source;
}
}
}
PK
YUB; Node.csusing System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Telerik.Windows.Controls.Diagrams.Extensions.ViewModels;
namespace SilverlightApplication1
{
public class Node : HierarchicalNodeViewModel
{
}
}
PK
xIUB Properties/PK
xIUB Properties/AppManifest.xml
PK
xIUBiT Properties/AssemblyInfo.csusing System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("SilverlightApplication1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("SilverlightApplication1")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2013")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("3aeb9486-687e-47e8-91cc-2f9cd771db1a")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
PK
@dBA.~ SilverlightApplication1.csproj
Debug
AnyCPU
8.0.50727
2.0
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}
{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}
Library
Properties
SilverlightApplication1
SilverlightApplication1
Silverlight
v5.0
$(TargetFrameworkVersion)
true
true
true
SilverlightApplication1.xap
Properties\AppManifest.xml
SilverlightApplication1.App
SilverlightApplication1TestPage.html
true
true
false
Properties\OutOfBrowserSettings.xml
false
true
v3.5
true
full
false
Bin\Debug
DEBUG;TRACE;SILVERLIGHT
true
true
prompt
4
pdbonly
true
Bin\Release
TRACE;SILVERLIGHT
true
true
prompt
4
$(TargetFrameworkDirectory)System.Core.dll
False
..\..\..\..\..\Work\Current\Binaries\Silverlight\Telerik.Windows.Controls.dll
False
..\..\..\..\..\Work\Current\Binaries\Silverlight\Telerik.Windows.Controls.Diagrams.dll
False
..\..\..\..\..\Work\Current\Binaries\Silverlight\Telerik.Windows.Controls.Diagrams.Extensions.dll
False
..\..\..\..\..\Work\Current\Binaries\Silverlight\Telerik.Windows.Controls.Input.dll
False
..\..\..\..\..\Work\Current\Binaries\Silverlight\Telerik.Windows.Controls.Navigation.dll
False
..\..\..\..\..\Work\Current\Binaries\Silverlight\Telerik.Windows.Diagrams.Core.dll
App.xaml
MainPage.xaml
Designer
MSBuild:Compile
Designer
MSBuild:Compile
PK
@dBh.v v # SilverlightApplication1.csproj.user
DynamicPage
True
False
False
True
True
PK
@dBT;Y
SilverlightApplication1.sln
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SilverlightApplication1", "SilverlightApplication1.csproj", "{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug.NoXaml|Any CPU = Debug.NoXaml|Any CPU
Debug|Any CPU = Debug|Any CPU
Debug1040.NoXaml|Any CPU = Debug1040.NoXaml|Any CPU
Debug1040|Any CPU = Debug1040|Any CPU
Release.NoXaml|Any CPU = Release.NoXaml|Any CPU
Release|Any CPU = Release|Any CPU
Release1040.NoXaml|Any CPU = Release1040.NoXaml|Any CPU
Release1040|Any CPU = Release1040|Any CPU
ReleaseNoCA|Any CPU = ReleaseNoCA|Any CPU
ReleaseTrial.NoXaml|Any CPU = ReleaseTrial.NoXaml|Any CPU
ReleaseTrial|Any CPU = ReleaseTrial|Any CPU
ReleaseTrial1040.NoXaml|Any CPU = ReleaseTrial1040.NoXaml|Any CPU
ReleaseTrial1040|Any CPU = ReleaseTrial1040|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.Debug.NoXaml|Any CPU.ActiveCfg = Debug|Any CPU
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.Debug.NoXaml|Any CPU.Build.0 = Debug|Any CPU
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.Debug1040.NoXaml|Any CPU.ActiveCfg = Debug|Any CPU
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.Debug1040.NoXaml|Any CPU.Build.0 = Debug|Any CPU
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.Debug1040|Any CPU.ActiveCfg = Debug|Any CPU
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.Debug1040|Any CPU.Build.0 = Debug|Any CPU
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.Release.NoXaml|Any CPU.ActiveCfg = Release|Any CPU
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.Release.NoXaml|Any CPU.Build.0 = Release|Any CPU
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.Release|Any CPU.Build.0 = Release|Any CPU
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.Release1040.NoXaml|Any CPU.ActiveCfg = Release|Any CPU
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.Release1040.NoXaml|Any CPU.Build.0 = Release|Any CPU
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.Release1040|Any CPU.ActiveCfg = Release|Any CPU
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.Release1040|Any CPU.Build.0 = Release|Any CPU
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.ReleaseNoCA|Any CPU.ActiveCfg = Release|Any CPU
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.ReleaseNoCA|Any CPU.Build.0 = Release|Any CPU
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.ReleaseTrial.NoXaml|Any CPU.ActiveCfg = Release|Any CPU
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.ReleaseTrial.NoXaml|Any CPU.Build.0 = Release|Any CPU
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.ReleaseTrial|Any CPU.ActiveCfg = Release|Any CPU
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.ReleaseTrial|Any CPU.Build.0 = Release|Any CPU
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.ReleaseTrial1040.NoXaml|Any CPU.ActiveCfg = Release|Any CPU
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.ReleaseTrial1040.NoXaml|Any CPU.Build.0 = Release|Any CPU
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.ReleaseTrial1040|Any CPU.ActiveCfg = Release|Any CPU
{3AEB9486-687E-47E8-91CC-2F9CD771DB1A}.ReleaseTrial1040|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
PK
xIUBn2 2 App.xamlPK
yIUB X App.xaml.csPK
[dBv, , GraphSource.csPK
EdBϧ Link.csPK
DdBY
MainPage.xamlPK
BdB+ + E MainPage.xaml.csPK
YUB; Node.csPK
xIUB Properties/PK
xIUB Properties/AppManifest.xmlPK
xIUBiT Properties/AssemblyInfo.csPK
@dBA.~ SilverlightApplication1.csprojPK
@dBh.v v # : SilverlightApplication1.csproj.userPK
@dBT;Y
D? SilverlightApplication1.slnPK
= MM