PK
`%@(D! ! App.xaml
PK
`%@\ \ 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 Upload
{
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
!`@l
MainPage.xaml
PK
!`@), 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.Controls;
namespace Upload
{
public partial class MainPage : UserControl
{
public MainPage()
{
InitializeComponent();
}
private void RadUpload1_FileUploaded(object sender, Telerik.Windows.Controls.FileUploadedEventArgs e)
{
}
private void RadUpload1_FileUploadFailed(object sender, Telerik.Windows.Controls.FileUploadFailedEventArgs e)
{
}
private void RadUpload1_FileUploadStarting(object sender, Telerik.Windows.Controls.FileUploadStartingEventArgs e)
{
}
private void RadUploadDropPanel1_DragEnter(object sender, DragEventArgs e)
{
}
private void RadUploadDropPanel1_DragLeave(object sender, DragEventArgs e)
{
}
private void RadUploadDropPanel1_Drop(object sender, DragEventArgs e)
{
var a =e.Data.GetData("FileDrop") as IEnumerable;
string name = a.First().Name;
this.treeview.Items.Add(new RadTreeViewItem(){ Header = name});
}
}
}
PK
`%@ Properties/PK
`%@ Properties/AppManifest.xml
PK
`%@Yy y 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("Upload")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("Upload")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2012")]
[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("e1a41c88-5462-49a4-8e35-80ec8c6bfa39")]
// 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
J`@(]
Upload.csproj
Debug
AnyCPU
8.0.50727
2.0
{CE94AFCF-7D46-422C-8D95-96D2729BE770}
{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}
Library
Properties
Upload
Upload
Silverlight
v5.0
$(TargetFrameworkVersion)
true
true
true
Upload.xap
Properties\AppManifest.xml
Upload.App
UploadTestPage.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
False
..\..\..\..\..\Users\pmladenov\Desktop\Binaries\2012_Q2\RadControls_for_Silverlight5_2012_2_0607_Trial_hotfix\Binaries\Silverlight\Telerik.Windows.Controls.dll
False
..\..\..\..\..\Users\pmladenov\Desktop\Binaries\2012_Q2\RadControls_for_Silverlight5_2012_2_0607_Trial_hotfix\Binaries\Silverlight\Telerik.Windows.Controls.Input.dll
..\..\..\..\..\Users\pmladenov\Desktop\Binaries\2012_Q2\RadControls_for_Silverlight5_2012_2_0607_Trial_hotfix\Binaries\Silverlight\Telerik.Windows.Controls.Navigation.dll
..\..\..\..\..\Users\pmladenov\Desktop\Binaries\2012_Q2\RadControls_for_Silverlight5_2012_2_0607_Trial_hotfix\Binaries\Silverlight\Telerik.Windows.Data.dll
App.xaml
MainPage.xaml
Designer
MSBuild:Compile
Designer
MSBuild:Compile
PK
J`@J Upload.csproj.user
ShowAllFiles
DynamicPage
True
False
False
True
True
PK
`@B@l l
Upload.sln
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Upload", "Upload.csproj", "{CE94AFCF-7D46-422C-8D95-96D2729BE770}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Upload.Web", "..\Upload.Web\Upload.Web.csproj", "{C9692F50-F290-4857-80B8-8F4D1AB25D5F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{CE94AFCF-7D46-422C-8D95-96D2729BE770}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CE94AFCF-7D46-422C-8D95-96D2729BE770}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CE94AFCF-7D46-422C-8D95-96D2729BE770}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CE94AFCF-7D46-422C-8D95-96D2729BE770}.Release|Any CPU.Build.0 = Release|Any CPU
{C9692F50-F290-4857-80B8-8F4D1AB25D5F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C9692F50-F290-4857-80B8-8F4D1AB25D5F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C9692F50-F290-4857-80B8-8F4D1AB25D5F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C9692F50-F290-4857-80B8-8F4D1AB25D5F}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
PK
`%@(D! ! App.xamlPK
`%@\ \ G App.xaml.csPK
!`@l
MainPage.xamlPK
!`@), MainPage.xaml.csPK
`%@ Properties/PK
`%@
Properties/AppManifest.xmlPK
`%@Yy y Properties/AssemblyInfo.csPK
J`@(]
Upload.csprojPK
J`@J 7 Upload.csproj.userPK
`@B@l l
<