diff --git a/Wpf_AiSportsMicrospace/Home.xaml b/Wpf_AiSportsMicrospace/Home.xaml index 8e8d7ab..2549a9f 100644 --- a/Wpf_AiSportsMicrospace/Home.xaml +++ b/Wpf_AiSportsMicrospace/Home.xaml @@ -4,6 +4,7 @@ xmlns:local="clr-namespace:Wpf_AiSportsMicrospace.MyUserControl" Title="Home" Height="400" Width="800"> - + + diff --git a/Wpf_AiSportsMicrospace/Home.xaml.cs b/Wpf_AiSportsMicrospace/Home.xaml.cs index b24d4d1..da5de58 100644 --- a/Wpf_AiSportsMicrospace/Home.xaml.cs +++ b/Wpf_AiSportsMicrospace/Home.xaml.cs @@ -27,13 +27,13 @@ namespace Wpf_AiSportsMicrospace string albumPath = Path.Combine(projectRoot, "Resources", "Img", "Album"); // 转换为 Uri - coverFlow.Images.Add(new Uri(Path.Combine(albumPath, "1.jpg"))); - coverFlow.Images.Add(new Uri(Path.Combine(albumPath, "2.jpg"))); - coverFlow.Images.Add(new Uri(Path.Combine(albumPath, "3.jpg"))); - coverFlow.Images.Add(new Uri(Path.Combine(albumPath, "4.jpg"))); - coverFlow.Images.Add(new Uri(Path.Combine(albumPath, "5.jpg"))); + coverFlow.Images.Add(new Uri(Path.Combine(albumPath, "home_play.png"))); + coverFlow.Images.Add(new Uri(Path.Combine(albumPath, "home_test.png"))); + coverFlow.Images.Add(new Uri(Path.Combine(albumPath, "home_history.png"))); + //coverFlow.Images.Add(new Uri(Path.Combine(albumPath, "4.jpg"))); + //coverFlow.Images.Add(new Uri(Path.Combine(albumPath, "5.jpg"))); - // 默认选中第3张 + // 默认选中第2张 coverFlow.SelectedIndex = 2; } } diff --git a/Wpf_AiSportsMicrospace/MyUserControl/CoverFlowControl.xaml.cs b/Wpf_AiSportsMicrospace/MyUserControl/CoverFlowControl.xaml.cs index d3042d0..3eff0c7 100644 --- a/Wpf_AiSportsMicrospace/MyUserControl/CoverFlowControl.xaml.cs +++ b/Wpf_AiSportsMicrospace/MyUserControl/CoverFlowControl.xaml.cs @@ -48,6 +48,8 @@ namespace Wpf_AiSportsMicrospace.MyUserControl public CoverFlowControl() { + Console.WriteLine($"SelectedIndex: {SelectedIndex}"); + InitializeComponent(); DataContext = this; Loaded += (s, e) => UpdateLayoutWithAnimation(true); diff --git a/Wpf_AiSportsMicrospace/Resources/Img/Album/home_bg.png b/Wpf_AiSportsMicrospace/Resources/Img/Album/home_bg.png new file mode 100644 index 0000000..6c550e4 Binary files /dev/null and b/Wpf_AiSportsMicrospace/Resources/Img/Album/home_bg.png differ diff --git a/Wpf_AiSportsMicrospace/Resources/Img/Album/home_history.png b/Wpf_AiSportsMicrospace/Resources/Img/Album/home_history.png new file mode 100644 index 0000000..4d58c88 Binary files /dev/null and b/Wpf_AiSportsMicrospace/Resources/Img/Album/home_history.png differ diff --git a/Wpf_AiSportsMicrospace/Resources/Img/Album/home_play.png b/Wpf_AiSportsMicrospace/Resources/Img/Album/home_play.png new file mode 100644 index 0000000..3fe9a57 Binary files /dev/null and b/Wpf_AiSportsMicrospace/Resources/Img/Album/home_play.png differ diff --git a/Wpf_AiSportsMicrospace/Resources/Img/Album/home_test.png b/Wpf_AiSportsMicrospace/Resources/Img/Album/home_test.png new file mode 100644 index 0000000..c7f4510 Binary files /dev/null and b/Wpf_AiSportsMicrospace/Resources/Img/Album/home_test.png differ