From 1c49b0faf7abc9507f63963984a1da5ae0e7fbbe Mon Sep 17 00:00:00 2001
From: Luke Latham <1622880+guardrex@users.noreply.github.com>
Date: Sun, 21 Jun 2020 15:41:37 -0500
Subject: [PATCH] Update Blazor common sample example (#18874)
---
.../3.x/BlazorServerSample/Components/Tab.razor | 8 ++++----
.../3.x/BlazorServerSample/Components/TabSet.razor | 8 ++++----
.../Pages/CascadingValuesParametersTabSet.razor | 12 ++++++------
.../3.x/BlazorWebAssemblySample/Components/Tab.razor | 8 ++++----
.../BlazorWebAssemblySample/Components/TabSet.razor | 8 ++++----
.../Pages/CascadingValuesParametersTabSet.razor | 12 ++++++------
6 files changed, 28 insertions(+), 28 deletions(-)
diff --git a/aspnetcore/blazor/common/samples/3.x/BlazorServerSample/Components/Tab.razor b/aspnetcore/blazor/common/samples/3.x/BlazorServerSample/Components/Tab.razor
index 2e6609ab94..8e9e7b5800 100644
--- a/aspnetcore/blazor/common/samples/3.x/BlazorServerSample/Components/Tab.razor
+++ b/aspnetcore/blazor/common/samples/3.x/BlazorServerSample/Components/Tab.razor
@@ -1,8 +1,8 @@
-@using BlazorSample.UIInterfaces
+@using BlazorSample.UIInterfaces
@implements ITab
-
+
@Title
@@ -24,8 +24,8 @@
ContainerTabSet.AddTab(this);
}
- private void Activate()
+ private void ActivateTab()
{
- ContainerTabSet.SetActivateTab(this);
+ ContainerTabSet.SetActiveTab(this);
}
}
diff --git a/aspnetcore/blazor/common/samples/3.x/BlazorServerSample/Components/TabSet.razor b/aspnetcore/blazor/common/samples/3.x/BlazorServerSample/Components/TabSet.razor
index 8ae1332d09..207a547370 100644
--- a/aspnetcore/blazor/common/samples/3.x/BlazorServerSample/Components/TabSet.razor
+++ b/aspnetcore/blazor/common/samples/3.x/BlazorServerSample/Components/TabSet.razor
@@ -1,4 +1,4 @@
-@using BlazorSample.UIInterfaces
+@using BlazorSample.UIInterfaces
@@ -22,7 +22,7 @@
{
if (ActiveTab == null)
{
- SetActivateTab(tab);
+ SetActiveTab(tab);
}
}
@@ -30,11 +30,11 @@
{
if (ActiveTab == tab)
{
- SetActivateTab(null);
+ SetActiveTab(null);
}
}
- public void SetActivateTab(ITab tab)
+ public void SetActiveTab(ITab tab)
{
if (ActiveTab != tab)
{
diff --git a/aspnetcore/blazor/common/samples/3.x/BlazorServerSample/Pages/CascadingValuesParametersTabSet.razor b/aspnetcore/blazor/common/samples/3.x/BlazorServerSample/Pages/CascadingValuesParametersTabSet.razor
index 33c22c4911..b0a38b336b 100644
--- a/aspnetcore/blazor/common/samples/3.x/BlazorServerSample/Pages/CascadingValuesParametersTabSet.razor
+++ b/aspnetcore/blazor/common/samples/3.x/BlazorServerSample/Pages/CascadingValuesParametersTabSet.razor
@@ -97,7 +97,7 @@ namespace BlazorSample.UIInterfaces
{
if (ActiveTab == null)
{
- SetActivateTab(tab);
+ SetActiveTab(tab);
}
}
@@ -105,11 +105,11 @@ namespace BlazorSample.UIInterfaces
{
if (ActiveTab == tab)
{
- SetActivateTab(null);
+ SetActiveTab(null);
}
}
- public void SetActivateTab(ITab tab)
+ public void SetActiveTab(ITab tab)
{
if (ActiveTab != tab)
{
@@ -127,7 +127,7 @@ namespace BlazorSample.UIInterfaces
@@implements ITab
<li>
- <a @@onclick="Activate" class="nav-link @@TitleCssClass" role="button">
+ <a @@onclick="ActivateTab" class="nav-link @@TitleCssClass" role="button">
@@Title
</a>
</li>
@@ -149,9 +149,9 @@ namespace BlazorSample.UIInterfaces
ContainerTabSet.AddTab(this);
}
- private void Activate()
+ private void ActivateTab()
{
- ContainerTabSet.SetActivateTab(this);
+ ContainerTabSet.SetActiveTab(this);
}
}
diff --git a/aspnetcore/blazor/common/samples/3.x/BlazorWebAssemblySample/Components/Tab.razor b/aspnetcore/blazor/common/samples/3.x/BlazorWebAssemblySample/Components/Tab.razor
index 2e6609ab94..8e9e7b5800 100644
--- a/aspnetcore/blazor/common/samples/3.x/BlazorWebAssemblySample/Components/Tab.razor
+++ b/aspnetcore/blazor/common/samples/3.x/BlazorWebAssemblySample/Components/Tab.razor
@@ -1,8 +1,8 @@
-@using BlazorSample.UIInterfaces
+@using BlazorSample.UIInterfaces
@implements ITab
-
+
@Title
@@ -24,8 +24,8 @@
ContainerTabSet.AddTab(this);
}
- private void Activate()
+ private void ActivateTab()
{
- ContainerTabSet.SetActivateTab(this);
+ ContainerTabSet.SetActiveTab(this);
}
}
diff --git a/aspnetcore/blazor/common/samples/3.x/BlazorWebAssemblySample/Components/TabSet.razor b/aspnetcore/blazor/common/samples/3.x/BlazorWebAssemblySample/Components/TabSet.razor
index 8ae1332d09..207a547370 100644
--- a/aspnetcore/blazor/common/samples/3.x/BlazorWebAssemblySample/Components/TabSet.razor
+++ b/aspnetcore/blazor/common/samples/3.x/BlazorWebAssemblySample/Components/TabSet.razor
@@ -1,4 +1,4 @@
-@using BlazorSample.UIInterfaces
+@using BlazorSample.UIInterfaces
@@ -22,7 +22,7 @@
{
if (ActiveTab == null)
{
- SetActivateTab(tab);
+ SetActiveTab(tab);
}
}
@@ -30,11 +30,11 @@
{
if (ActiveTab == tab)
{
- SetActivateTab(null);
+ SetActiveTab(null);
}
}
- public void SetActivateTab(ITab tab)
+ public void SetActiveTab(ITab tab)
{
if (ActiveTab != tab)
{
diff --git a/aspnetcore/blazor/common/samples/3.x/BlazorWebAssemblySample/Pages/CascadingValuesParametersTabSet.razor b/aspnetcore/blazor/common/samples/3.x/BlazorWebAssemblySample/Pages/CascadingValuesParametersTabSet.razor
index 33c22c4911..b0a38b336b 100644
--- a/aspnetcore/blazor/common/samples/3.x/BlazorWebAssemblySample/Pages/CascadingValuesParametersTabSet.razor
+++ b/aspnetcore/blazor/common/samples/3.x/BlazorWebAssemblySample/Pages/CascadingValuesParametersTabSet.razor
@@ -97,7 +97,7 @@ namespace BlazorSample.UIInterfaces
{
if (ActiveTab == null)
{
- SetActivateTab(tab);
+ SetActiveTab(tab);
}
}
@@ -105,11 +105,11 @@ namespace BlazorSample.UIInterfaces
{
if (ActiveTab == tab)
{
- SetActivateTab(null);
+ SetActiveTab(null);
}
}
- public void SetActivateTab(ITab tab)
+ public void SetActiveTab(ITab tab)
{
if (ActiveTab != tab)
{
@@ -127,7 +127,7 @@ namespace BlazorSample.UIInterfaces
@@implements ITab
<li>
- <a @@onclick="Activate" class="nav-link @@TitleCssClass" role="button">
+ <a @@onclick="ActivateTab" class="nav-link @@TitleCssClass" role="button">
@@Title
</a>
</li>
@@ -149,9 +149,9 @@ namespace BlazorSample.UIInterfaces
ContainerTabSet.AddTab(this);
}
- private void Activate()
+ private void ActivateTab()
{
- ContainerTabSet.SetActivateTab(this);
+ ContainerTabSet.SetActiveTab(this);
}
}