PK
B@, , App.xaml
PK
B@7T 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 ColorPickerEditor
{
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
H@ ColorPickerEditor.csproj
Debug
AnyCPU
8.0.50727
2.0
{85C492F7-46B8-4E75-88B4-92BCBFBF7095}
{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}
Library
Properties
ColorPickerEditor
ColorPickerEditor
Silverlight
v4.0
$(TargetFrameworkVersion)
true
true
true
ColorPickerEditor.xap
Properties\AppManifest.xml
ColorPickerEditor.App
ColorPickerEditorTestPage.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
..\..\..\..\..\Users\pmladenov\Desktop\Binaries\2012_Q1\RadControls_for_Silverlight4_2012_1_0416_TRIAL_hotfix\Binaries\Silverlight\Telerik.Windows.Controls.dll
..\..\..\..\..\Users\pmladenov\Desktop\Binaries\2012_Q1\RadControls_for_Silverlight4_2012_1_0416_TRIAL_hotfix\Binaries\Silverlight\Telerik.Windows.Controls.Input.dll
..\..\..\..\..\Users\pmladenov\Desktop\Binaries\2012_Q1\RadControls_for_Silverlight4_2012_1_0416_TRIAL_hotfix\Binaries\Silverlight\Telerik.Windows.Controls.Navigation.dll
App.xaml
MainPage.xaml
Designer
MSBuild:Compile
Designer
MSBuild:Compile
PK
H@h.v v ColorPickerEditor.csproj.user
DynamicPage
True
False
False
True
True
PK
eQ@}( (
MainPage.xaml
1
1 0 0 1
1
0
0 1 1 0
1 1 0 0
0 0 1 1
0 1 0 0
0 0 1 0
1
0
1,0,0,1
0,1,1,0
0
PK
eQ@&Y 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;
using System.Windows.Controls.Primitives;
namespace ColorPickerEditor
{
public partial class MainPage : UserControl
{
public MainPage()
{
InitializeComponent();
}
private void RadButton_Click(object sender, RoutedEventArgs e)
{
RadColorEditor editor = new RadColorEditor() {VerticalAlignment = VerticalAlignment.Top};
editor.SelectedColorChanged += editor_SelectedColorChanged;
(((sender as RadButton).Parent as StackPanel).Parent as StackPanel).Children.Add(editor);
}
void editor_SelectedColorChanged(object sender, Telerik.Windows.Controls.ColorEditor.ColorChangeEventArgs e)
{
this.picker.SelectedColor = e.Color;
}
}
}
PK
B@ Properties/PK
B@ Properties/AppManifest.xml
PK
B@؆ 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("ColorPickerEditor")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("ColorPickerEditor")]
[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("e62294c7-eac8-41d2-a78a-96fb8b566d07")]
// 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
B@, , App.xamlPK
B@7T R App.xaml.csPK
H@ z ColorPickerEditor.csprojPK
H@h.v v ColorPickerEditor.csproj.userPK
eQ@}( (
}$ MainPage.xamlPK
eQ@&Y MainPage.xaml.csPK
B@ Properties/PK
B@ * Properties/AppManifest.xmlPK
B@؆ 1 Properties/AssemblyInfo.csPK B