Skip to content

Commit

Permalink
Merge branch 'master' into dev/4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Nigel Sampson committed Oct 25, 2017
2 parents 66eb0f2 + 526a6c8 commit 75ed8e6
Show file tree
Hide file tree
Showing 30 changed files with 124 additions and 122 deletions.
2 changes: 1 addition & 1 deletion nuget/Caliburn.Micro.Core.nuspec
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Caliburn.Micro.Core</id>
<version>3.1.0</version>
<version>3.2.0</version>
<authors>Rob Eisenberg, Marco Amendola, Chin Bae, Ryan Cromwell, Nigel Sampson, Thomas Ibel, Matt Hidinger</authors>
<description>A small, yet powerful framework designed for Xaml platforms, Caliburn.Micro implements a variety of UI patterns for solving real-world problems. Patterns that are highlighted include MVVM (Presentation Model), MVP and MVC.</description>
<language>en-US</language>
Expand Down
4 changes: 2 additions & 2 deletions nuget/Caliburn.Micro.Start.nuspec
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Caliburn.Micro.Start</id>
<version>3.1.0</version>
<version>3.2.0</version>
<authors>Rob Eisenberg, Marco Amendola, Chin Bae, Ryan Cromwell, Nigel Sampson, Thomas Ibel, Matt Hidinger</authors>
<description>A startup sample for Caliburn.Micro.</description>
<language>en-US</language>
Expand All @@ -20,7 +20,7 @@

<dependencies>
<group>
<dependency id="Caliburn.Micro" version="[3.1.0]" />
<dependency id="Caliburn.Micro" version="[3.2.0]" />
</group>
</dependencies>
</metadata>
Expand Down
18 changes: 9 additions & 9 deletions nuget/Caliburn.Micro.Xamarin.Forms.nuspec
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Caliburn.Micro.Xamarin.Forms</id>
<version>3.1.0</version>
<version>3.2.0</version>
<authors>Rob Eisenberg, Marco Amendola, Chin Bae, Ryan Cromwell, Nigel Sampson, Thomas Ibel, Matt Hidinger</authors>
<description>A small, yet powerful framework designed for Xaml platforms, Caliburn.Micro implements a variety of UI patterns for solving real-world problems. Patterns that are highlighted include MVVM (Presentation Model), MVP and MVC.</description>
<language>en-US</language>
Expand All @@ -16,35 +16,35 @@

<dependencies>
<group>
<dependency id="Caliburn.Micro.Core" version="[3.1.0]" />
<dependency id="Caliburn.Micro.Core" version="[3.2.0]" />
<dependency id="Xamarin.Forms" version="2.0.1.6505" />
</group>
<group targetFramework="net45">
<dependency id="Caliburn.Micro" version="[3.1.0]" />
<dependency id="Caliburn.Micro" version="[3.2.0]" />
<dependency id="Xamarin.Forms" version="2.0.1.6505" />
</group>
<group targetFramework="win8">
<dependency id="Caliburn.Micro" version="[3.1.0]" />
<dependency id="Caliburn.Micro" version="[3.2.0]" />
<dependency id="Xamarin.Forms" version="2.0.1.6505" />
</group>
<group targetFramework="wp8">
<dependency id="Caliburn.Micro" version="[3.1.0]" />
<dependency id="Caliburn.Micro" version="[3.2.0]" />
<dependency id="Xamarin.Forms" version="2.0.1.6505" />
</group>
<group targetFramework="wpa81">
<dependency id="Caliburn.Micro" version="[3.1.0]" />
<dependency id="Caliburn.Micro" version="[3.2.0]" />
<dependency id="Xamarin.Forms" version="2.0.1.6505" />
</group>
<group targetFramework="MonoAndroid10">
<dependency id="Caliburn.Micro" version="[3.1.0]" />
<dependency id="Caliburn.Micro" version="[3.2.0]" />
<dependency id="Xamarin.Forms" version="2.0.1.6505" />
</group>
<group targetFramework="Xamarin.iOS10">
<dependency id="Caliburn.Micro" version="[3.1.0]" />
<dependency id="Caliburn.Micro" version="[3.2.0]" />
<dependency id="Xamarin.Forms" version="2.0.1.6505" />
</group>
<group targetFramework="MonoTouch10">
<dependency id="Caliburn.Micro" version="[3.1.0]" />
<dependency id="Caliburn.Micro" version="[3.2.0]" />
<dependency id="Xamarin.Forms" version="2.0.1.6505" />
</group>
</dependencies>
Expand Down
6 changes: 3 additions & 3 deletions nuget/Caliburn.Micro.nuspec
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Caliburn.Micro</id>
<version>3.1.0</version>
<version>3.2.0</version>
<authors>Rob Eisenberg, Marco Amendola, Chin Bae, Ryan Cromwell, Nigel Sampson, Thomas Ibel, Matt Hidinger</authors>
<description>A small, yet powerful framework designed for Xaml platforms, Caliburn.Micro implements a variety of UI patterns for solving real-world problems. Patterns that are highlighted include MVVM (Presentation Model), MVP and MVC.</description>
<language>en-US</language>
Expand All @@ -20,10 +20,10 @@

<dependencies>
<group>
<dependency id="Caliburn.Micro.Core" version="[3.1.0]" />
<dependency id="Caliburn.Micro.Core" version="[3.2.0]" />
</group>
<group targetFramework="uap10.0">
<dependency id="Caliburn.Micro.Core" version="[3.1.0]" />
<dependency id="Caliburn.Micro.Core" version="[3.2.0]" />
<dependency id="Microsoft.Xaml.Behaviors.Uwp.Managed" version="1.1.0" />
</group>
</dependencies>
Expand Down
Expand Up @@ -34,6 +34,5 @@
<Compile Include="$(MSBuildThisFileDirectory)ViewModels\NavigationSourceViewModel.cs" />
<Compile Include="$(MSBuildThisFileDirectory)ViewModels\NavigationTargetViewModel.cs" />
<Compile Include="$(MSBuildThisFileDirectory)ViewModels\TabViewModel.cs" />
<Compile Include="$(MSBuildThisFileDirectory)ViewModels\ViewModelExtensions.cs" />
</ItemGroup>
</Project>
Expand Up @@ -28,7 +28,7 @@ public Task SayGoodbyeAsync(string name)
public string Output
{
get { return output; }
set { this.Set(ref output, value); }
set { Set(ref output, value); }
}
}
}
Expand Up @@ -24,7 +24,7 @@ public BindingsViewModel()
public ActivityBaseViewModel SelectedActivity
{
get { return selectedActivity; }
set { this.Set(ref selectedActivity, value); }
set { Set(ref selectedActivity, value); }
}
}
}
Expand Up @@ -17,7 +17,7 @@ public EventSourceViewModel(IEventAggregator eventAggregator)
public string Text
{
get { return text; }
set { this.Set(ref text, value); }
set { Set(ref text, value); }
}

public void Publish()
Expand Down
Expand Up @@ -12,7 +12,7 @@ public class ExecuteViewModel : Screen
public bool Safe
{
get { return safe; }
set { this.Set(ref safe, value); }
set { Set(ref safe, value); }
}

public void StartBackgroundWork()
Expand Down
Expand Up @@ -22,7 +22,7 @@ public MenuViewModel(INavigationService navigationService)
new FeatureViewModel("Execute", "Using Execute to execute code on the UI thread.", typeof(ExecuteViewModel)),
new FeatureViewModel("Event Aggregator", "Send events between uncoupled view models.", typeof(EventAggregationViewModel)),
#if !XAMARINFORMS
new FeatureViewModel("Design Time", "Conventions in the xaml desginer and design mode detection.", typeof(DesignTimeViewModel)),
new FeatureViewModel("Design Time", "Conventions in the xaml designer and design mode detection.", typeof(DesignTimeViewModel)),
#endif
new FeatureViewModel("Conductors", "Composing view models together with lifecycle events", typeof(ConductorViewModel)),
new FeatureViewModel("Bubbling Actions", "How to bubble actions from a child view model to a parent", typeof(BubblingViewModel)),
Expand Down
Expand Up @@ -21,13 +21,13 @@ public NavigationSourceViewModel(INavigationService navigationService)
public string Text
{
get { return text; }
set { this.Set(ref text, value); }
set { Set(ref text, value); }
}

public bool IsEnabled
{
get { return isEnabled; }
set { this.Set(ref isEnabled, value); }
set { Set(ref isEnabled, value); }
}

public void Navigate()
Expand Down
Expand Up @@ -11,13 +11,13 @@ public class NavigationTargetViewModel : Screen
public string Text
{
get { return text; }
set { this.Set(ref text, value); }
set { Set(ref text, value); }
}

public bool IsEnabled
{
get { return isEnabled; }
set { this.Set(ref isEnabled, value); }
set { Set(ref isEnabled, value); }
}
}
}
Expand Up @@ -22,7 +22,7 @@ protected override void OnActivate()

protected override void OnDeactivate(bool close)
{
Messages.Add($"Deactivted, close: {close}");
Messages.Add($"Deactivated, close: {close}");
}

public BindableCollection<string> Messages { get; }
Expand Down

This file was deleted.

11 changes: 4 additions & 7 deletions samples/setup/Setup.Android/readme.md
Expand Up @@ -2,10 +2,7 @@

1. File > New Project > `New Blank App (Android)`.
2. Add nuget package `Caliburn.Micro`.
3. Delete `MainActivity`.
4. Create `ViewModels` folder.
5. Create new class `MainViewModel`.
6. Add new empty storyboard `Views.storyboard` to the root folder.
7. Add a new view controller to the storyboard.
8. Set property `Class` on the view controller to `MainViewController`.
9. In Project properties > iOS Application > set Main Interface to `Views.storyboard`.
3. Create `ViewModels` and `Activities` folders.
4. Create new class `MainViewModel` in the `ViewModels` folder.
5. Move the Activity `MainActivity` to the `Activities` folder.
6. Add a new class `Application` to the root folder.
10 changes: 6 additions & 4 deletions samples/setup/Setup.iOS/readme.md
Expand Up @@ -2,7 +2,9 @@

1. File > New Project > `New Blank App (iOS)`.
2. Add nuget package `Caliburn.Micro`.
3. Create `ViewModels` and `Activities` folders.
4. Create new class `MainViewModel` in the `ViewModels` folder.
5. Move the Activity `MainActivity` to the `Activities` folder.
6. Add a new class `Application` to the root folder.
3. Create `ViewModels` folder.
4. Create new class `MainViewModel`.
5. Add new empty storyboard `Views.storyboard` to the root folder.
6. Add a new view controller to the storyboard.
7. Set property `Class` on the view controller to `MainViewController`.
8. In Project properties > iOS Application > set Main Interface to `Views.storyboard`.
2 changes: 1 addition & 1 deletion src/Caliburn.Micro.Core/Conductor.cs
Expand Up @@ -60,7 +60,7 @@ public partial class Conductor<T> : ConductorBaseWithActiveItem<T> where T: clas
/// <summary>
/// Called when deactivating.
/// </summary>
/// <param name="close">Inidicates whether this instance will be closed.</param>
/// <param name="close">Indicates whether this instance will be closed.</param>
protected override void OnDeactivate(bool close) {
ScreenExtensions.TryDeactivate(ActiveItem, close);
}
Expand Down
Expand Up @@ -67,7 +67,7 @@ public AllActive(bool openPublicItems)
/// <summary>
/// Called when deactivating.
/// </summary>
/// <param name="close">Inidicates whether this instance will be closed.</param>
/// <param name="close">Indicates whether this instance will be closed.</param>
protected override void OnDeactivate(bool close) {
items.OfType<IDeactivate>().Apply(x => x.Deactivate(close));
if (close) {
Expand Down
Expand Up @@ -170,7 +170,7 @@ public class OneActive : ConductorBaseWithActiveItem<T> {
/// <summary>
/// Called when deactivating.
/// </summary>
/// <param name="close">Inidicates whether this instance will be closed.</param>
/// <param name="close">Indicates whether this instance will be closed.</param>
protected override void OnDeactivate(bool close) {
if (close) {
items.OfType<IDeactivate>().Apply(x => x.Deactivate(true));
Expand Down
16 changes: 8 additions & 8 deletions src/Caliburn.Micro.Core/DefaultPlatformProvider.cs
Expand Up @@ -10,15 +10,15 @@ public class DefaultPlatformProvider : IPlatformProvider {
/// <summary>
/// Indicates whether or not the framework is in design-time mode.
/// </summary>
public bool InDesignMode {
public virtual bool InDesignMode {
get { return true; }
}

/// <summary>
/// Executes the action on the UI thread asynchronously.
/// </summary>
/// <param name="action">The action to execute.</param>
public void BeginOnUIThread(Action action) {
public virtual void BeginOnUIThread(Action action) {
action();
}

Expand All @@ -27,15 +27,15 @@ public class DefaultPlatformProvider : IPlatformProvider {
/// </summary>
/// <param name="action">The action to execute.</param>
/// <returns></returns>
public Task OnUIThreadAsync(Action action) {
public virtual Task OnUIThreadAsync(Action action) {
return Task.Factory.StartNew(action);
}

/// <summary>
/// Executes the action on the UI thread.
/// </summary>
/// <param name="action">The action to execute.</param>
public void OnUIThread(Action action) {
public virtual void OnUIThread(Action action) {
action();
}

Expand All @@ -52,7 +52,7 @@ public class DefaultPlatformProvider : IPlatformProvider {
/// The WindowManager marks that element as a framework-created element so that it can determine what it created vs. what was intended by the developer.
/// Calling GetFirstNonGeneratedView allows the framework to discover what the original element was.
/// </remarks>
public object GetFirstNonGeneratedView(object view) {
public virtual object GetFirstNonGeneratedView(object view) {
return view;
}

Expand All @@ -62,7 +62,7 @@ public class DefaultPlatformProvider : IPlatformProvider {
/// <param name="view">The view.</param>
/// <param name="handler">The handler.</param>
/// <returns>true if the handler was executed immediately; false otherwise</returns>
public void ExecuteOnFirstLoad(object view, Action<object> handler) {
public virtual void ExecuteOnFirstLoad(object view, Action<object> handler) {
handler(view);
}

Expand All @@ -71,7 +71,7 @@ public class DefaultPlatformProvider : IPlatformProvider {
/// </summary>
/// <param name="view">The view.</param>
/// <param name="handler">The handler.</param>
public void ExecuteOnLayoutUpdated(object view, Action<object> handler) {
public virtual void ExecuteOnLayoutUpdated(object view, Action<object> handler) {
handler(view);
}

Expand All @@ -84,7 +84,7 @@ public class DefaultPlatformProvider : IPlatformProvider {
/// <returns>
/// An <see cref="Action" /> to close the view model.
/// </returns>
public Action GetViewCloseAction(object viewModel, ICollection<object> views, bool? dialogResult) {
public virtual Action GetViewCloseAction(object viewModel, ICollection<object> views, bool? dialogResult) {
return () => { };
}
}
Expand Down

0 comments on commit 75ed8e6

Please sign in to comment.