Skip to content

Commit

Permalink
Merge pull request #2612 from DGenix/forms-namespaces
Browse files Browse the repository at this point in the history
Update Forms namespaces to match traditional Xamarin
  • Loading branch information
martijn00 authored Feb 12, 2018
2 parents 0f5ab75 + 95287c0 commit acf2472
Show file tree
Hide file tree
Showing 78 changed files with 108 additions and 107 deletions.
4 changes: 2 additions & 2 deletions MvvmCross.Forms/Platform/Android/Core/MvxFormsAndroidSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
using Android.Content;
using MvvmCross.Binding;
using MvvmCross.Binding.Bindings.Target.Construction;
using MvvmCross.Forms.Views;
using MvvmCross.Localization;
using System.Collections.Generic;
using System.Reflection;
using MvvmCross.Forms.Core;
using MvvmCross.Forms.Platform.Android.Bindings;
using MvvmCross.Forms.Platform.Android.Views;
using MvvmCross.Platform.Android.Core;
using MvvmCross.Platform.Android.Presenters;
using MvvmCross.Plugins;
using MvvmCross.ViewModels;
using MvvmCross.Platform.Android;
using MvvmCross.Forms.Presenters;
using MvvmCross.Forms.Platform.Android.Presenters;

namespace MvvmCross.Forms.Platform.Android.Core
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
// See the LICENSE file in the project root for more information.

using MvvmCross.Droid.Support.V7.AppCompat;
using MvvmCross.Forms.Views;
using MvvmCross.Forms.Presenters;
using System;
using System.Collections.Generic;
using System.Reflection;
using MvvmCross.Forms.Core;
using MvvmCross.Platform.Android.Views;
using MvvmCross.ViewModels;
using MvvmCross.Forms.Platform.Android.Views;


namespace MvvmCross.Forms.Platform.Android.Views
namespace MvvmCross.Forms.Platform.Android.Presenters
{
public class MvxFormsAndroidViewPresenter
: MvxAppCompatViewPresenter, IMvxFormsViewPresenter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using MvvmCross.Platform.Android.Views.Base;
using Xamarin.Forms.Platform.Android;

namespace MvvmCross.Forms.Platform.Android.Views.EventSource
namespace MvvmCross.Forms.Platform.Android.Views.Base
{
public abstract class MvxEventSourceFormsAppCompatActivity
: FormsAppCompatActivity, IMvxEventSourceActivity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using MvvmCross.Platform.Android.Views.Base;
using Xamarin.Forms.Platform.Android;

namespace MvvmCross.Forms.Platform.Android.Views.EventSource
namespace MvvmCross.Forms.Platform.Android.Views.Base
{
public abstract class MvxEventSourceFormsApplicationActivity
: FormsApplicationActivity, IMvxEventSourceActivity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
using MvvmCross.Binding.BindingContext;
using MvvmCross.Droid.Support.V7.AppCompat;
using MvvmCross.Forms.Core;
using MvvmCross.Forms.Platform.Android.Views.EventSource;
using MvvmCross.Forms.Views;
using MvvmCross.Forms.Platform.Android.Views.Base;
using MvvmCross.Forms.Presenters;
using MvvmCross.Platform.Android.Binding.BindingContext;
using MvvmCross.Platform.Android.Binding.Views;
using MvvmCross.Platform.Android.Core;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
using Android.Views;
using MvvmCross.Binding.BindingContext;
using MvvmCross.Forms.Core;
using MvvmCross.Forms.Platform.Android.Views.EventSource;
using MvvmCross.Forms.Views;
using MvvmCross.Forms.Platform.Android.Views.Base;
using MvvmCross.Forms.Presenters;
using MvvmCross.Platform.Android.Binding.BindingContext;
using MvvmCross.Platform.Android.Binding.Views;
using MvvmCross.Platform.Android.Core;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System;
using MvvmCross.Core;
using MvvmCross.Forms.Views;
using MvvmCross.Forms.Presenters;
using MvvmCross.Platform.Mac.Core;
using Xamarin.Forms.Platform.MacOS;

Expand Down
4 changes: 2 additions & 2 deletions MvvmCross.Forms/Platform/Mac/Core/MvxFormsMacSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@

using MvvmCross.Binding;
using MvvmCross.Binding.Bindings.Target.Construction;
using MvvmCross.Forms.Views;
using MvvmCross.Localization;
using System.Collections.Generic;
using System.Reflection;
using AppKit;
using MvvmCross.Forms.Core;
using MvvmCross.Forms.Platform.Mac.Bindings;
using MvvmCross.Forms.Platform.Mac.Views;
using MvvmCross.Platform.Mac.Core;
using MvvmCross.Platform.Mac.Presenters;
using MvvmCross.Plugins;
using MvvmCross.ViewModels;
using MvvmCross.Forms.Platform.Mac.Presenters;
using MvvmCross.Forms.Presenters;

namespace MvvmCross.Forms.Platform.Mac.Core
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
using System;
using AppKit;
using MvvmCross.Forms.Core;
using MvvmCross.Forms.Views;
using MvvmCross.Forms.Presenters;
using MvvmCross.Logging;
using MvvmCross.Platform.Mac.Presenters;
using MvvmCross.ViewModels;

namespace MvvmCross.Forms.Platform.Mac.Views
namespace MvvmCross.Forms.Platform.Mac.Presenters
{
public class MvxFormsMacViewPresenter
: MvxMacViewPresenter
Expand Down
4 changes: 2 additions & 2 deletions MvvmCross.Forms/Platform/Uap/Core/MvxFormsWindowsSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

using MvvmCross.Binding;
using MvvmCross.Binding.Bindings.Target.Construction;
using MvvmCross.Forms.Views;
using MvvmCross.Forms.Presenters;
using System.Collections.Generic;
using System.Reflection;
using Windows.ApplicationModel.Activation;
using MvvmCross.Forms.Core;
using MvvmCross.Forms.Platform.Uap.Bindings;
using MvvmCross.Forms.Platform.Uap.Views;
using MvvmCross.Forms.Platform.Uap.Presenters;
using MvvmCross.Platform.Uap.Core;
using MvvmCross.Platform.Uap.Views;
using MvvmCross.Plugins;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
// The .NET Foundation licenses this file to you under the MS-PL license.
// See the LICENSE file in the project root for more information.

using MvvmCross.Forms.Views;
using MvvmCross.Forms.Presenters;
using System;
using MvvmCross.Forms.Core;
using MvvmCross.Logging;
using MvvmCross.Platform.Uap.Presenters;
using MvvmCross.Platform.Uap.Views;
using MvvmCross.ViewModels;

namespace MvvmCross.Forms.Platform.Uap.Views
namespace MvvmCross.Forms.Platform.Uap.Presenters
{
public class MvxFormsUwpViewPresenter
: MvxWindowsViewPresenter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System;
using Foundation;
using MvvmCross.Core;
using MvvmCross.Forms.Views;
using MvvmCross.Forms.Presenters;
using MvvmCross.Platform.Ios.Core;
using UIKit;
using Xamarin.Forms.Platform.iOS;
Expand Down
4 changes: 2 additions & 2 deletions MvvmCross.Forms/Platform/iOS/Core/MvxFormsIosSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@

using MvvmCross.Binding;
using MvvmCross.Binding.Bindings.Target.Construction;
using MvvmCross.Forms.Views;
using MvvmCross.Forms.Presenters;
using MvvmCross.Localization;
using System.Collections.Generic;
using System.Reflection;
using MvvmCross.Forms.Core;
using MvvmCross.Forms.Platform.iOS.Bindings;
using MvvmCross.Forms.Platform.iOS.Views;
using MvvmCross.Platform.Ios.Core;
using MvvmCross.Platform.Ios.Presenters;
using MvvmCross.Plugins;
using MvvmCross.ViewModels;
using UIKit;
using MvvmCross.Forms.Platform.iOS.Presenters;

namespace MvvmCross.Forms.Platform.iOS.Core
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

using System;
using MvvmCross.Forms.Core;
using MvvmCross.Forms.Views;
using MvvmCross.Forms.Presenters;
using MvvmCross.Logging;
using MvvmCross.Platform.Ios.Presenters;
using MvvmCross.ViewModels;
using UIKit;
using Xamarin.Forms;

namespace MvvmCross.Forms.Platform.iOS.Views
namespace MvvmCross.Forms.Platform.iOS.Presenters
{
public class MvxFormsIosViewPresenter
: MvxIosViewPresenter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System;

namespace MvvmCross.Forms.Views.Attributes
namespace MvvmCross.Forms.Presenters.Attributes
{
[AttributeUsage(AttributeTargets.Class)]
public class MvxCarouselPagePresentationAttribute : MvxPagePresentationAttribute
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System;

namespace MvvmCross.Forms.Views.Attributes
namespace MvvmCross.Forms.Presenters.Attributes
{
[AttributeUsage(AttributeTargets.Class)]
public class MvxContentPagePresentationAttribute : MvxPagePresentationAttribute
Expand All @@ -13,4 +13,4 @@ public MvxContentPagePresentationAttribute()
{
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MS-PL license.
// See the LICENSE file in the project root for more information.

using System;

namespace MvvmCross.Forms.Views.Attributes
namespace MvvmCross.Forms.Presenters.Attributes
{
[AttributeUsage(AttributeTargets.Class)]
public class MvxMasterDetailPagePresentationAttribute : MvxPagePresentationAttribute
Expand All @@ -31,4 +31,4 @@ public enum MasterDetailPosition
Master,
Detail
}
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MS-PL license.
// See the LICENSE file in the project root for more information.

using System;

namespace MvvmCross.Forms.Views.Attributes
namespace MvvmCross.Forms.Presenters.Attributes
{
[AttributeUsage(AttributeTargets.Class)]
public class MvxModalPresentationAttribute : MvxPagePresentationAttribute
Expand All @@ -13,4 +13,4 @@ public MvxModalPresentationAttribute()
{
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MS-PL license.
// See the LICENSE file in the project root for more information.

using System;

namespace MvvmCross.Forms.Views.Attributes
namespace MvvmCross.Forms.Presenters.Attributes
{
[AttributeUsage(AttributeTargets.Class)]
public class MvxNavigationPagePresentationAttribute : MvxPagePresentationAttribute
Expand All @@ -13,4 +13,4 @@ public MvxNavigationPagePresentationAttribute()
{
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System;
using MvvmCross.Presenters;

namespace MvvmCross.Forms.Views.Attributes
namespace MvvmCross.Forms.Presenters.Attributes
{
[AttributeUsage(AttributeTargets.Class)]
public abstract class MvxPagePresentationAttribute : MvxBasePresentationAttribute
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System;

namespace MvvmCross.Forms.Views.Attributes
namespace MvvmCross.Forms.Presenters.Attributes
{
[AttributeUsage(AttributeTargets.Class)]
public class MvxTabbedPagePresentationAttribute : MvxPagePresentationAttribute
Expand All @@ -22,4 +22,4 @@ public enum TabbedPosition
Root,
Tab
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using MvvmCross.Presenters;
using Xamarin.Forms;

namespace MvvmCross.Forms.Views
namespace MvvmCross.Forms.Presenters
{
public interface IMvxFormsPagePresenter : IMvxAttributeViewPresenter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using MvvmCross.Forms.Core;
using MvvmCross.Presenters;

namespace MvvmCross.Forms.Views
namespace MvvmCross.Forms.Presenters
{
public interface IMvxFormsViewPresenter : IMvxAttributeViewPresenter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@
using System.Threading.Tasks;
using MvvmCross.Exceptions;
using MvvmCross.Forms.Core;
using MvvmCross.Forms.Views.Attributes;
using MvvmCross.Forms.Presenters.Attributes;
using MvvmCross.Forms.Views;
using MvvmCross.Logging;
using MvvmCross.Presenters;
using MvvmCross.ViewModels;
using MvvmCross.ViewModels.Hints;
using Xamarin.Forms;

namespace MvvmCross.Forms.Views
namespace MvvmCross.Forms.Presenters
{
//Handles common Forms Presenter code
public class MvxFormsPagePresenter :
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System;

namespace MvvmCross.Forms.Views.EventSource
namespace MvvmCross.Forms.Views.Base
{
public interface IMvxEventSourceCell : IMvxEventSourceElement
{
Expand All @@ -14,4 +14,4 @@ public interface IMvxEventSourceCell : IMvxEventSourceElement

event EventHandler TappedCalled;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

using System;

namespace MvvmCross.Forms.Views.EventSource
namespace MvvmCross.Forms.Views.Base
{
public interface IMvxEventSourceElement
{
event EventHandler BindingContextChangedCalled;

event EventHandler ParentSetCalled;
}
}
}
Loading

0 comments on commit acf2472

Please sign in to comment.