68 changed files with 1203 additions and 83 deletions
@ -0,0 +1,11 @@ |
|||||
|
<UserControl x:Class="Samples.Modules.Button.Views.ButtonSpinnerView" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
mc:Ignorable="d" |
||||
|
d:DesignHeight="300" d:DesignWidth="300"> |
||||
|
<Grid> |
||||
|
<TextBlock Text="ButtonSpinner View" /> |
||||
|
</Grid> |
||||
|
</UserControl> |
||||
@ -0,0 +1,27 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Controls; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Documents; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace Samples.Modules.Button.Views |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Interaction logic for ButtonSpinnerView.xaml
|
||||
|
/// </summary>
|
||||
|
public partial class ButtonSpinnerView : UserControl |
||||
|
{ |
||||
|
public ButtonSpinnerView() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -1,9 +1,9 @@ |
|||||
<TreeViewItem x:Class="Samples.Modules.Button.NavigationView" |
<TreeViewItem x:Class="Samples.Modules.Button.Views.NavigationView" |
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
Header="ButtonSpinner" Tag="Samples.Modules.Button.HomeView"> |
Header="Button Controls" Tag="Samples.Modules.Button.Views.HomeView"> |
||||
|
|
||||
<TreeViewItem Header="ButtonSpinner" /> |
<TreeViewItem Header="ButtonSpinner" Tag="Samples.Modules.Button.Views.ButtonSpinnerView"/> |
||||
<TreeViewItem Header="SplitButton" /> |
<TreeViewItem Header="SplitButton" Tag="Samples.Modules.Button.Views.SplitButtonView"/> |
||||
|
|
||||
</TreeViewItem> |
</TreeViewItem> |
||||
|
|||||
@ -0,0 +1,7 @@ |
|||||
|
<UserControl x:Class="Samples.Modules.Button.Views.SplitButtonView" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
||||
|
<Grid> |
||||
|
<TextBlock Text="SplitButton View" /> |
||||
|
</Grid> |
||||
|
</UserControl> |
||||
@ -0,0 +1,27 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Controls; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Documents; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace Samples.Modules.Button.Views |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Interaction logic for SplitButtonView.xaml
|
||||
|
/// </summary>
|
||||
|
public partial class SplitButtonView : UserControl |
||||
|
{ |
||||
|
public SplitButtonView() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,27 @@ |
|||||
|
using System; |
||||
|
using Samples.Infrastructure; |
||||
|
using Microsoft.Practices.Prism.Regions; |
||||
|
using Microsoft.Practices.Unity; |
||||
|
using Samples.Infrastructure.Extensions; |
||||
|
using Samples.Modules.Calculator.Views; |
||||
|
|
||||
|
namespace Samples.Modules.Calculator |
||||
|
{ |
||||
|
public class CalculatorModule : ModuleBase |
||||
|
{ |
||||
|
public CalculatorModule(IUnityContainer container, IRegionManager regionManager) |
||||
|
: base(container, regionManager) { } |
||||
|
|
||||
|
protected override void InitializeModule() |
||||
|
{ |
||||
|
RegionManager.RegisterViewWithRegion(RegionNames.NavigationRegion, typeof(NavigationView)); |
||||
|
} |
||||
|
|
||||
|
protected override void RegisterViewsAndTypes() |
||||
|
{ |
||||
|
Container.RegisterNavigationType(typeof(HomeView)); |
||||
|
Container.RegisterNavigationType(typeof(CalculatorView)); |
||||
|
Container.RegisterNavigationType(typeof(CalculatorUpDownView)); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,11 @@ |
|||||
|
<UserControl x:Class="Samples.Modules.Calculator.Views.CalculatorUpDownView" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
mc:Ignorable="d" |
||||
|
d:DesignHeight="300" d:DesignWidth="300"> |
||||
|
<Grid> |
||||
|
<TextBlock Text="CalculatorUpDown view" /> |
||||
|
</Grid> |
||||
|
</UserControl> |
||||
@ -0,0 +1,27 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Controls; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Documents; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace Samples.Modules.Calculator.Views |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Interaction logic for CalculatorUpDownView.xaml
|
||||
|
/// </summary>
|
||||
|
public partial class CalculatorUpDownView : UserControl |
||||
|
{ |
||||
|
public CalculatorUpDownView() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,11 @@ |
|||||
|
<UserControl x:Class="Samples.Modules.Calculator.Views.CalculatorView" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
mc:Ignorable="d" |
||||
|
d:DesignHeight="300" d:DesignWidth="300"> |
||||
|
<Grid> |
||||
|
<TextBlock Text="Calculator view" /> |
||||
|
</Grid> |
||||
|
</UserControl> |
||||
@ -0,0 +1,27 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Controls; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Documents; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace Samples.Modules.Calculator.Views |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Interaction logic for CalculatorView.xaml
|
||||
|
/// </summary>
|
||||
|
public partial class CalculatorView : UserControl |
||||
|
{ |
||||
|
public CalculatorView() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,18 @@ |
|||||
|
<UserControl x:Class="Samples.Modules.Calculator.Views.HomeView" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
mc:Ignorable="d" |
||||
|
d:DesignHeight="300" d:DesignWidth="300"> |
||||
|
<Grid> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="Auto" /> |
||||
|
<RowDefinition Height="*" /> |
||||
|
</Grid.RowDefinitions> |
||||
|
<TextBlock Text="Calculator Module Title" /> |
||||
|
<TextBlock Grid.Row="1" Margin="10" |
||||
|
Text="Clculator module text" |
||||
|
TextWrapping="Wrap" /> |
||||
|
</Grid> |
||||
|
</UserControl> |
||||
@ -0,0 +1,27 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Controls; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Documents; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace Samples.Modules.Calculator.Views |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Interaction logic for HomeView.xaml
|
||||
|
/// </summary>
|
||||
|
public partial class HomeView : UserControl |
||||
|
{ |
||||
|
public HomeView() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,9 @@ |
|||||
|
<TreeViewItem x:Class="Samples.Modules.Calculator.Views.NavigationView" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
Header="Calculator Controls" Tag="Samples.Modules.Calculator.Views.HomeView"> |
||||
|
|
||||
|
<TreeViewItem Header="Calculator" Tag="Samples.Modules.Calculator.Views.CalculatorView"/> |
||||
|
<TreeViewItem Header="CalculatorUpDown" Tag="Samples.Modules.Calculator.Views.CalculatorUpDownView"/> |
||||
|
|
||||
|
</TreeViewItem> |
||||
@ -0,0 +1,27 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Controls; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Documents; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace Samples.Modules.Calculator.Views |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Interaction logic for NavigationView.xaml
|
||||
|
/// </summary>
|
||||
|
public partial class NavigationView : TreeViewItem |
||||
|
{ |
||||
|
public NavigationView() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,25 @@ |
|||||
|
using System; |
||||
|
using Microsoft.Practices.Unity; |
||||
|
using Microsoft.Practices.Prism.Regions; |
||||
|
using Samples.Infrastructure; |
||||
|
using Samples.Infrastructure.Extensions; |
||||
|
using Samples.Modules.ChildWindow.Views; |
||||
|
|
||||
|
namespace Samples.Modules.ChildWindow |
||||
|
{ |
||||
|
public class ChildWindowModule: ModuleBase |
||||
|
{ |
||||
|
public ChildWindowModule(IUnityContainer container, IRegionManager regionManager) |
||||
|
: base(container, regionManager) { } |
||||
|
|
||||
|
protected override void InitializeModule() |
||||
|
{ |
||||
|
RegionManager.RegisterViewWithRegion(RegionNames.NavigationRegion, typeof(NavigationView)); |
||||
|
} |
||||
|
|
||||
|
protected override void RegisterViewsAndTypes() |
||||
|
{ |
||||
|
Container.RegisterNavigationType(typeof(HomeView)); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,11 @@ |
|||||
|
<UserControl x:Class="Samples.Modules.ChildWindow.Views.HomeView" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
mc:Ignorable="d" |
||||
|
d:DesignHeight="300" d:DesignWidth="300"> |
||||
|
<Grid> |
||||
|
<TextBlock Text="ChildWindow View" /> |
||||
|
</Grid> |
||||
|
</UserControl> |
||||
@ -0,0 +1,27 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Controls; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Documents; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace Samples.Modules.ChildWindow.Views |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Interaction logic for HomeView.xaml
|
||||
|
/// </summary>
|
||||
|
public partial class HomeView : UserControl |
||||
|
{ |
||||
|
public HomeView() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,6 @@ |
|||||
|
<TreeViewItem x:Class="Samples.Modules.ChildWindow.Views.NavigationView" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
Header="ChildWindow" Tag="Samples.Modules.ChildWindow.Views.HomeView"> |
||||
|
|
||||
|
</TreeViewItem> |
||||
@ -0,0 +1,27 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Controls; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Documents; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace Samples.Modules.ChildWindow.Views |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Interaction logic for NavigationView.xaml
|
||||
|
/// </summary>
|
||||
|
public partial class NavigationView : TreeViewItem |
||||
|
{ |
||||
|
public NavigationView() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,26 @@ |
|||||
|
using System; |
||||
|
using Microsoft.Practices.Unity; |
||||
|
using Microsoft.Practices.Prism.Regions; |
||||
|
using Samples.Infrastructure; |
||||
|
using Samples.Infrastructure.Extensions; |
||||
|
using Samples.Modules.Color.Views; |
||||
|
|
||||
|
|
||||
|
namespace Samples.Modules.Color |
||||
|
{ |
||||
|
public class ColorModule: ModuleBase |
||||
|
{ |
||||
|
public ColorModule(IUnityContainer container, IRegionManager regionManager) |
||||
|
: base(container, regionManager) { } |
||||
|
|
||||
|
protected override void InitializeModule() |
||||
|
{ |
||||
|
RegionManager.RegisterViewWithRegion(RegionNames.NavigationRegion, typeof(NavigationView)); |
||||
|
} |
||||
|
|
||||
|
protected override void RegisterViewsAndTypes() |
||||
|
{ |
||||
|
Container.RegisterNavigationType(typeof(HomeView)); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,11 @@ |
|||||
|
<UserControl x:Class="Samples.Modules.Color.Views.HomeView" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
mc:Ignorable="d" |
||||
|
d:DesignHeight="300" d:DesignWidth="300"> |
||||
|
<Grid> |
||||
|
<TextBlock Text="Color View" /> |
||||
|
</Grid> |
||||
|
</UserControl> |
||||
@ -0,0 +1,27 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Controls; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Documents; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace Samples.Modules.Color.Views |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Interaction logic for HomeView.xaml
|
||||
|
/// </summary>
|
||||
|
public partial class HomeView : UserControl |
||||
|
{ |
||||
|
public HomeView() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,6 @@ |
|||||
|
<TreeViewItem x:Class="Samples.Modules.Color.Views.NavigationView" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
Header="Color" Tag="Samples.Modules.Color.Views.HomeView"> |
||||
|
|
||||
|
</TreeViewItem> |
||||
@ -0,0 +1,27 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Controls; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Documents; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace Samples.Modules.Color.Views |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Interaction logic for NavigationView.xaml
|
||||
|
/// </summary>
|
||||
|
public partial class NavigationView : TreeViewItem |
||||
|
{ |
||||
|
public NavigationView() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,25 @@ |
|||||
|
using System; |
||||
|
using Microsoft.Practices.Unity; |
||||
|
using Microsoft.Practices.Prism.Regions; |
||||
|
using Samples.Infrastructure; |
||||
|
using Samples.Infrastructure.Extensions; |
||||
|
using Samples.Modules.DateTime.Views; |
||||
|
|
||||
|
namespace Samples.Modules.DateTime |
||||
|
{ |
||||
|
public class DateTimeModule: ModuleBase |
||||
|
{ |
||||
|
public DateTimeModule(IUnityContainer container, IRegionManager regionManager) |
||||
|
: base(container, regionManager) { } |
||||
|
|
||||
|
protected override void InitializeModule() |
||||
|
{ |
||||
|
RegionManager.RegisterViewWithRegion(RegionNames.NavigationRegion, typeof(NavigationView)); |
||||
|
} |
||||
|
|
||||
|
protected override void RegisterViewsAndTypes() |
||||
|
{ |
||||
|
Container.RegisterNavigationType(typeof(HomeView)); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,11 @@ |
|||||
|
<UserControl x:Class="Samples.Modules.DateTime.Views.HomeView" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
mc:Ignorable="d" |
||||
|
d:DesignHeight="300" d:DesignWidth="300"> |
||||
|
<Grid> |
||||
|
<TextBlock Text="DateTime View" /> |
||||
|
</Grid> |
||||
|
</UserControl> |
||||
@ -0,0 +1,27 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Controls; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Documents; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace Samples.Modules.DateTime.Views |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Interaction logic for HomeView.xaml
|
||||
|
/// </summary>
|
||||
|
public partial class HomeView : UserControl |
||||
|
{ |
||||
|
public HomeView() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,6 @@ |
|||||
|
<TreeViewItem x:Class="Samples.Modules.DateTime.Views.NavigationView" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
Header="DateTime" Tag="Samples.Modules.DateTime.Views.HomeView"> |
||||
|
|
||||
|
</TreeViewItem> |
||||
@ -0,0 +1,27 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Controls; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Documents; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace Samples.Modules.DateTime.Views |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Interaction logic for NavigationView.xaml
|
||||
|
/// </summary>
|
||||
|
public partial class NavigationView : TreeViewItem |
||||
|
{ |
||||
|
public NavigationView() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,25 @@ |
|||||
|
using System; |
||||
|
using Microsoft.Practices.Unity; |
||||
|
using Microsoft.Practices.Prism.Regions; |
||||
|
using Samples.Infrastructure; |
||||
|
using Samples.Infrastructure.Extensions; |
||||
|
using Samples.Modules.Numeric.Views; |
||||
|
|
||||
|
namespace Samples.Modules.Numeric |
||||
|
{ |
||||
|
public class NumericModule: ModuleBase |
||||
|
{ |
||||
|
public NumericModule(IUnityContainer container, IRegionManager regionManager) |
||||
|
: base(container, regionManager) { } |
||||
|
|
||||
|
protected override void InitializeModule() |
||||
|
{ |
||||
|
RegionManager.RegisterViewWithRegion(RegionNames.NavigationRegion, typeof(NavigationView)); |
||||
|
} |
||||
|
|
||||
|
protected override void RegisterViewsAndTypes() |
||||
|
{ |
||||
|
Container.RegisterNavigationType(typeof(HomeView)); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,11 @@ |
|||||
|
<UserControl x:Class="Samples.Modules.Numeric.Views.HomeView" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
mc:Ignorable="d" |
||||
|
d:DesignHeight="300" d:DesignWidth="300"> |
||||
|
<Grid> |
||||
|
<TextBlock Text="Numeric View" /> |
||||
|
</Grid> |
||||
|
</UserControl> |
||||
@ -0,0 +1,27 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Controls; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Documents; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace Samples.Modules.Numeric.Views |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Interaction logic for HomeView.xaml
|
||||
|
/// </summary>
|
||||
|
public partial class HomeView : UserControl |
||||
|
{ |
||||
|
public HomeView() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,6 @@ |
|||||
|
<TreeViewItem x:Class="Samples.Modules.Numeric.Views.NavigationView" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
Header="Numeric" Tag="Samples.Modules.Numeric.Views.HomeView"> |
||||
|
|
||||
|
</TreeViewItem> |
||||
@ -0,0 +1,27 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Controls; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Documents; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace Samples.Modules.Numeric.Views |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Interaction logic for NavigationView.xaml
|
||||
|
/// </summary>
|
||||
|
public partial class NavigationView : TreeViewItem |
||||
|
{ |
||||
|
public NavigationView() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,25 @@ |
|||||
|
using System; |
||||
|
using Microsoft.Practices.Unity; |
||||
|
using Microsoft.Practices.Prism.Regions; |
||||
|
using Samples.Infrastructure; |
||||
|
using Samples.Infrastructure.Extensions; |
||||
|
using Samples.Modules.PropertyGrid.Views; |
||||
|
|
||||
|
namespace Samples.Modules.PropertyGrid |
||||
|
{ |
||||
|
public class PropertyGridModule: ModuleBase |
||||
|
{ |
||||
|
public PropertyGridModule(IUnityContainer container, IRegionManager regionManager) |
||||
|
: base(container, regionManager) { } |
||||
|
|
||||
|
protected override void InitializeModule() |
||||
|
{ |
||||
|
RegionManager.RegisterViewWithRegion(RegionNames.NavigationRegion, typeof(NavigationView)); |
||||
|
} |
||||
|
|
||||
|
protected override void RegisterViewsAndTypes() |
||||
|
{ |
||||
|
Container.RegisterNavigationType(typeof(HomeView)); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,11 @@ |
|||||
|
<UserControl x:Class="Samples.Modules.PropertyGrid.Views.HomeView" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
mc:Ignorable="d" |
||||
|
d:DesignHeight="300" d:DesignWidth="300"> |
||||
|
<Grid> |
||||
|
<TextBlock Text="PropertyGrid View" /> |
||||
|
</Grid> |
||||
|
</UserControl> |
||||
@ -0,0 +1,27 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Controls; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Documents; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace Samples.Modules.PropertyGrid.Views |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Interaction logic for HomeView.xaml
|
||||
|
/// </summary>
|
||||
|
public partial class HomeView : UserControl |
||||
|
{ |
||||
|
public HomeView() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,6 @@ |
|||||
|
<TreeViewItem x:Class="Samples.Modules.PropertyGrid.Views.NavigationView" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
Header="ChildWindow" Tag="Samples.Modules.PropertyGrid.Views.HomeView"> |
||||
|
|
||||
|
</TreeViewItem> |
||||
@ -0,0 +1,27 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Controls; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Documents; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace Samples.Modules.PropertyGrid.Views |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Interaction logic for NavigationView.xaml
|
||||
|
/// </summary>
|
||||
|
public partial class NavigationView : TreeViewItem |
||||
|
{ |
||||
|
public NavigationView() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,25 @@ |
|||||
|
using System; |
||||
|
using Microsoft.Practices.Unity; |
||||
|
using Microsoft.Practices.Prism.Regions; |
||||
|
using Samples.Infrastructure; |
||||
|
using Samples.Infrastructure.Extensions; |
||||
|
using Samples.Modules.Text.Views; |
||||
|
|
||||
|
namespace Samples.Modules.Text |
||||
|
{ |
||||
|
public class TextModule: ModuleBase |
||||
|
{ |
||||
|
public TextModule(IUnityContainer container, IRegionManager regionManager) |
||||
|
: base(container, regionManager) { } |
||||
|
|
||||
|
protected override void InitializeModule() |
||||
|
{ |
||||
|
RegionManager.RegisterViewWithRegion(RegionNames.NavigationRegion, typeof(NavigationView)); |
||||
|
} |
||||
|
|
||||
|
protected override void RegisterViewsAndTypes() |
||||
|
{ |
||||
|
Container.RegisterNavigationType(typeof(HomeView)); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,11 @@ |
|||||
|
<UserControl x:Class="Samples.Modules.Text.Views.HomeView" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
mc:Ignorable="d" |
||||
|
d:DesignHeight="300" d:DesignWidth="300"> |
||||
|
<Grid> |
||||
|
<TextBlock Text="Text View" /> |
||||
|
</Grid> |
||||
|
</UserControl> |
||||
@ -0,0 +1,27 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Controls; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Documents; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace Samples.Modules.Text.Views |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Interaction logic for HomeView.xaml
|
||||
|
/// </summary>
|
||||
|
public partial class HomeView : UserControl |
||||
|
{ |
||||
|
public HomeView() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,6 @@ |
|||||
|
<TreeViewItem x:Class="Samples.Modules.Text.Views.NavigationView" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
Header="Text" Tag="Samples.Modules.Text.Views.HomeView"> |
||||
|
|
||||
|
</TreeViewItem> |
||||
@ -0,0 +1,27 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Controls; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Documents; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace Samples.Modules.Text.Views |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Interaction logic for NavigationView.xaml
|
||||
|
/// </summary>
|
||||
|
public partial class NavigationView : TreeViewItem |
||||
|
{ |
||||
|
public NavigationView() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,13 @@ |
|||||
|
using System; |
||||
|
using Microsoft.Practices.Unity; |
||||
|
|
||||
|
namespace Samples.Infrastructure.Extensions |
||||
|
{ |
||||
|
public static class UnityContainerExtensions |
||||
|
{ |
||||
|
public static void RegisterNavigationType(this IUnityContainer container, Type type) |
||||
|
{ |
||||
|
container.RegisterType(typeof(Object), type, type.FullName); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue