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

Commit 1072f56

Browse files
committed
Add explicit part creation policy, for completeness sake
1 parent b69935d commit 1072f56

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ namespace GitHub.VisualStudio.UI.Views.Controls
1616
/// Interaction logic for LoginControl.xaml
1717
/// </summary>
1818
[ExportView(ViewType=UIViewType.Login)]
19+
[PartCreationPolicy(CreationPolicy.NonShared)]
1920
public partial class LoginControl : SimpleViewUserControl, IViewFor<ILoginControlViewModel>, IView
2021
{
2122
public LoginControl()

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ namespace GitHub.VisualStudio.UI.Views.Controls
2222
/// Interaction logic for CloneRepoControl.xaml
2323
/// </summary>
2424
[ExportView(ViewType=UIViewType.Clone)]
25+
[PartCreationPolicy(CreationPolicy.NonShared)]
2526
public partial class RepositoryCloneControl : SimpleViewUserControl, IViewFor<IRepositoryCloneViewModel>, IView
2627
{
2728
public RepositoryCloneControl()

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ namespace GitHub.VisualStudio.UI.Views.Controls
1818
/// Interaction logic for CloneRepoControl.xaml
1919
/// </summary>
2020
[ExportView(ViewType=UIViewType.Create)]
21+
[PartCreationPolicy(CreationPolicy.NonShared)]
2122
public partial class RepositoryCreationControl : SimpleViewUserControl, IViewFor<IRepositoryCreationViewModel>, IView
2223
{
2324
public RepositoryCreationControl()

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ namespace GitHub.VisualStudio.UI.Views.Controls
1515
/// Interaction logic for CloneRepoControl.xaml
1616
/// </summary>
1717
[ExportView(ViewType=UIViewType.Publish)]
18+
[PartCreationPolicy(CreationPolicy.NonShared)]
1819
public partial class RepositoryPublishControl : SimpleViewUserControl, IViewFor<IRepositoryPublishViewModel>, IView
1920
{
2021
public RepositoryPublishControl()

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ namespace GitHub.VisualStudio.UI.Views.Controls
1313
/// Interaction logic for PasswordView.xaml
1414
/// </summary>
1515
[ExportView(ViewType=UIViewType.TwoFactor)]
16+
[PartCreationPolicy(CreationPolicy.NonShared)]
1617
public partial class TwoFactorControl : SimpleViewUserControl, IViewFor<ITwoFactorDialogViewModel>, IView, IDisposable
1718
{
1819
public TwoFactorControl()

0 commit comments

Comments
 (0)