Skip to content

Commit a8ca1ee

Browse files
authored
Fix demo app home button issue (#2477)
* Fix demo app Home button issue * Move the demo app title to center of the header
1 parent f5ec3b4 commit a8ca1ee

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

MainDemo.Wpf/Domain/MainWindowViewModel.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ public MainWindowViewModel(ISnackbarMessageQueue snackbarMessageQueue)
3939
_demoItemsView = CollectionViewSource.GetDefaultView(DemoItems);
4040
_demoItemsView.Filter = DemoItemsFilter;
4141

42-
HomeCommand = new AnotherCommandImplementation(_ => { SelectedIndex = 0; });
42+
HomeCommand = new AnotherCommandImplementation(
43+
_ =>
44+
{
45+
SearchKeyword = string.Empty;
46+
SelectedIndex = 0;
47+
});
4348

4449
MovePrevCommand = new AnotherCommandImplementation(
4550
_ =>

MainDemo.Wpf/MainWindow.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@
203203
HorizontalAlignment="Center"
204204
VerticalAlignment="Center"
205205
FontSize="22"
206+
Margin="-152,0,0,0"
206207
AutomationProperties.Name="Material Design In XAML Toolkit"
207208
Text="Material Design In XAML Toolkit"/>
208209
</DockPanel>

0 commit comments

Comments
 (0)