Ejemplo n.º 1
0
 private void expandplayarea()
 {
     ExpandBackAnimation.Begin();
     Shrink.Glyph = "\uE70D";
     ToolTipService.SetToolTip(Shrink, "缩小");
     AlbumCover.Visibility            = Visibility.Visible;
     SongPLayingName.Visibility       = Visibility.Visible;
     SongPLayingSingerName.Visibility = Visibility.Visible;
     RelativePanel.SetAlignHorizontalCenterWithPanel(CommandButtons, true);
     RelativePanel.SetAlignRightWithPanel(PlayProcess, true);
     RelativePanel.SetAbove(CommandButtons, PlayProcess);
     RelativePanel.SetAlignLeftWith(PlayProcess, SongPLayingSingerName);
     RelativePanel.SetAlignLeftWithPanel(CommandButtons, false);
     RelativePanel.SetAlignBottomWithPanel(CommandButtons, false);
     RelativePanel.SetRightOf(PlayProcess, null);
     RelativePanel.SetLeftOf(PlayProcess, null);
 }
Ejemplo n.º 2
0
        private void shrinkplayarea()
        {
            ShrinkAnimation.Begin();
            Shrink.Glyph = "\uE738";
            ToolTipService.SetToolTip(Shrink, "陛下,真不能再小了");
            AlbumCover.Visibility            = Visibility.Collapsed;
            SongPLayingName.Visibility       = Visibility.Collapsed;
            SongPLayingSingerName.Visibility = Visibility.Collapsed;
            RelativePanel.SetAlignHorizontalCenterWithPanel(CommandButtons, false);

            RelativePanel.SetAlignRightWithPanel(PlayProcess, false);
            RelativePanel.SetAbove(CommandButtons, null);
            RelativePanel.SetAlignLeftWith(PlayProcess, null);
            RelativePanel.SetAlignLeftWithPanel(CommandButtons, true);
            RelativePanel.SetAlignBottomWithPanel(CommandButtons, true);
            RelativePanel.SetRightOf(PlayProcess, CommandButtons);
            RelativePanel.SetLeftOf(PlayProcess, Expand);
        }