Skip to content

Commit

Permalink
feature: Added Xml Namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
RLittlesII committed Feb 11, 2020
1 parent 243f020 commit e707502
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/Forms/ApplicationBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
using Splat.DryIoc;
using Xamarin.Forms;

[assembly: XmlnsPrefix("https://schemas.rocketsurgeonsguild.com/xaml/airframe/forms", "airframe")]
[assembly: XmlnsDefinition("https://schemas.rocketsurgeonsguild.com/xaml/airframe/forms", "Rocket.Surgery.Airframe.Forms")]

namespace Rocket.Surgery.Airframe.Forms
{
/// <summary>
Expand Down
4 changes: 4 additions & 0 deletions src/Popup/PopupPageBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
using ReactiveUI;
using ReactiveUI.XamForms;
using RxUI.Plugins.Popup;
using Xamarin.Forms;

[assembly: XmlnsPrefix("https://schemas.rocketsurgeonsguild.com/xaml/airframe/popup", "popup")]
[assembly: XmlnsDefinition("https://schemas.rocketsurgeonsguild.com/xaml/airframe/popup", "Rocket.Surgery.Airframe.Popup")]

namespace Rocket.Surgery.Airframe.Popup
{
Expand Down
6 changes: 5 additions & 1 deletion src/ViewModels/IViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
using ReactiveUI;
using Xamarin.Forms;

namespace Rocket.Surgery.Airframe
[assembly: XmlnsPrefix("https://schemas.rocketsurgeonsguild.com/xaml/airframe/viewmodels", "viewmodels")]
[assembly: XmlnsDefinition("https://schemas.rocketsurgeonsguild.com/xaml/airframe/viewmodels", "Rocket.Surgery.Airframe.ViewModels")]

namespace Rocket.Surgery.Airframe.ViewModels
{
/// <summary>
/// Interface representation of a base ReactiveUI View Model.
Expand Down
2 changes: 1 addition & 1 deletion src/ViewModels/ViewModelBase.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Reactive.Disposables;
using ReactiveUI;

namespace Rocket.Surgery.Airframe
namespace Rocket.Surgery.Airframe.ViewModels
{
#pragma warning disable CA2214 // Do not call overridable methods in constructors
/// <summary>
Expand Down
1 change: 1 addition & 0 deletions test/ViewModel.Tests/Test.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Rocket.Surgery.Airframe;
using Rocket.Surgery.Airframe.ViewModels;

namespace Rocket.Surgery.Airframe.ViewModel.Tests
{
Expand Down

0 comments on commit e707502

Please sign in to comment.