Ejemplo n.º 1
0
 public void GetPhoto(GetPhotoCallback callback)
 {
     this.getPhotoCallback = callback;
     MessagePrompt questionMessage = new MessagePrompt();
     questionMessage.Title = "Choose source:";
     SelectPhotoDialog dialogContent = new SelectPhotoDialog();
     dialogContent.TakePhotoCommand = new DelegateCommand((o) =>
         {
             questionMessage.Hide();
             this.photoCameraCapture.Show();
         });
     dialogContent.ChosePhotoCommand = new DelegateCommand((o) =>
         {
             questionMessage.Hide();
             this.photoChooserTask.Show();
         });
     dialogContent.RandomPhotoCommand = new DelegateCommand((o) =>
         {
             questionMessage.Hide();
             callback(null);
         });
     questionMessage.Body = dialogContent;
     RoundButton cancelButton = new RoundButton();
     cancelButton.ImageSource = new BitmapImage(new Uri("/Resources/icons/appbar.stop.rest.png", UriKind.Relative));
     cancelButton.Click += (sender, args) =>
         {
             questionMessage.Hide();
         };
     questionMessage.ActionPopUpButtons.Clear();
     questionMessage.ActionPopUpButtons.Add(cancelButton);
     questionMessage.Show();
 }
Ejemplo n.º 2
0
        public AboutPrompt()
        {
            DefaultStyleKey = typeof(AboutPrompt);

            var okButton = new RoundButton();

            okButton.Click += ok_Click;

            ActionPopUpButtons.Add(okButton);
        }
Ejemplo n.º 3
0
 public void InitializeComponent()
 {
     if (!this._contentLoaded)
     {
         this._contentLoaded = true;
         Application.LoadComponent(this, new Uri("/TinyMoneyManager;component/loginPage.xaml", UriKind.Relative));
         this.LayoutRoot = (Grid) base.FindName("LayoutRoot");
         this.TitlePanel = (StackPanel) base.FindName("TitlePanel");
         this.ApplicationTitle = (TextBlock) base.FindName("ApplicationTitle");
         this.ContentPanel = (Grid) base.FindName("ContentPanel");
         this.PasswordToLogin = (TextBlock) base.FindName("PasswordToLogin");
         this.PasswordTextBoxRow = (Grid) base.FindName("PasswordTextBoxRow");
         this.PasswordTextBox = (TinyMoneyManager.Controls.PasswordTextBox) base.FindName("PasswordTextBox");
         this.OpenButton = (RoundButton) base.FindName("OpenButton");
         this.LastTimeAccess = (TextBlock) base.FindName("LastTimeAccess");
         this.FooterText = (TextBlock) base.FindName("FooterText");
     }
 }
Ejemplo n.º 4
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SplitTheBill;component/Results.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.PageTitle = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.continueButton = ((Coding4Fun.Phone.Controls.RoundButton)(this.FindName("continueButton")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.metroFlow1 = ((Coding4Fun.Phone.Controls.MetroFlow)(this.FindName("metroFlow1")));
     this.subBox = ((System.Windows.Controls.TextBlock)(this.FindName("subBox")));
     this.taxBox = ((System.Windows.Controls.TextBlock)(this.FindName("taxBox")));
     this.tipBox = ((System.Windows.Controls.TextBlock)(this.FindName("tipBox")));
     this.totalBox = ((System.Windows.Controls.TextBlock)(this.FindName("totalBox")));
 }
Ejemplo n.º 5
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SplitTheBill;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.PageTitle = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.continueButton = ((Coding4Fun.Phone.Controls.RoundButton)(this.FindName("continueButton")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.LayoutGrid = ((System.Windows.Controls.Grid)(this.FindName("LayoutGrid")));
     this.peopleSlider = ((Coding4Fun.Phone.Controls.SuperSlider)(this.FindName("peopleSlider")));
     this.UpButton = ((System.Windows.Controls.Image)(this.FindName("UpButton")));
     this.sliderBlock = ((System.Windows.Controls.TextBlock)(this.FindName("sliderBlock")));
     this.DownButton = ((System.Windows.Controls.Image)(this.FindName("DownButton")));
 }
Ejemplo n.º 6
0
        private void dialogbox(object sender, EventArgs e)
        {
            var messagePrompt = new MessagePrompt
            {
                Title = "             Change Text Size",  //white space needed to center text
            };

            messagePrompt.Completed += messagePrompt_Completed;

            RoundButton customButton = new RoundButton();
            customButton.ImageSource = new BitmapImage(new Uri("/icons/appbar.next.rest.png", UriKind.RelativeOrAbsolute));
            customButton.Click += new RoutedEventHandler(customButton_Click);
            messagePrompt.ActionPopUpButtons.Add(customButton);

            RoundButton customButton2 = new RoundButton();
            customButton2.ImageSource = new BitmapImage(new Uri("/icons/appbar.next.restup.png", UriKind.RelativeOrAbsolute));
            customButton2.Click += new RoutedEventHandler(customButton2_Click);
            messagePrompt.ActionPopUpButtons.Add(customButton2);

            messagePrompt.Show();
        }
Ejemplo n.º 7
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SplitTheBill;component/PurchasePage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.PageTitle = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.continueButton = ((Coding4Fun.Phone.Controls.RoundButton)(this.FindName("continueButton")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.metroFlow1 = ((Coding4Fun.Phone.Controls.MetroFlow)(this.FindName("metroFlow1")));
     this.textBlock1 = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock1")));
     this.totalBlock = ((System.Windows.Controls.TextBlock)(this.FindName("totalBlock")));
     this.textBox1 = ((System.Windows.Controls.TextBox)(this.FindName("textBox1")));
     this.roundButton1 = ((Coding4Fun.Phone.Controls.RoundButton)(this.FindName("roundButton1")));
     this.textBlock2 = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock2")));
     this.scrollViewer1 = ((System.Windows.Controls.ScrollViewer)(this.FindName("scrollViewer1")));
     this.listBox1 = ((System.Windows.Controls.ListBox)(this.FindName("listBox1")));
 }
Ejemplo n.º 8
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SplitTheBill;component/TipAndTax.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.PageTitle = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.continueButton = ((Coding4Fun.Phone.Controls.RoundButton)(this.FindName("continueButton")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.tipSliderBlock = ((System.Windows.Controls.TextBox)(this.FindName("tipSliderBlock")));
     this.sliderBlock = ((System.Windows.Controls.TextBox)(this.FindName("sliderBlock")));
     this.subBlock = ((System.Windows.Controls.TextBlock)(this.FindName("subBlock")));
     this.taxBlock = ((System.Windows.Controls.TextBlock)(this.FindName("taxBlock")));
     this.tipBlock = ((System.Windows.Controls.TextBlock)(this.FindName("tipBlock")));
     this.tot1Block = ((System.Windows.Controls.TextBlock)(this.FindName("tot1Block")));
     this.tot2Block = ((System.Windows.Controls.TextBlock)(this.FindName("tot2Block")));
     this.adControl1 = ((Microsoft.Advertising.Mobile.UI.AdControl)(this.FindName("adControl1")));
 }
Ejemplo n.º 9
0
        protected UserPrompt()
        {
            var okButton = new RoundButton();

            _cancelButton = new RoundButton
            {
                ImageSource =
                    new BitmapImage(
                        new Uri(
                            "/Coding4Fun.Phone.Controls;component/Media/icons/appbar.cancel.rest.png",
                            UriKind.RelativeOrAbsolute))
            };

            okButton.Click      += ok_Click;
            _cancelButton.Click += cancelled_Click;

            ActionPopUpButtons.Add(okButton);
            ActionPopUpButtons.Add(_cancelButton);

            SetCancelButtonVisibility(IsCancelVisible);
        }
Ejemplo n.º 10
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Zires%20Explorer;component/MainPage.xaml", System.UriKind.Relative));
     this.Zires = ((Microsoft.Phone.Controls.PhoneApplicationPage)(this.FindName("Zires")));
     this.Open_OpenWithAnimation  = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Open_OpenWithAnimation")));
     this.Close_OpenWithAnimation = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Close_OpenWithAnimation")));
     this.Open_MainMenu           = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Open_MainMenu")));
     this.easingDoubleKeyFrame_1  = ((System.Windows.Media.Animation.EasingDoubleKeyFrame)(this.FindName("easingDoubleKeyFrame_1")));
     this.Close_MainMenu          = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Close_MainMenu")));
     this.easingDoubleKeyFrame_2  = ((System.Windows.Media.Animation.EasingDoubleKeyFrame)(this.FindName("easingDoubleKeyFrame_2")));
     this.Open_HoldMenu           = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Open_HoldMenu")));
     this.Close_HoldMenu          = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Close_HoldMenu")));
     this.Open_Start           = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Open_Start")));
     this.longListSelectorItem = ((System.Windows.Style)(this.FindName("longListSelectorItem")));
     this.LayoutRoot           = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel         = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.seperator            = ((System.Windows.Controls.RowDefinition)(this.FindName("seperator")));
     this.explorer_1           = ((System.Windows.Controls.Grid)(this.FindName("explorer_1")));
     this.list                              = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("list")));
     this.selectionList                     = ((Microsoft.Phone.Controls.LongListMultiSelector)(this.FindName("selectionList")));
     this.home_2                            = ((Coding4Fun.Phone.Controls.RoundButton)(this.FindName("home_2")));
     this.pathPanel_2                       = ((System.Windows.Controls.TextBox)(this.FindName("pathPanel_2")));
     this.explorer_2                        = ((System.Windows.Controls.Grid)(this.FindName("explorer_2")));
     this.list_2                            = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("list_2")));
     this.selectionList_2                   = ((Microsoft.Phone.Controls.LongListMultiSelector)(this.FindName("selectionList_2")));
     this.seperatorControler                = ((System.Windows.Controls.Primitives.ToggleButton)(this.FindName("seperatorControler")));
     this.home                              = ((Coding4Fun.Phone.Controls.RoundButton)(this.FindName("home")));
     this.pathPanel                         = ((System.Windows.Controls.TextBox)(this.FindName("pathPanel")));
     this.statusBar                         = ((System.Windows.Controls.Grid)(this.FindName("statusBar")));
     this.numbersOfItem                     = ((System.Windows.Controls.TextBlock)(this.FindName("numbersOfItem")));
     this.selectedItem                      = ((System.Windows.Controls.TextBlock)(this.FindName("selectedItem")));
     this.MainMenu                          = ((System.Windows.Controls.Grid)(this.FindName("MainMenu")));
     this.planeProjectionMainMenu           = ((System.Windows.Media.PlaneProjection)(this.FindName("planeProjectionMainMenu")));
     this.menuScrooll                       = ((System.Windows.Controls.ScrollViewer)(this.FindName("menuScrooll")));
     this.menuScroollContentPlaneProjection = ((System.Windows.Media.PlaneProjection)(this.FindName("menuScroollContentPlaneProjection")));
     this.Thumbnails_view                   = ((System.Windows.Controls.Button)(this.FindName("Thumbnails_view")));
     this.Details_view                      = ((System.Windows.Controls.Button)(this.FindName("Details_view")));
     this.search                            = ((System.Windows.Controls.Button)(this.FindName("search")));
     this.new_folder                        = ((System.Windows.Controls.Button)(this.FindName("new_folder")));
     this.cut                     = ((System.Windows.Controls.Button)(this.FindName("cut")));
     this.copy                    = ((System.Windows.Controls.Button)(this.FindName("copy")));
     this.paste                   = ((System.Windows.Controls.Button)(this.FindName("paste")));
     this.delete                  = ((System.Windows.Controls.Button)(this.FindName("delete")));
     this.rename                  = ((System.Windows.Controls.Button)(this.FindName("rename")));
     this.selectall               = ((System.Windows.Controls.Button)(this.FindName("selectall")));
     this.selectnone              = ((System.Windows.Controls.Button)(this.FindName("selectnone")));
     this.properties              = ((System.Windows.Controls.Button)(this.FindName("properties")));
     this.pintostart              = ((System.Windows.Controls.Button)(this.FindName("pintostart")));
     this.refresh                 = ((System.Windows.Controls.Button)(this.FindName("refresh")));
     this.exit                    = ((System.Windows.Controls.Button)(this.FindName("exit")));
     this.settings                = ((System.Windows.Controls.Button)(this.FindName("settings")));
     this.asd                     = ((System.Windows.Controls.TextBlock)(this.FindName("asd")));
     this.openWithList            = ((System.Windows.Controls.Grid)(this.FindName("openWithList")));
     this.OpenWithForAnimation    = ((System.Windows.Media.PlaneProjection)(this.FindName("OpenWithForAnimation")));
     this.ziresPlayerButton       = ((System.Windows.Controls.Button)(this.FindName("ziresPlayerButton")));
     this.phonePlayerButton       = ((System.Windows.Controls.Button)(this.FindName("phonePlayerButton")));
     this.playInBackground        = ((System.Windows.Controls.Button)(this.FindName("playInBackground")));
     this.openWithClose           = ((Coding4Fun.Phone.Controls.RoundButton)(this.FindName("openWithClose")));
     this.menuControl             = ((System.Windows.Controls.Grid)(this.FindName("menuControl")));
     this.planeprojectionHoldMenu = ((System.Windows.Media.PlaneProjection)(this.FindName("planeprojectionHoldMenu")));
     this.Menu                    = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("Menu")));
     this.startControl            = ((System.Windows.Controls.Grid)(this.FindName("startControl")));
     this.Start                   = ((System.Windows.Controls.Grid)(this.FindName("Start")));
     this.startPlaneProjection    = ((System.Windows.Media.PlaneProjection)(this.FindName("startPlaneProjection")));
     this.start                   = ((Microsoft.Phone.Controls.LongListMultiSelector)(this.FindName("start")));
     this.recentPlaces            = ((Microsoft.Phone.Controls.LongListMultiSelector)(this.FindName("recentPlaces")));
 }
		private void MessageSuperClick(object sender, RoutedEventArgs e)
		{
			var messagePrompt = new MessagePrompt
			{
				Title = "Advanced Message",
				Background = _naturalBlueSolidColorBrush,
				Foreground = _aliceBlueSolidColorBrush,
				Overlay = _cornFlowerBlueSolidColorBrush,
			};

			var btnHide = new RoundButton { Content = "Hide" };
			btnHide.Click += (o, args) => messagePrompt.Hide();

			var btnComplete = new RoundButton { Content = "Complete" };
			btnComplete.Click += (o, args) => messagePrompt.OnCompleted(new PopUpEventArgs<string, PopUpResult> { PopUpResult = PopUpResult.Ok, Result = "You clicked the Complete Button" });

			messagePrompt.ActionPopUpButtons.Clear();
			messagePrompt.ActionPopUpButtons.Add(btnHide);
			messagePrompt.ActionPopUpButtons.Add(btnComplete);

			messagePrompt.Completed += PopUpPromptStringCompleted;

			messagePrompt.Show();
		}