diff --git a/CaliburnMicro.pptx b/CaliburnMicro.pptx index ebfdf0c..97c85f8 100644 Binary files a/CaliburnMicro.pptx and b/CaliburnMicro.pptx differ diff --git a/CoroutineNote.txt b/CoroutineNote.txt new file mode 100644 index 0000000..fe9d666 --- /dev/null +++ b/CoroutineNote.txt @@ -0,0 +1,22 @@ +public void DoStuff() +{ + .... + + if (someQuestion) + { + return; + } + + if (someOtherQuestion) + { + return; + } + + Action whenCompleted = (result) => + { + (blah, blah, ...) + }; + + Async(doXyz(), whenCompleted ); + +} \ No newline at end of file diff --git a/code/Caliburn.Micro/src/License.txt b/code/Caliburn.Micro/License.txt similarity index 100% rename from code/Caliburn.Micro/src/License.txt rename to code/Caliburn.Micro/License.txt diff --git a/code/Caliburn.Micro/Readme.txt b/code/Caliburn.Micro/Readme.txt index 9fea068..63bc613 100644 --- a/code/Caliburn.Micro/Readme.txt +++ b/code/Caliburn.Micro/Readme.txt @@ -1,6 +1,6 @@ -The Caliburn.Micro source code is from November 17, 2010. +The Caliburn.Micro source code is from June 1, 2011. -The changeset is: b41ec4270d71 +The changeset is: 5764a107cea0 and is sssociated with Release: Caliburn.Micro v1.1 RTW. -The url is: http://caliburnmicro.codeplex.com/SourceControl/changeset/changes/b41ec4270d71 +The url is: http://caliburnmicro.codeplex.com/SourceControl/changeset/changes/5764a107cea0 diff --git a/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction.sln b/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction.sln new file mode 100644 index 0000000..639ff22 --- /dev/null +++ b/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Caliburn.Micro.BubblingAction", "Caliburn.Micro.BubblingAction\Caliburn.Micro.BubblingAction.csproj", "{3777F0C7-CD1D-4964-AF3F-FFCBF61AA9B1}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3777F0C7-CD1D-4964-AF3F-FFCBF61AA9B1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3777F0C7-CD1D-4964-AF3F-FFCBF61AA9B1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3777F0C7-CD1D-4964-AF3F-FFCBF61AA9B1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3777F0C7-CD1D-4964-AF3F-FFCBF61AA9B1}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/App.xaml b/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/App.xaml new file mode 100644 index 0000000..0fdcca5 --- /dev/null +++ b/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/App.xaml @@ -0,0 +1,8 @@ + + + + + \ No newline at end of file diff --git a/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/App.xaml.cs b/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/App.xaml.cs new file mode 100644 index 0000000..68d938d --- /dev/null +++ b/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/App.xaml.cs @@ -0,0 +1,12 @@ +namespace Caliburn.Micro.BubblingAction +{ + using System.Windows; + + public partial class App : Application + { + public App() + { + InitializeComponent(); + } + } +} \ No newline at end of file diff --git a/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction.csproj b/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction.csproj new file mode 100644 index 0000000..c0e22d2 --- /dev/null +++ b/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction.csproj @@ -0,0 +1,117 @@ + + + + Debug + AnyCPU + 8.0.50727 + 2.0 + {3777F0C7-CD1D-4964-AF3F-FFCBF61AA9B1} + {A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} + Library + Properties + Caliburn.Micro.BubblingAction + Caliburn.Micro.BubblingAction + Silverlight + v4.0 + $(TargetFrameworkVersion) + true + + + true + true + Caliburn.Micro.HelloWorld.xap + Properties\AppManifest.xml + Caliburn.Micro.BubblingAction.App + Caliburn.Micro.HelloWorldTestPage.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 + + + + ..\..\..\bin\Silverlight\Debug\Caliburn.Micro.dll + + + + + + + + + + + + + + + App.xaml + + + + + + + + + + Designer + MSBuild:Compile + + + + + + + + Designer + MSBuild:Compile + + + + + + + + + + + + \ No newline at end of file diff --git a/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/IShell.cs b/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/IShell.cs new file mode 100644 index 0000000..4d810d0 --- /dev/null +++ b/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/IShell.cs @@ -0,0 +1,7 @@ +namespace Caliburn.Micro.BubblingAction +{ + public interface IShell + { + + } +} \ No newline at end of file diff --git a/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/MefBootstrapper.cs b/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/MefBootstrapper.cs new file mode 100644 index 0000000..0c392c0 --- /dev/null +++ b/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/MefBootstrapper.cs @@ -0,0 +1,52 @@ +namespace Caliburn.Micro.BubblingAction +{ + using System; + using System.Collections.Generic; + using System.ComponentModel.Composition; + using System.ComponentModel.Composition.Hosting; + using System.ComponentModel.Composition.Primitives; + using System.Linq; + + public class MefBootstrapper : Bootstrapper + { + private CompositionContainer container; + + protected override void Configure() + { + container = CompositionHost.Initialize( + new AggregateCatalog( + AssemblySource.Instance.Select(x => new AssemblyCatalog(x)).OfType() + ) + ); + + var batch = new CompositionBatch(); + + batch.AddExportedValue(new WindowManager()); + batch.AddExportedValue(new EventAggregator()); + batch.AddExportedValue(container); + + container.Compose(batch); + } + + protected override object GetInstance(Type serviceType, string key) + { + string contract = string.IsNullOrEmpty(key) ? AttributedModelServices.GetContractName(serviceType) : key; + var exports = container.GetExportedValues(contract); + + if (exports.Count() > 0) + return exports.First(); + + throw new Exception(string.Format("Could not locate any instances of contract {0}.", contract)); + } + + protected override IEnumerable GetAllInstances(Type serviceType) + { + return container.GetExportedValues(AttributedModelServices.GetContractName(serviceType)); + } + + protected override void BuildUp(object instance) + { + container.SatisfyImportsOnce(instance); + } + } +} \ No newline at end of file diff --git a/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/Model.cs b/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/Model.cs new file mode 100644 index 0000000..6bf49d7 --- /dev/null +++ b/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/Model.cs @@ -0,0 +1,9 @@ +namespace Caliburn.Micro.BubblingAction +{ + using System; + + public class Model + { + public Guid Id { get; set; } + } +} \ No newline at end of file diff --git a/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/Properties/AppManifest.xml b/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/Properties/AppManifest.xml new file mode 100644 index 0000000..6712a11 --- /dev/null +++ b/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/Properties/AppManifest.xml @@ -0,0 +1,6 @@ + + + + diff --git a/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/Properties/AssemblyInfo.cs b/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..965b80f --- /dev/null +++ b/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/Properties/AssemblyInfo.cs @@ -0,0 +1,38 @@ +using System.Reflection; +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("Caliburn.Micro.BubblingAction")] +[assembly:AssemblyDescription("")] +[assembly:AssemblyConfiguration("")] +[assembly:AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("Caliburn.Micro.BubblingAction")] +[assembly:AssemblyCopyright("Copyright © Microsoft 2010")] +[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("12bf83be-62fe-43d7-8d46-b4e7dd69b06e")] + +// 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")] \ No newline at end of file diff --git a/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/ShellView.xaml b/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/ShellView.xaml new file mode 100644 index 0000000..d2fb264 --- /dev/null +++ b/code/Caliburn.Micro/samples/Caliburn.Micro.BubblingAction/Caliburn.Micro.BubblingAction/ShellView.xaml @@ -0,0 +1,20 @@ + + + + + + +