Example #1
0
        private void OnImageManipulationStarted(object sender, ManipulationStartedEventArgs e)
        {
            BitmapImage img = new BitmapImage(new Uri(
                                                  "/Resources/Images/TryToPlay_press.png", UriKind.Relative));

            _tryToPlayImage.Source = img;

            AnniversaryViewModel viewModel = (AnniversaryViewModel)_ringtoneListPicker.DataContext;

            switch (viewModel.RingTone)
            {
            case RingTone.SchoolBell:
                SoundUtilities.Instance().Play(SoundType.SchoolBell);
                break;

            case RingTone.Chaotic:
                SoundUtilities.Instance().Play(SoundType.Chaotic);
                break;

            case RingTone.DingTone:
                SoundUtilities.Instance().Play(SoundType.DingTone);
                break;

            default:
                break;
            }

            base.OnManipulationStarted(e);
        }
Example #2
0
        public AnniversaryPage()
        {
            InitializeComponent();

            this.ApplicationBar = new ApplicationBar();
            this.ApplicationBar.IsMenuEnabled   = true;
            this.ApplicationBar.IsVisible       = true;
            this.ApplicationBar.Opacity         = 1.0;
            this.ApplicationBar.ForegroundColor = Colors.White;
            this.ApplicationBar.BackgroundColor = Color.FromArgb(255, 0, 0, 140);

            _subjectTextBox.MaxLength = MaxLength;
            _limitTextBlock.Text      = MaxLength.ToString();

            _AnniversaryViewModel = new AnniversaryViewModel();
            this.DataContext      = _AnniversaryViewModel;
        }