Skip to content

Commit 9c03c54

Browse files
committed
Code Quality: Rename FooterContent to ContentFooter
1 parent ad4c595 commit 9c03c54

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/Files.App/UserControls/SideBar/SideBarView.properties.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ public UIElement InnerContent
2323
public static readonly DependencyProperty InnerContentProperty =
2424
DependencyProperty.Register(nameof(InnerContent), typeof(UIElement), typeof(SidebarView), new PropertyMetadata(null));
2525

26-
public UIElement FooterContent
26+
public UIElement ContentFooter
2727
{
28-
get { return (UIElement)GetValue(FooterContentProperty); }
29-
set { SetValue(FooterContentProperty, value); }
28+
get { return (UIElement)GetValue(ContentFooterProperty); }
29+
set { SetValue(ContentFooterProperty, value); }
3030
}
31-
public static readonly DependencyProperty FooterContentProperty =
32-
DependencyProperty.Register(nameof(FooterContent), typeof(UIElement), typeof(SidebarView), new PropertyMetadata(null));
31+
public static readonly DependencyProperty ContentFooterProperty =
32+
DependencyProperty.Register(nameof(ContentFooter), typeof(UIElement), typeof(SidebarView), new PropertyMetadata(null));
3333

3434
public UIElement Footer
3535
{

src/Files.App/UserControls/SideBar/SideBarView.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@
155155

156156
<!-- Footer -->
157157
<Border
158-
x:Name="FooterContentPresenter"
158+
x:Name="ContentFooterPresenter"
159159
Grid.Row="1"
160160
VerticalAlignment="Stretch"
161-
Child="{x:Bind FooterContent, Mode=OneWay}"
161+
Child="{x:Bind ContentFooter, Mode=OneWay}"
162162
TabFocusNavigation="Local" />
163163

164164
</Grid>

src/Files.App/UserControls/SideBar/SideBarView.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private void SidebarView_Loaded(object sender, RoutedEventArgs e)
121121
PaneColumnGrid.Translation = new System.Numerics.Vector3(0, 0, 32);
122122

123123
// Cast shadow on the footer
124-
ContentThemeShadow.Receivers.Add(FooterContentPresenter);
124+
ContentThemeShadow.Receivers.Add(ContentFooterPresenter);
125125
}
126126

127127
private void SidebarResizer_ManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)

src/Files.App/Views/MainPage.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@
280280
</sidebar:SidebarView.InnerContent>
281281

282282
<!-- Footer Content -->
283-
<sidebar:SidebarView.FooterContent>
283+
<sidebar:SidebarView.ContentFooter>
284284
<Border>
285285
<!-- Status Bar -->
286286
<uc:StatusBar
@@ -289,7 +289,7 @@
289289
x:Load="False"
290290
ShowInfoText="{x:Bind SidebarAdaptiveViewModel.PaneHolder.ActivePaneOrColumn.InstanceViewModel.IsPageTypeNotHome, Mode=OneWay}" />
291291
</Border>
292-
</sidebar:SidebarView.FooterContent>
292+
</sidebar:SidebarView.ContentFooter>
293293
</sidebar:SidebarView>
294294

295295
<VisualStateManager.VisualStateGroups>

0 commit comments

Comments
 (0)