Skip to content

Commit

Permalink
Reorganized namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandKoenig committed Dec 31, 2023
1 parent 8aadaf3 commit 3f13d3a
Show file tree
Hide file tree
Showing 21 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion src/RolandK.AvaloniaExtensions.TestApp/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using RolandK.AvaloniaExtensions.Mvvm.Markup;
using RolandK.AvaloniaExtensions.Mvvm.Controls;

namespace RolandK.AvaloniaExtensions.TestApp;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Avalonia.Controls;
using CommunityToolkit.Mvvm.ComponentModel;
using RolandK.AvaloniaExtensions.Mvvm;
using RolandK.AvaloniaExtensions.Mvvm.Markup;
using RolandK.AvaloniaExtensions.Mvvm.Controls;
using RolandK.AvaloniaExtensions.Tests.Util;
using RolandK.AvaloniaExtensions.Views;
using RolandK.AvaloniaExtensions.Controls;
using RolandK.AvaloniaExtensions.ViewServices;
using RolandK.AvaloniaExtensions.ViewServices.Base;

Expand Down
4 changes: 2 additions & 2 deletions src/RolandK.AvaloniaExtensions.Tests/Mvvm/MvvmWindowTests.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Avalonia.Controls;
using CommunityToolkit.Mvvm.ComponentModel;
using RolandK.AvaloniaExtensions.Mvvm;
using RolandK.AvaloniaExtensions.Mvvm.Markup;
using RolandK.AvaloniaExtensions.Mvvm.Controls;
using RolandK.AvaloniaExtensions.Tests.Util;
using RolandK.AvaloniaExtensions.Views;
using RolandK.AvaloniaExtensions.Controls;
using RolandK.AvaloniaExtensions.ViewServices;
using RolandK.AvaloniaExtensions.ViewServices.Base;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Avalonia.Controls;
using RolandK.AvaloniaExtensions.Mvvm.Markup;
using RolandK.AvaloniaExtensions.Mvvm.Controls;
using RolandK.AvaloniaExtensions.Tests.Util;
using RolandK.AvaloniaExtensions.Views;
using RolandK.AvaloniaExtensions.Controls;
using RolandK.AvaloniaExtensions.ViewServices;

namespace RolandK.AvaloniaExtensions.Tests.ViewServices;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using RolandK.AvaloniaExtensions.Mvvm.Markup;
using RolandK.AvaloniaExtensions.Mvvm.Controls;
using RolandK.AvaloniaExtensions.Tests.Util;
using RolandK.AvaloniaExtensions.ViewServices;
using RolandK.AvaloniaExtensions.ViewServices.Base;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Avalonia.Controls;
using Avalonia.LogicalTree;
using RolandK.AvaloniaExtensions.Tests.Util;
using RolandK.AvaloniaExtensions.Views;
using RolandK.AvaloniaExtensions.Controls;

namespace RolandK.AvaloniaExtensions.Tests.Views;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Avalonia.Controls;
using Avalonia.LogicalTree;
using RolandK.AvaloniaExtensions.Tests.Util;
using RolandK.AvaloniaExtensions.Views;
using RolandK.AvaloniaExtensions.Controls;

namespace RolandK.AvaloniaExtensions.Tests.Views;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Avalonia.Controls;
using Avalonia.LogicalTree;
using RolandK.AvaloniaExtensions.Tests.Util;
using RolandK.AvaloniaExtensions.Views;
using RolandK.AvaloniaExtensions.Controls;

namespace RolandK.AvaloniaExtensions.Tests.Views;

Expand Down
4 changes: 2 additions & 2 deletions src/RolandK.AvaloniaExtensions/Attributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

[assembly: XmlnsDefinition(
"https://github.com/RolandK.AvaloniaExtensions",
"RolandK.AvaloniaExtensions.Views")]
"RolandK.AvaloniaExtensions.Controls")]
[assembly: XmlnsDefinition(
"https://github.com/RolandK.AvaloniaExtensions",
"RolandK.AvaloniaExtensions.Mvvm.Markup")]
"RolandK.AvaloniaExtensions.Mvvm.Controls")]

[assembly: InternalsVisibleTo("RolandK.AvaloniaExtensions.Tests")]
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="RolandK.AvaloniaExtensions.Views.DialogBoxControl">
x:Class="RolandK.AvaloniaExtensions.Controls.DialogBoxControl">
<Border BorderThickness="1"
BorderBrush="{DynamicResource DialogBoxControlBorderBrush}">
<DockPanel LastChildFill="True">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Avalonia.Controls;
using Avalonia.Markup.Xaml;

namespace RolandK.AvaloniaExtensions.Views;
namespace RolandK.AvaloniaExtensions.Controls;

public partial class DialogBoxControl : UserControl
{
Expand All @@ -14,7 +14,7 @@ public string Header
set => _txtHeader.Text = value;
}

public Controls ContentArea
public Avalonia.Controls.Controls ContentArea
{
get => _gridContent.Children;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Avalonia.Layout;
using Avalonia.Media;

namespace RolandK.AvaloniaExtensions.Views;
namespace RolandK.AvaloniaExtensions.Controls;

public class DialogHostControl : Grid
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:RolandK.AvaloniaExtensions.Views"
xmlns:local="clr-namespace:RolandK.AvaloniaExtensions.Controls"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="RolandK.AvaloniaExtensions.Views.MainWindowFrame">
x:Class="RolandK.AvaloniaExtensions.Controls.MainWindowFrame">
<Grid x:Name="CtrlFullWindowGrid">
<Grid.RowDefinitions>
<RowDefinition Height="30" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Avalonia.Media;
using Avalonia.Threading;

namespace RolandK.AvaloniaExtensions.Views;
namespace RolandK.AvaloniaExtensions.Controls;

public partial class MainWindowFrame : UserControl
{
Expand All @@ -25,15 +25,15 @@ public partial class MainWindowFrame : UserControl
private Panel _ctrlFooterArea;
private Panel _ctrlStatusBar;

public Controls FullBackgroundArea => _ctrlFullBackgroundPanel.Children;
public Avalonia.Controls.Controls FullBackgroundArea => _ctrlFullBackgroundPanel.Children;

public Controls CustomTitleArea => _ctrlCustomTitleArea.Children;
public Avalonia.Controls.Controls CustomTitleArea => _ctrlCustomTitleArea.Children;

public Controls HeaderMenuArea => _ctrlHeaderMenuArea.Children;
public Avalonia.Controls.Controls HeaderMenuArea => _ctrlHeaderMenuArea.Children;

public Controls MainContentArea => _ctrlMainContentArea.Children;
public Avalonia.Controls.Controls MainContentArea => _ctrlMainContentArea.Children;

public Controls FooterArea => _ctrlFooterArea.Children;
public Avalonia.Controls.Controls FooterArea => _ctrlFooterArea.Children;

public DialogHostControl Overlay { get; }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace RolandK.AvaloniaExtensions.Views;
namespace RolandK.AvaloniaExtensions.Controls;

public enum MainWindowFrameStatus
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using RolandK.AvaloniaExtensions.ViewServices;
using RolandK.AvaloniaExtensions.ViewServices.Base;

namespace RolandK.AvaloniaExtensions.Mvvm.Markup;
namespace RolandK.AvaloniaExtensions.Mvvm.Controls;

public class MvvmUserControl : UserControl, IViewServiceHost
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using RolandK.AvaloniaExtensions.ViewServices;
using RolandK.AvaloniaExtensions.ViewServices.Base;

namespace RolandK.AvaloniaExtensions.Mvvm.Markup;
namespace RolandK.AvaloniaExtensions.Mvvm.Controls;

public class MvvmWindow : Window, IViewServiceHost
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using RolandK.AvaloniaExtensions.ViewServices;
using RolandK.AvaloniaExtensions.ViewServices.Base;

namespace RolandK.AvaloniaExtensions.Mvvm.Markup;
namespace RolandK.AvaloniaExtensions.Mvvm.Controls;

public class ViewServiceHostUserControl : UserControl, IViewServiceHost
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Avalonia.Controls;
using Avalonia.LogicalTree;
using RolandK.AvaloniaExtensions.Views;
using RolandK.AvaloniaExtensions.Controls;
using RolandK.AvaloniaExtensions.ViewServices.FileDialogs;
using RolandK.AvaloniaExtensions.ViewServices.MessageBox;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Avalonia.Controls;
using System.Threading.Tasks;
using Avalonia.Markup.Xaml;
using RolandK.AvaloniaExtensions.Views;
using RolandK.AvaloniaExtensions.Controls;

// Simple message box implementation
// Based on: https://stackoverflow.com/questions/55706291/how-to-show-a-message-box-in-avaloniaui-beta
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Threading.Tasks;
using RolandK.AvaloniaExtensions.Views;
using RolandK.AvaloniaExtensions.Controls;
using RolandK.AvaloniaExtensions.ViewServices.Base;

namespace RolandK.AvaloniaExtensions.ViewServices.MessageBox;
Expand Down

0 comments on commit 3f13d3a

Please sign in to comment.