Esempio n. 1
0
        private void Menu2txtblk_Tapped(object sender, TappedRoutedEventArgs e)
        {
            if (MenuSelect.Margin == new Thickness(275, 146, 0, 0))
            {
                FloatSelect1.Begin();
                MenuSelect.Margin = new Thickness(144, 146, 0, 0);
            }

            if (MenuSelect.Margin == new Thickness(20, 146, 0, 0))
            {
                FloatSelect2.Begin();
                MenuSelect.Margin = new Thickness(144, 146, 0, 0);
            }

            if (seters.Width == 10)
            {
                if (MenuSelect.Margin == new Thickness(265, 146, 0, 0))
                {
                    FloatSelect1.Begin();
                    MenuSelect.Margin = new Thickness(144, 146, 0, 0);
                }

                if (MenuSelect.Margin == new Thickness(20, 146, 0, 0))
                {
                    FloatSelect2.Begin();
                    MenuSelect.Margin = new Thickness(144, 146, 0, 0);
                }
            }
        }
        private void Menu2txtblk_Tapped(object sender, TappedRoutedEventArgs e)
        {
            if (MenuSelect.Margin == new Thickness(271, 77, 0, 0))
            {
                FloatSelect1.Begin();
                MenuSelect.Margin = new Thickness(144, 77, 0, 0);
            }

            if (MenuSelect.Margin == new Thickness(26, 77, 0, 0))
            {
                FloatSelect2.Begin();
                MenuSelect.Margin = new Thickness(144, 77, 0, 0);
            }

            if (seters.Width == 10)
            {
                if (MenuSelect.Margin == new Thickness(240, 63, 0, 0))
                {
                    FloatSelect1.Begin();
                    MenuSelect.Margin = new Thickness(132, 63, 0, 0);
                }

                if (MenuSelect.Margin == new Thickness(18, 63, 0, 0))
                {
                    FloatSelect2.Begin();
                    MenuSelect.Margin = new Thickness(132, 63, 0, 0);
                }
            }

            Messages.Visibility    = Visibility.Collapsed;
            MessageMenu.Visibility = Visibility.Collapsed;
            Contacts.Visibility    = Visibility.Visible;
        }