Skip to content

Commit 5c6da94

Browse files
committed
bug-10549: Center text and button
1 parent 47a5c88 commit 5c6da94

File tree

1 file changed

+24
-21
lines changed

1 file changed

+24
-21
lines changed

src/Files.App/Views/LayoutModes/DetailsLayoutBrowser.xaml

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,24 @@
198198
Canvas.ZIndex="0"
199199
EmptyTextType="{x:Bind ParentShellPageInstance.FilesystemViewModel.EmptyTextType, Mode=OneWay}" />
200200

201-
<TeachingTip
201+
<Border>
202+
<StackPanel
203+
x:Name="SearchUnindexedItemsPanel"
204+
HorizontalAlignment="Center"
205+
VerticalAlignment="Bottom"
206+
x:Load="{x:Bind InstanceViewModel.ShowSearchUnindexedItemsMessage, Mode=OneWay}"
207+
Orientation="Vertical">
208+
<TextBlock Visibility="Visible" Text="{helpers:ResourceString Name=SearchUnindexedItemsLabel/Text}" />
209+
<HyperlinkButton
210+
x:Name="SearchUnindexedItemsButton"
211+
Visibility="Visible"
212+
Command="{x:Bind CommandsViewModel.SearchUnindexedItems}"
213+
Content="{helpers:ResourceString Name=SearchUnindexedItemsButton/Content}" />
214+
</StackPanel>
215+
</Border>
216+
217+
218+
<TeachingTip
202219
x:Name="FileNameTeachingTip"
203220
CloseButtonContent="{helpers:ResourceString Name=FileNameTeachingTip/CloseButtonContent}"
204221
PreferredPlacement="Auto"
@@ -911,26 +928,12 @@
911928
<Setter Property="Height" Value="{ThemeResource ListItemHeight}" />
912929
</Style>
913930
</ListView.ItemContainerStyle>
914-
<ListView.ItemsPanel>
915-
<ItemsPanelTemplate>
916-
<ItemsStackPanel AreStickyGroupHeadersEnabled="False" Orientation="Vertical" />
917-
</ItemsPanelTemplate>
918-
</ListView.ItemsPanel>
919-
<ListView.Footer>
920-
<StackPanel
921-
x:Name="SearchUnindexedItemsPanel"
922-
HorizontalAlignment="Stretch"
923-
x:Load="{x:Bind InstanceViewModel.ShowSearchUnindexedItemsMessage, Mode=OneWay}"
924-
Orientation="Vertical">
925-
<TextBlock Visibility="Collapsed" Text="{helpers:ResourceString Name=SearchUnindexedItemsLabel/Text}" />
926-
<HyperlinkButton
927-
x:Name="SearchUnindexedItemsButton"
928-
Visibility="Collapsed"
929-
Command="{x:Bind CommandsViewModel.SearchUnindexedItems}"
930-
Content="{helpers:ResourceString Name=SearchUnindexedItemsButton/Content}" />
931-
</StackPanel>
932-
</ListView.Footer>
933-
</ListView>
931+
<ListView.ItemsPanel>
932+
<ItemsPanelTemplate>
933+
<ItemsStackPanel AreStickyGroupHeadersEnabled="False" Orientation="Vertical" />
934+
</ItemsPanelTemplate>
935+
</ListView.ItemsPanel>
936+
</ListView>
934937
</SemanticZoom.ZoomedInView>
935938

936939
<SemanticZoom.ZoomedOutView>

0 commit comments

Comments
 (0)