Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit ba477e4

Browse files
committed
Merge pull request #113 from github/shana/fix-part-creation-policy
🎨 Add explicit part creation policy, for completeness sake
2 parents 5c9cab6 + 7281f70 commit ba477e4

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

src/GitHub.VisualStudio/UI/Views/Controls/LoginControl.xaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99
using GitHub.ViewModels;
1010
using NullGuard;
1111
using ReactiveUI;
12+
using System.ComponentModel.Composition;
1213

1314
namespace GitHub.VisualStudio.UI.Views.Controls
1415
{
1516
/// <summary>
1617
/// Interaction logic for LoginControl.xaml
1718
/// </summary>
1819
[ExportView(ViewType=UIViewType.Login)]
20+
[PartCreationPolicy(CreationPolicy.NonShared)]
1921
public partial class LoginControl : SimpleViewUserControl, IViewFor<ILoginControlViewModel>, IView
2022
{
2123
public LoginControl()

src/GitHub.VisualStudio/UI/Views/Controls/RepositoryCloneControl.xaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@
1515
using GitHub.ViewModels;
1616
using NullGuard;
1717
using ReactiveUI;
18+
using System.ComponentModel.Composition;
1819

1920
namespace GitHub.VisualStudio.UI.Views.Controls
2021
{
2122
/// <summary>
2223
/// Interaction logic for CloneRepoControl.xaml
2324
/// </summary>
2425
[ExportView(ViewType=UIViewType.Clone)]
26+
[PartCreationPolicy(CreationPolicy.NonShared)]
2527
public partial class RepositoryCloneControl : SimpleViewUserControl, IViewFor<IRepositoryCloneViewModel>, IView
2628
{
2729
public RepositoryCloneControl()

src/GitHub.VisualStudio/UI/Views/Controls/RepositoryCreationControl.xaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@
1111
using GitHub.ViewModels;
1212
using NullGuard;
1313
using ReactiveUI;
14+
using System.ComponentModel.Composition;
1415

1516
namespace GitHub.VisualStudio.UI.Views.Controls
1617
{
1718
/// <summary>
1819
/// Interaction logic for CloneRepoControl.xaml
1920
/// </summary>
2021
[ExportView(ViewType=UIViewType.Create)]
22+
[PartCreationPolicy(CreationPolicy.NonShared)]
2123
public partial class RepositoryCreationControl : SimpleViewUserControl, IViewFor<IRepositoryCreationViewModel>, IView
2224
{
2325
public RepositoryCreationControl()

src/GitHub.VisualStudio/UI/Views/Controls/RepositoryPublishControl.xaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
using GitHub.ViewModels;
99
using NullGuard;
1010
using ReactiveUI;
11+
using System.ComponentModel.Composition;
1112

1213
namespace GitHub.VisualStudio.UI.Views.Controls
1314
{
1415
/// <summary>
1516
/// Interaction logic for CloneRepoControl.xaml
1617
/// </summary>
1718
[ExportView(ViewType=UIViewType.Publish)]
19+
[PartCreationPolicy(CreationPolicy.NonShared)]
1820
public partial class RepositoryPublishControl : SimpleViewUserControl, IViewFor<IRepositoryPublishViewModel>, IView
1921
{
2022
public RepositoryPublishControl()

src/GitHub.VisualStudio/UI/Views/Controls/TwoFactorControl.xaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@
66
using GitHub.UI;
77
using GitHub.ViewModels;
88
using ReactiveUI;
9+
using System.ComponentModel.Composition;
910

1011
namespace GitHub.VisualStudio.UI.Views.Controls
1112
{
1213
/// <summary>
1314
/// Interaction logic for PasswordView.xaml
1415
/// </summary>
1516
[ExportView(ViewType=UIViewType.TwoFactor)]
17+
[PartCreationPolicy(CreationPolicy.NonShared)]
1618
public partial class TwoFactorControl : SimpleViewUserControl, IViewFor<ITwoFactorDialogViewModel>, IView, IDisposable
1719
{
1820
public TwoFactorControl()

0 commit comments

Comments
 (0)