Inheritance: System.Windows.Controls.Control
        /// <summary>
        /// Retrieves the visible containers in a LongListSelector and adds them to <paramref name="items"/>.
        /// </summary>
        /// <param name="list">LongListSelector that contains the items.</param>
        /// <param name="itemsPanel">Direct parent of the items.</param>
        /// <param name="items">List to populate with the containers currently in the viewport</param>
        /// <param name="selectContent">
        ///     Specifies whether to return the container or its content.
        ///     For headers, we can't apply projections on the container directly (or everything will go blank),
        ///     so we will apply them on the content instead.
        /// </param>
        private static void AddVisibileContainers(LongListSelector list, Canvas itemsPanel, List <KeyValuePair <double, FrameworkElement> > items, bool selectContent)
        {
            foreach (DependencyObject obj in VisualTreeExtensions.GetVisualChildren(itemsPanel))
            {
                ContentPresenter container = obj as ContentPresenter;
                if (container != null &&
                    (!selectContent ||
                     (VisualTreeHelper.GetChildrenCount(container) == 1 &&
                      VisualTreeHelper.GetChild(container, 0) is FrameworkElement)))
                {
                    GeneralTransform itemTransform = null;
                    try
                    {
                        itemTransform = container.TransformToVisual(list);
                    }
                    catch (ArgumentException)
                    {
                        // Ignore failures when not in the visual tree
                        break;
                    }

                    Rect boundingBox = new Rect(itemTransform.Transform(new Point()), itemTransform.Transform(new Point(container.ActualWidth, container.ActualHeight)));

                    if (boundingBox.Bottom > 0 && boundingBox.Top < list.ActualHeight)
                    {
                        items.Add(
                            new KeyValuePair <double, FrameworkElement>(
                                boundingBox.Top,
                                selectContent
                                ? (FrameworkElement)VisualTreeHelper.GetChild(container, 0)
                                : container));
                    }
                }
            }
        }
Example #2
0
        /// <summary>
        /// Konstruktor.
        /// </summary>
        /// <param name="dispatcher">Der Dispatcher der Seite des LongListSelectors.</param>
        /// <param name="longListSelector">Der LongListSelector zum animieren.</param>
        internal LongListSelectorAnimator(Dispatcher dispatcher, LongListSelector longListSelector)
        {
            this.dispatcher = dispatcher;

            longListSelector.GroupViewOpened += LongListSelector_GroupViewOpened;
            longListSelector.GroupViewClosing += LongListSelector_GroupViewClosing;
        }
        /// <summary>
        /// Gets the items that are currently in the viewport
        /// of a LongListSelector and adds them
        /// into a list of weak references.
        /// </summary>
        /// <param name="list">
        /// The LongListSelector instance to search on.
        /// </param>
        /// <param name="items">
        /// The list of weak references where the items in
        /// the viewport will be added.
        /// </param>
        public static void GetItemsInViewPort(LongListSelector list, IList <WeakReference> items)
        {
            DependencyObject child = list;

            if (VisualTreeHelper.GetChildrenCount(list) == 0)
            {
                // no child yet
                return;
            }

            list.UpdateLayout();

            do
            {
                child = VisualTreeHelper.GetChild(child, 0);
            } while (VisualTreeHelper.GetChildrenCount(child) > 0 && !(child is Canvas));

            if (child is Canvas &&
                VisualTreeHelper.GetChildrenCount(child) > 0 &&
                VisualTreeHelper.GetChild(child, 0) is Canvas)
            {
                Canvas headersPanel = (Canvas)child;
                Canvas itemsPanel   = (Canvas)VisualTreeHelper.GetChild(child, 0);
                var    itemsInList  = new List <KeyValuePair <double, FrameworkElement> >();

                AddVisibileContainers(list, itemsPanel, itemsInList, /* selectContent = */ false);
                AddVisibileContainers(list, headersPanel, itemsInList, /* selectContent = */ true);

                foreach (var pair in itemsInList.OrderBy(selector => selector.Key))
                {
                    items.Add(new WeakReference(pair.Value));
                }
            }
        }
        /// <summary>
        /// Gets the items that are currently in the viewport
        /// of a LongListSelector and adds them
        /// into a list of weak references.
        /// </summary>
        /// <param name="list">
        /// The LongListSelector instance to search on.
        /// </param>
        /// <param name="items">
        /// The list of weak references where the items in 
        /// the viewport will be added.
        /// </param>
        public static void GetItemsInViewPort(LongListSelector list, IList<WeakReference> items)
        {
            DependencyObject child = list;

            if (VisualTreeHelper.GetChildrenCount(list) == 0)
            {
                // no child yet
                return;
            }

            list.UpdateLayout();

            do
            {
                child = VisualTreeHelper.GetChild(child, 0);
            } while (VisualTreeHelper.GetChildrenCount(child) > 0 && !(child is Canvas));

            if (child is Canvas && 
                VisualTreeHelper.GetChildrenCount(child) > 0 && 
                VisualTreeHelper.GetChild(child, 0) is Canvas)
            {
                Canvas headersPanel = (Canvas)child;
                Canvas itemsPanel = (Canvas)VisualTreeHelper.GetChild(child, 0);
                var itemsInList = new List<KeyValuePair<double, FrameworkElement>>();

                AddVisibileContainers(list, itemsPanel, itemsInList, /* selectContent = */ false);
                AddVisibileContainers(list, headersPanel, itemsInList, /* selectContent = */ true);

                foreach (var pair in itemsInList.OrderBy(selector => selector.Key))
                {
                    items.Add(new WeakReference(pair.Value));
                }
            }
        }
Example #5
0
        /// <summary>
        /// Template application : gets and hooks the inner LongListSelector
        /// </summary>
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            _realizedItems.Clear();
            if (_innerSelector != null)
            {
                _innerSelector.ItemRealized             -= OnInnerSelectorItemRealized;
                _innerSelector.ItemUnrealized           -= OnInnerSelectorItemUnrealized;
                _innerSelector.JumpListClosed           -= OnInnerSelectorJumpListClosed;
                _innerSelector.JumpListOpening          -= OnInnerSelectorJumpListOpening;
                _innerSelector.ManipulationStateChanged -= OnInnerSelectorManipulationStateChanged;
                _innerSelector.PropertyChanged          -= OnInnerSelectorPropertyChanged;
            }
            _innerSelector = this.GetTemplateChild(InnerSelectorName) as LongListSelector;
            if (_innerSelector != null)
            {
                _innerSelector.LayoutMode                = LayoutMode;
                _innerSelector.ItemRealized             += OnInnerSelectorItemRealized;
                _innerSelector.ItemUnrealized           += OnInnerSelectorItemUnrealized;
                _innerSelector.JumpListClosed           += OnInnerSelectorJumpListClosed;
                _innerSelector.JumpListOpening          += OnInnerSelectorJumpListOpening;
                _innerSelector.ManipulationStateChanged += OnInnerSelectorManipulationStateChanged;
                _innerSelector.PropertyChanged          += OnInnerSelectorPropertyChanged;
            }
        }
Example #6
0
public LongListSelectorHelper(LongListSelector longListSelector)
{
    longListSelector.SelectionChanged += (sender, args) =>
            {
                var methodName = GetSelectionChangedMethodName(longListSelector);

                var dataContext = GetMethodContext(longListSelector);
                if (dataContext == null)
                {
                    dataContext = longListSelector.DataContext;
                }

                var method = dataContext.GetType().GetTypeInfo().GetDeclaredMethod(methodName);
                var parms = method.GetParameters();

                if (parms != null && parms.Length == 1)
                {
                    method.Invoke(dataContext, new[] { longListSelector.SelectedItem });
                }
                else
                {
                    method.Invoke(dataContext, null);
                }
            };
}
        /// <summary>
        /// Retrieves the visible containers in a LongListSelector and adds them to <paramref name="items"/>.
        /// </summary>
        /// <param name="list">LongListSelector that contains the items.</param>
        /// <param name="itemsPanel">Direct parent of the items.</param>
        /// <param name="items">List to populate with the containers currently in the viewport</param>
        /// <param name="selectContent">
        /// Specifies whether to return the container or its content.
        /// For headers, we can't apply projections on the container directly 
        /// (or everything will go blank), so we will apply them on the 
        /// content instead.
        /// </param>
        private static void AddVisibileContainers(LongListSelector list, Canvas itemsPanel, List<KeyValuePair<double, FrameworkElement>> items, bool selectContent)
        {
            foreach (DependencyObject obj in itemsPanel.GetVisualChildren())
            {
                ContentPresenter container = obj as ContentPresenter;
                if (container != null &&
                    (!selectContent ||
                    (VisualTreeHelper.GetChildrenCount(container) == 1 &&
                     VisualTreeHelper.GetChild(container, 0) is FrameworkElement)))
                {
                    GeneralTransform itemTransform = null;
                    try
                    {
                        itemTransform = container.TransformToVisual(list);
                    }
                    catch (ArgumentException)
                    {
                        // Ignore failures when not in the visual tree
                        break;
                    }

                    Rect boundingBox = new Rect(itemTransform.Transform(new Point()), itemTransform.Transform(new Point(container.ActualWidth, container.ActualHeight)));

                    if (boundingBox.Bottom > 0 && boundingBox.Top < list.ActualHeight)
                    {
                        items.Add(
                            new KeyValuePair<double, FrameworkElement>(
                                boundingBox.Top, 
                                selectContent 
                                ? (FrameworkElement)VisualTreeHelper.GetChild(container, 0) 
                                : container));
                    }
                }
            }
        }
 private void _swivelHide_Completed(object sender, System.EventArgs e)
 {
     if (this.currentSelector != null)
     {
         this.currentSelector.CloseGroupView();
         this.currentSelector = null;
     }
 }
        public void Bind(ExtendedListBox listbox)
        {
            list = listbox;
            list.StretchingBottom += list_StretchingBottom;
            list.StretchingTop += list_StretchingTop;

            Bound = true;
        }
Example #10
0
 private void BindLLS(LongListSelector element)
 {
     this.lls = element;
     this.lls.ManipulationStateChanged += lls_ManipulationStateChanged;
     this.lls.MouseLeftButtonDown += lls_MouseLeftButtonDown;
     this.lls.MouseMove += lls_MouseMove;
     this.lls.ItemRealized += OnViewportChanged;
     this.lls.ItemUnrealized += OnViewportChanged;
 }
Example #11
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SACIS;component/Pages/Messages/Inbox/Inbox.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.LLsMensagens = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("LLsMensagens")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/PeopleHub;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.peopleLongListSelector = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("peopleLongListSelector")));
 }
Example #13
0
 public void SetListUnableAndShowMessage(LongListSelector list, TextBlock messageTextBlock, string message)
 {
     this.Dispatcher.BeginInvoke(() =>
     {
         list.Visibility = Visibility.Collapsed;
         messageTextBlock.Text = message;
         messageTextBlock.Visibility = Visibility.Visible;
     });
 }
Example #14
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/MetroFanfou;component/UserControls/MessageList.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.DataListBox = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("DataListBox")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/PhoneApp4;component/6Rzgowska-Kurczaki.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel = ((System.Windows.Controls.ScrollViewer)(this.FindName("ContentPanel")));
     this.lista = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("lista")));
 }
Example #16
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/PsychicTest;component/View/Score.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.LstHighScore = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("LstHighScore")));
 }
Example #17
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Inviticus;component/Immunization.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.ImmunizationList = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("ImmunizationList")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/PCWINDOWS;component/UnitConverter.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ListHeader = ((System.Windows.Controls.TextBlock)(this.FindName("ListHeader")));
     this.StateListBox = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("StateListBox")));
 }
Example #19
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/MusicPlayer;component/PlayList/ListPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.pivot = ((Microsoft.Phone.Controls.Pivot)(this.FindName("pivot")));
     this.lls = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("lls")));
 }
Example #20
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/map-routing;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.MyMap = ((Microsoft.Phone.Maps.Controls.Map)(this.FindName("MyMap")));
     this.RouteLLS = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("RouteLLS")));
 }
Example #21
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Map%20Application%20With%20Google%20API;component/HomePage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.longlist = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("longlist")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/MyLocalPharmacy;component/View/HomePanorama.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.panoramaHeader = ((Microsoft.Phone.Controls.Panorama)(this.FindName("panoramaHeader")));
     this.longListSelectorState = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("longListSelectorState")));
 }
Example #23
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Inviticus;component/Settings.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.llsBabies = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("llsBabies")));
     this.changeAppBackground = ((System.Windows.Controls.Button)(this.FindName("changeAppBackground")));
 }
		public LongListSelectorOberserver(LongListSelector lls)
		{
			this.lls = lls;
			viewportControl = FindViewport(lls);
			lls.ItemRealized += LLS_ItemRealized;
			lls.ItemUnrealized += LLS_ItemUnrealized;
			//lls.ManipulationStateChanged += LLS_ManipulationStateChanged;
			//lls.ManipulationDelta +=lls_ManipulationDelta;
			//lls.MouseMove += listbox_MouseMove;
		}
Example #25
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/PocketSphinxWindowsPhoneDemo;component/PlaylistPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.AddrSong1 = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("AddrSong1")));
 }
Example #26
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/site2App.WP8;component/SharePage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.ListSelector = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("ListSelector")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Sci-Time;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.YearRange = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("YearRange")));
     this.recents = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("recents")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/PhoneToolkitSample;component/Samples/LongListSelectorSample.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.buddies = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("buddies")));
     this.linqMovies = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("linqMovies")));
     this.codeMovies = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("codeMovies")));
 }
Example #29
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/PanoramaApp;component/List.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ListHeader = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("ListHeader")));
     this.ListData = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("ListData")));
     this.InsideCartData = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("InsideCartData")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/attendance;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.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.ListItems = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("ListItems")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Appa;component/Report.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ReportPage = ((Microsoft.Phone.Controls.Pivot)(this.FindName("ReportPage")));
     this.OfferList = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("OfferList")));
     this.RedemptionList = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("RedemptionList")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/MusicPlayer;component/PlaylistInfoPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.playListName = ((System.Windows.Controls.TextBlock)(this.FindName("playListName")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.playListLls = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("playListLls")));
 }
Example #33
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/GetItDone;component/ToDoList.xaml", System.UriKind.Relative));
     this.ViewPage = ((Microsoft.Phone.Controls.PhoneApplicationPage)(this.FindName("ViewPage")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.BackButton = ((System.Windows.Controls.Button)(this.FindName("BackButton")));
     this.TaskListDisplay = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("TaskListDisplay")));
 }
Example #34
0
        /// <summary>
        /// Starts the tilt effect on LLS items or sticky header.
        /// </summary>
        private static void StartTiltEffectOnLLS(LongListSelector lls, ManipulationStartedEventArgs e)
        {
            FrameworkElement parent = (FrameworkElement)e.OriginalSource;

            ContentPresenter[] cps = new ContentPresenter[2];
            ContentPresenter   cp;
            int cpCount = 0;

            // Starts from OriginalSource and goes up to ViewportControl
            // while keeping trace of the last 2 ContentPresenter
            do
            {
                cp = parent as ContentPresenter;
                if (cp != null)
                {
                    cps[cpCount++ % 2] = cp;
                }

                parent = parent.GetVisualParent();
            }while (parent != lls && parent.GetType() != typeof(ViewportControl));

            // Makes sure we found a ViewportControl and at least 2 content presenters in our way.
            if (parent != lls && cpCount >= 2)
            {
                // The tilted element is the child of the ContentPresenter that is the farthest from ViewportControl.
                FrameworkElement element = cps[cpCount % 2].GetVisualChildren().FirstOrDefault() as FrameworkElement;

                // Starts tilt only if we found an element on which tilt is not suppressed.
                if (element != null)
                {
                    object suppressTilt = element.ReadLocalValue(SuppressTiltProperty);

                    if ((suppressTilt is bool) == false || (bool)suppressTilt == false)
                    {
                        FrameworkElement container = e.ManipulationContainer as FrameworkElement;

                        // Touch point relative to the element being tilted.
                        Point tiltTouchPoint = container.TransformToVisual(element).Transform(e.ManipulationOrigin);

                        // Center of the element being tilted.
                        Point elementCenter = new Point(element.ActualWidth / 2, element.ActualHeight / 2);

                        BeginTiltEffect(element, tiltTouchPoint, elementCenter, new Point(0, 0));
                    }
                }
            }
        }
        /// <summary>
        /// Gets the items that are currently in the viewport of a
        /// <see cref="T:LongListSelector" /> and adds them into a list of weak references.
        /// </summary>
        /// <param name="list">
        /// The LongListSelector instance to search on.
        /// </param>
        /// <param name="items">
        /// The list of weak references where the items in
        /// the viewport will be added.
        /// </param>
        public static void GetItemsInViewPort(this LongListSelector list, IList <WeakReference> items)
        {
            DependencyObject child = list;
            int childCount;

            childCount = VisualTreeHelper.GetChildrenCount(list);
            if (childCount == 0)
            {
                // no child yet
                return;
            }

            list.UpdateLayout();

            Canvas headersPanel;

            do
            {
                child        = VisualTreeHelper.GetChild(child, 0);
                childCount   = VisualTreeHelper.GetChildrenCount(child);
                headersPanel = child as Canvas;
            } while ((headersPanel == null) && childCount > 0);

            if (headersPanel != null &&
                childCount > 0)
            {
                Canvas itemsPanel = VisualTreeHelper.GetChild(headersPanel, 0) as Canvas;
                if (itemsPanel != null)
                {
                    var itemsInList = new List <KeyValuePair <double, FrameworkElement> >();

                    AddVisibileContainers(list, itemsPanel, itemsInList, /* selectContent = */ false);
                    AddVisibileContainers(list, headersPanel, itemsInList, /* selectContent = */ true);

                    foreach (var pair in itemsInList.OrderBy(selector => selector.Key))
                    {
                        items.Add(new WeakReference(pair.Value));
                    }
                }
            }
        }
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/wp-apache-index-formatter;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.ContentPanel        = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.uriStartText        = ((System.Windows.Controls.TextBlock)(this.FindName("uriStartText")));
     this.uriStartInput       = ((System.Windows.Controls.TextBox)(this.FindName("uriStartInput")));
     this.uriLabelText        = ((System.Windows.Controls.TextBlock)(this.FindName("uriLabelText")));
     this.uriStartSaveButton  = ((System.Windows.Controls.Button)(this.FindName("uriStartSaveButton")));
     this.uriSavedSuccessText = ((System.Windows.Controls.TextBlock)(this.FindName("uriSavedSuccessText")));
     this.loadingBar          = ((System.Windows.Controls.ProgressBar)(this.FindName("loadingBar")));
     this.loadingBarText      = ((System.Windows.Controls.TextBlock)(this.FindName("loadingBarText")));
     this.indexScroller       = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("indexScroller")));
     this.notApacheErrorText  = ((System.Windows.Controls.TextBlock)(this.FindName("notApacheErrorText")));
 }
Example #37
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/BloodType;component/MainPage.xaml", System.UriKind.Relative));
     this.PLayBubbles   = ((System.Windows.Media.Animation.Storyboard)(this.FindName("PLayBubbles")));
     this.LayoutRoot    = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.MainMenu      = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("MainMenu")));
     this.SettingsMenu  = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("SettingsMenu")));
     this.bolleke       = ((System.Windows.Shapes.Ellipse)(this.FindName("bolleke")));
     this.bolleke_Copy  = ((System.Windows.Shapes.Ellipse)(this.FindName("bolleke_Copy")));
     this.bolleke_Copy1 = ((System.Windows.Shapes.Ellipse)(this.FindName("bolleke_Copy1")));
     this.bolleke_Copy2 = ((System.Windows.Shapes.Ellipse)(this.FindName("bolleke_Copy2")));
     this.bolleke_Copy3 = ((System.Windows.Shapes.Ellipse)(this.FindName("bolleke_Copy3")));
     this.bolleke_Copy4 = ((System.Windows.Shapes.Ellipse)(this.FindName("bolleke_Copy4")));
     this.bolleke_Copy5 = ((System.Windows.Shapes.Ellipse)(this.FindName("bolleke_Copy5")));
     this.bolleke_Copy6 = ((System.Windows.Shapes.Ellipse)(this.FindName("bolleke_Copy6")));
     this.bolleke_Copy7 = ((System.Windows.Shapes.Ellipse)(this.FindName("bolleke_Copy7")));
 }
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/MyBookList;component/DetailsPage.xaml", System.UriKind.Relative));
     this.LayoutRoot            = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel            = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.ContentPanel          = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.bookInfoPivot         = ((Microsoft.Phone.Controls.Pivot)(this.FindName("bookInfoPivot")));
     this.detailsPivot          = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("detailsPivot")));
     this.titleText             = ((System.Windows.Controls.TextBox)(this.FindName("titleText")));
     this.authorText            = ((System.Windows.Controls.TextBox)(this.FindName("authorText")));
     this.notePivot             = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("notePivot")));
     this.NotesLongListSelector = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("NotesLongListSelector")));
     this.popupNote             = ((System.Windows.Controls.Primitives.Popup)(this.FindName("popupNote")));
     this.noteText     = ((System.Windows.Controls.TextBox)(this.FindName("noteText")));
     this.addButton    = ((System.Windows.Controls.Button)(this.FindName("addButton")));
     this.cancelButton = ((System.Windows.Controls.Button)(this.FindName("cancelButton")));
 }
Example #39
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/NewTask;component/MainPage.xaml", System.UriKind.Relative));
     this.textscrolling        = ((System.Windows.Media.Animation.Storyboard)(this.FindName("textscrolling")));
     this.ScrollStoryboard     = ((System.Windows.Media.Animation.Storyboard)(this.FindName("ScrollStoryboard")));
     this.AnimationH           = ((System.Windows.Media.Animation.DoubleAnimation)(this.FindName("AnimationH")));
     this.AnimationV           = ((System.Windows.Media.Animation.DoubleAnimation)(this.FindName("AnimationV")));
     this.LayoutRoot           = ((System.Windows.Controls.StackPanel)(this.FindName("LayoutRoot")));
     this.newTaskForm          = ((System.Windows.Controls.Grid)(this.FindName("newTaskForm")));
     this.taskBox              = ((System.Windows.Controls.TextBox)(this.FindName("taskBox")));
     this.makeTaskToggle       = ((System.Windows.Controls.Primitives.ToggleButton)(this.FindName("makeTaskToggle")));
     this.MainLongListSelector = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("MainLongListSelector")));
     this.menuPanel            = ((System.Windows.Controls.StackPanel)(this.FindName("menuPanel")));
     this.TitleBlock           = ((System.Windows.Controls.TextBlock)(this.FindName("TitleBlock")));
     this.TitleBlockRectangle  = ((System.Windows.Shapes.Rectangle)(this.FindName("TitleBlockRectangle")));
     this.menuOptions          = ((System.Windows.Controls.Grid)(this.FindName("menuOptions")));
     this.upArrowLeft          = ((System.Windows.Controls.Image)(this.FindName("upArrowLeft")));
     this.upArrowRight         = ((System.Windows.Controls.Image)(this.FindName("upArrowRight")));
     this.downArrowLeft        = ((System.Windows.Controls.Image)(this.FindName("downArrowLeft")));
     this.downArrowRight       = ((System.Windows.Controls.Image)(this.FindName("downArrowRight")));
     this.upArrowLeftlight     = ((System.Windows.Controls.Image)(this.FindName("upArrowLeftlight")));
     this.upArrowRightlight    = ((System.Windows.Controls.Image)(this.FindName("upArrowRightlight")));
     this.downArrowLeftlight   = ((System.Windows.Controls.Image)(this.FindName("downArrowLeftlight")));
     this.downArrowRightlight  = ((System.Windows.Controls.Image)(this.FindName("downArrowRightlight")));
     this.PurchaseIconLight    = ((System.Windows.Controls.Image)(this.FindName("PurchaseIconLight")));
     this.PurchaseIconDark     = ((System.Windows.Controls.Image)(this.FindName("PurchaseIconDark")));
     this.reviewLight          = ((System.Windows.Controls.Image)(this.FindName("reviewLight")));
     this.reviewDark           = ((System.Windows.Controls.Image)(this.FindName("reviewDark")));
     this.shareLight           = ((System.Windows.Controls.Image)(this.FindName("shareLight")));
     this.shareDark            = ((System.Windows.Controls.Image)(this.FindName("shareDark")));
     this.iTchyBanditBlock     = ((System.Windows.Controls.TextBlock)(this.FindName("iTchyBanditBlock")));
     this.pinTileButton        = ((System.Windows.Controls.Button)(this.FindName("pinTileButton")));
 }
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/TareaPDMfinal;component/Pivotes/Encargados/PivotEncargadoUpdate.xaml", System.UriKind.Relative));
     this.LayoutRoot      = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.pivotPrincipal  = ((Microsoft.Phone.Controls.Pivot)(this.FindName("pivotPrincipal")));
     this.itemUpdate      = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("itemUpdate")));
     this.editCodigo      = ((System.Windows.Controls.TextBox)(this.FindName("editCodigo")));
     this.editNombre      = ((System.Windows.Controls.TextBox)(this.FindName("editNombre")));
     this.editApellido    = ((System.Windows.Controls.TextBox)(this.FindName("editApellido")));
     this.editCorreo      = ((System.Windows.Controls.TextBox)(this.FindName("editCorreo")));
     this.radioHombre     = ((System.Windows.Controls.RadioButton)(this.FindName("radioHombre")));
     this.radioMujer      = ((System.Windows.Controls.RadioButton)(this.FindName("radioMujer")));
     this.btnUpdate       = ((System.Windows.Controls.Button)(this.FindName("btnUpdate")));
     this.btnLimpiar      = ((System.Windows.Controls.Button)(this.FindName("btnLimpiar")));
     this.txtResultado    = ((System.Windows.Controls.TextBlock)(this.FindName("txtResultado")));
     this.btnMenu         = ((System.Windows.Controls.Button)(this.FindName("btnMenu")));
     this.listaEncargados = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("listaEncargados")));
 }
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Scrumboard;component/Views/Main/BoardPage.xaml", System.UriKind.Relative));
     this.LayoutRoot           = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.StartPivot           = ((Microsoft.Phone.Controls.Pivot)(this.FindName("StartPivot")));
     this.Activities           = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("Activities")));
     this.Boards_Content       = ((System.Windows.Controls.Grid)(this.FindName("Boards_Content")));
     this.LoadingBoards        = ((System.Windows.Controls.ProgressBar)(this.FindName("LoadingBoards")));
     this.board_list           = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("board_list")));
     this.Members              = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("Members")));
     this.Notification_Content = ((System.Windows.Controls.Grid)(this.FindName("Notification_Content")));
     this.LoadingNotifications = ((System.Windows.Controls.ProgressBar)(this.FindName("LoadingNotifications")));
     this.notification_list    = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("notification_list")));
     this.Lists        = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("Lists")));
     this.Card_Content = ((System.Windows.Controls.Grid)(this.FindName("Card_Content")));
     this.LoadingCards = ((System.Windows.Controls.ProgressBar)(this.FindName("LoadingCards")));
     this.card_list    = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("card_list")));
 }
Example #42
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/TareaPDMfinal;component/Pivotes/Proyectos/PivotProyectoConsulta.xaml", System.UriKind.Relative));
     this.LayoutRoot     = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.pivotPrincipal = ((Microsoft.Phone.Controls.Pivot)(this.FindName("pivotPrincipal")));
     this.itemConsulta   = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("itemConsulta")));
     this.editCodigop    = ((System.Windows.Controls.TextBox)(this.FindName("editCodigop")));
     this.editCodigoe    = ((System.Windows.Controls.TextBox)(this.FindName("editCodigoe")));
     this.editEntidad    = ((System.Windows.Controls.TextBox)(this.FindName("editEntidad")));
     this.editTipo       = ((System.Windows.Controls.TextBox)(this.FindName("editTipo")));
     this.editNombrep    = ((System.Windows.Controls.TextBox)(this.FindName("editNombrep")));
     this.editCantidad   = ((System.Windows.Controls.TextBox)(this.FindName("editCantidad")));
     this.btnConsulta    = ((System.Windows.Controls.Button)(this.FindName("btnConsulta")));
     this.btnLimpiar     = ((System.Windows.Controls.Button)(this.FindName("btnLimpiar")));
     this.txtResultado   = ((System.Windows.Controls.TextBlock)(this.FindName("txtResultado")));
     this.btnMenu        = ((System.Windows.Controls.Button)(this.FindName("btnMenu")));
     this.listaProyectos = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("listaProyectos")));
 }
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Conversion%20App;component/ConversionSelectionPage.xaml", System.UriKind.Relative));
     this.LayoutRoot         = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.title              = ((System.Windows.Controls.TextBlock)(this.FindName("title")));
     this.lengthpivot        = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("lengthpivot")));
     this.lengthLeftList     = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("lengthLeftList")));
     this.lengthSubmitButton = ((System.Windows.Controls.Button)(this.FindName("lengthSubmitButton")));
     this.weightTopList      = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("weightTopList")));
     this.volumeList         = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("volumeList")));
     this.dataList           = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("dataList")));
     this.temperatureList    = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("temperatureList")));
     this.cookingList        = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("cookingList")));
     this.truthBlock         = ((System.Windows.Controls.TextBlock)(this.FindName("truthBlock")));
     this.truthBlock2        = ((System.Windows.Controls.TextBlock)(this.FindName("truthBlock2")));
     this.truthBlock3        = ((System.Windows.Controls.TextBlock)(this.FindName("truthBlock3")));
     this.truthBlock4        = ((System.Windows.Controls.TextBlock)(this.FindName("truthBlock4")));
 }
Example #44
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/B4B.Phone;component/Views/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot           = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.remove               = ((System.Windows.Controls.Button)(this.FindName("remove")));
     this.ContentPanel         = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.MainLongListSelector = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("MainLongListSelector")));
     this.addForm              = ((System.Windows.Controls.Canvas)(this.FindName("addForm")));
     this.course               = ((System.Windows.Controls.TextBox)(this.FindName("course")));
     this.MWF        = ((System.Windows.Controls.RadioButton)(this.FindName("MWF")));
     this.TTh        = ((System.Windows.Controls.RadioButton)(this.FindName("TTh")));
     this.hour       = ((System.Windows.Controls.TextBox)(this.FindName("hour")));
     this.min        = ((System.Windows.Controls.TextBox)(this.FindName("min")));
     this.AM         = ((System.Windows.Controls.RadioButton)(this.FindName("AM")));
     this.PM         = ((System.Windows.Controls.RadioButton)(this.FindName("PM")));
     this.nextAssign = ((System.Windows.Controls.TextBox)(this.FindName("nextAssign")));
     this.currGrade  = ((System.Windows.Controls.TextBox)(this.FindName("currGrade")));
     this.error      = ((System.Windows.Controls.TextBlock)(this.FindName("error")));
 }
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Healthcare;component/GeneralResultPage.xaml", System.UriKind.Relative));
     this.rd01         = ((System.Windows.ResourceDictionary)(this.FindName("rd01")));
     this.LayoutRoot   = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TBPageTitle  = ((System.Windows.Documents.Run)(this.FindName("TBPageTitle")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.BD_TBFrame   = ((System.Windows.Controls.Border)(this.FindName("BD_TBFrame")));
     this.TBMainSearch = ((System.Windows.Controls.TextBox)(this.FindName("TBMainSearch")));
     this.BTNSearch    = ((System.Windows.Controls.Button)(this.FindName("BTNSearch")));
     this.SPFilter     = ((System.Windows.Controls.StackPanel)(this.FindName("SPFilter")));
     this.BTNFilter    = ((System.Windows.Controls.Button)(this.FindName("BTNFilter")));
     this.BTNFilter2   = ((System.Windows.Controls.Button)(this.FindName("BTNFilter2")));
     this.BTNFilter3   = ((System.Windows.Controls.Button)(this.FindName("BTNFilter3")));
     this.MsgBox       = ((Healthcare.MyUserControl.MsgBoxControl)(this.FindName("MsgBox")));
     this.LLSResult    = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("LLSResult")));
     this.BTNBack      = ((System.Windows.Controls.Button)(this.FindName("BTNBack")));
     this.BTNMore      = ((System.Windows.Controls.Button)(this.FindName("BTNMore")));
 }
Example #46
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Logic;component/MainPage.xaml", System.UriKind.Relative));
     this.AppEmail             = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("AppEmail")));
     this.AppRate              = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("AppRate")));
     this.AppMyApps            = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("AppMyApps")));
     this.AppMarker            = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("AppMarker")));
     this.LayoutRoot           = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.FonWhite             = ((System.Windows.Controls.Image)(this.FindName("FonWhite")));
     this.FonBlack             = ((System.Windows.Controls.Image)(this.FindName("FonBlack")));
     this.MainPivot            = ((Microsoft.Phone.Controls.Pivot)(this.FindName("MainPivot")));
     this.ContentPanel         = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.MainLongListSelector = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("MainLongListSelector")));
     this.SwitchTheme          = ((Microsoft.Phone.Controls.ToggleSwitch)(this.FindName("SwitchTheme")));
     this.SwitchSize           = ((Microsoft.Phone.Controls.ToggleSwitch)(this.FindName("SwitchSize")));
     this.SwitchBar            = ((Microsoft.Phone.Controls.ToggleSwitch)(this.FindName("SwitchBar")));
     this.SwitchFone           = ((Microsoft.Phone.Controls.ToggleSwitch)(this.FindName("SwitchFone")));
     this.AppName              = ((System.Windows.Controls.TextBlock)(this.FindName("AppName")));
 }
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/MyLocalPharmacy;component/View/HomePanorama.xaml", System.UriKind.Relative));
     this.LayoutRoot          = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.panoramaMenu        = ((Microsoft.Phone.Controls.Panorama)(this.FindName("panoramaMenu")));
     this.progressbarPharmacy = ((System.Windows.Controls.ProgressBar)(this.FindName("progressbarPharmacy")));
     this.PharmacyDetGrid     = ((System.Windows.Controls.Grid)(this.FindName("PharmacyDetGrid")));
     this.imgCall             = ((System.Windows.Controls.Image)(this.FindName("imgCall")));
     this.userControlCarousel = ((MyLocalPharmacy.CarouselControl.CarouselControl)(this.FindName("userControlCarousel")));
     this.popup                     = ((System.Windows.Controls.Primitives.Popup)(this.FindName("popup")));
     this.btnOk                     = ((System.Windows.Controls.Button)(this.FindName("btnOk")));
     this.popupRejected             = ((System.Windows.Controls.Primitives.Popup)(this.FindName("popupRejected")));
     this.btnRejectedOk             = ((System.Windows.Controls.Button)(this.FindName("btnRejectedOk")));
     this.tbkpharname               = ((System.Windows.Controls.TextBlock)(this.FindName("tbkpharname")));
     this.imggetdirec               = ((System.Windows.Controls.Image)(this.FindName("imggetdirec")));
     this.tbkdir                    = ((System.Windows.Controls.TextBlock)(this.FindName("tbkdir")));
     this.tbkadd1                   = ((System.Windows.Controls.TextBlock)(this.FindName("tbkadd1")));
     this.tbkadd2                   = ((System.Windows.Controls.TextBlock)(this.FindName("tbkadd2")));
     this.tbkadd3                   = ((System.Windows.Controls.TextBlock)(this.FindName("tbkadd3")));
     this.tbkpin                    = ((System.Windows.Controls.TextBlock)(this.FindName("tbkpin")));
     this.tbkPharmacist             = ((System.Windows.Controls.TextBlock)(this.FindName("tbkPharmacist")));
     this.tbkPharmacistName1        = ((System.Windows.Controls.TextBlock)(this.FindName("tbkPharmacistName1")));
     this.tbkPharmacistName2        = ((System.Windows.Controls.TextBlock)(this.FindName("tbkPharmacistName2")));
     this.tbkWebLink                = ((System.Windows.Controls.TextBlock)(this.FindName("tbkWebLink")));
     this.WeblinkGrid               = ((System.Windows.Controls.Grid)(this.FindName("WeblinkGrid")));
     this.imgWeb                    = ((System.Windows.Controls.Image)(this.FindName("imgWeb")));
     this.btnWebLinkValue           = ((System.Windows.Controls.Button)(this.FindName("btnWebLinkValue")));
     this.tbktwitterLink            = ((System.Windows.Controls.TextBlock)(this.FindName("tbktwitterLink")));
     this.tbktwitterLinkValue       = ((System.Windows.Controls.TextBlock)(this.FindName("tbktwitterLinkValue")));
     this.tbkfbLink                 = ((System.Windows.Controls.TextBlock)(this.FindName("tbkfbLink")));
     this.tbkfbLinkValue            = ((System.Windows.Controls.TextBlock)(this.FindName("tbkfbLinkValue")));
     this.tbkOpeningHours           = ((System.Windows.Controls.TextBlock)(this.FindName("tbkOpeningHours")));
     this.OpeningHrsList            = ((System.Windows.Controls.ListBox)(this.FindName("OpeningHrsList")));
     this.btnSurgeries              = ((System.Windows.Controls.Button)(this.FindName("btnSurgeries")));
     this.btndentists               = ((System.Windows.Controls.Button)(this.FindName("btndentists")));
     this.btnhospitals              = ((System.Windows.Controls.Button)(this.FindName("btnhospitals")));
     this.btnopticians              = ((System.Windows.Controls.Button)(this.FindName("btnopticians")));
     this.popupRemove               = ((System.Windows.Controls.Primitives.Popup)(this.FindName("popupRemove")));
     this.btnRemovePopupOk          = ((System.Windows.Controls.Button)(this.FindName("btnRemovePopupOk")));
     this.popupConfirm              = ((System.Windows.Controls.Primitives.Popup)(this.FindName("popupConfirm")));
     this.btnPopupcancel            = ((System.Windows.Controls.Button)(this.FindName("btnPopupcancel")));
     this.btnPopupOk                = ((System.Windows.Controls.Button)(this.FindName("btnPopupOk")));
     this.progressBarOrderRepeat    = ((System.Windows.Controls.ProgressBar)(this.FindName("progressBarOrderRepeat")));
     this.lbxOrders                 = ((System.Windows.Controls.ListBox)(this.FindName("lbxOrders")));
     this.gridPillsReminder         = ((System.Windows.Controls.Grid)(this.FindName("gridPillsReminder")));
     this.dMorning                  = ((System.Windows.Controls.TextBlock)(this.FindName("dMorning")));
     this.dAfternoon                = ((System.Windows.Controls.TextBlock)(this.FindName("dAfternoon")));
     this.dEvening                  = ((System.Windows.Controls.TextBlock)(this.FindName("dEvening")));
     this.dNight                    = ((System.Windows.Controls.TextBlock)(this.FindName("dNight")));
     this.Weekly                    = ((System.Windows.Controls.TextBlock)(this.FindName("Weekly")));
     this.Monthly                   = ((System.Windows.Controls.TextBlock)(this.FindName("Monthly")));
     this.E28Days                   = ((System.Windows.Controls.TextBlock)(this.FindName("E28Days")));
     this.progress                  = ((System.Windows.Controls.ProgressBar)(this.FindName("progress")));
     this.tbkNoInternet             = ((System.Windows.Controls.TextBlock)(this.FindName("tbkNoInternet")));
     this.conditionLeafletsLongList = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("conditionLeafletsLongList")));
 }
        /// <summary>
        /// Returns the set of weak references to the items
        /// that must be animated.
        /// </summary>
        /// <returns>
        /// A set of weak references to items sorted by their feathering index.
        /// </returns>
        private static IList <WeakReference> GetTargetsToAnimate()
        {
            List <WeakReference>  references;
            List <WeakReference>  targets = new List <WeakReference>();
            PhoneApplicationPage  page    = null;
            PhoneApplicationFrame frame   = Application.Current.RootVisual as PhoneApplicationFrame;

            if (frame != null)
            {
                page = frame.Content as PhoneApplicationPage;
            }

            if (page == null)
            {
                return(null);
            }

            if (!_pagesToReferences.TryGetValue(page, out references))
            {
                return(null);
            }

            foreach (WeakReference r in references)
            {
                FrameworkElement target = r.Target as FrameworkElement;

                // If target is null, skip.
                if (target == null)
                {
                    continue;
                }

                // If target is not on the screen, skip.
                if (!IsOnScreen(target))
                {
                    continue;
                }

                ListBox          listBox          = r.Target as ListBox;
                LongListSelector longListSelector = r.Target as LongListSelector;
                Pivot            pivot            = r.Target as Pivot;

                if (listBox != null)
                {
                    // If the target is a ListBox, feather its items individually.
                    ItemsControlExtensions.GetItemsInViewPort(listBox, targets);
                }
                else if (longListSelector != null)
                {
#if WP7
                    // If the target is a LongListSelector, feather its items individually.
                    ListBox child = TemplatedVisualTreeExtensions.GetFirstLogicalChildByType <ListBox>(longListSelector, false);

                    if (child != null)
                    {
                        ItemsControlExtensions.GetItemsInViewPort(child, targets);
                    }
#else
                    LongListSelectorExtensions.GetItemsInViewPort(longListSelector, targets);
#endif
                }
                else if (pivot != null)
                {
                    // If the target is a Pivot, feather the title and the headers individually.
                    ContentPresenter title = TemplatedVisualTreeExtensions.GetFirstLogicalChildByType <ContentPresenter>(pivot, false);

                    if (title != null)
                    {
                        targets.Add(new WeakReference(title));
                    }

                    PivotHeadersControl headers = TemplatedVisualTreeExtensions.GetFirstLogicalChildByType <PivotHeadersControl>(pivot, false);

                    if (headers != null)
                    {
                        targets.Add(new WeakReference(headers));
                    }
                }
                else
                {
                    // Else, feather the target as a whole.
                    targets.Add(r);
                }
            }

            return(targets);
        }
Example #49
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/ExampleSaveFaleDate;component/MainPage.xaml", System.UriKind.Relative));
     this.Storyboard1            = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Storyboard1")));
     this.Storyboard3            = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Storyboard3")));
     this.LayoutRoot             = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel           = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.gridZ                  = ((System.Windows.Controls.Grid)(this.FindName("gridZ")));
     this.tboxZ                  = ((System.Windows.Controls.TextBox)(this.FindName("tboxZ")));
     this.tbnom                  = ((System.Windows.Controls.TextBlock)(this.FindName("tbnom")));
     this.tbtext                 = ((System.Windows.Controls.TextBlock)(this.FindName("tbtext")));
     this.tbpoints               = ((System.Windows.Controls.TextBlock)(this.FindName("tbpoints")));
     this.tbok                   = ((System.Windows.Controls.TextBlock)(this.FindName("tbok")));
     this.btnZall                = ((System.Windows.Controls.Button)(this.FindName("btnZall")));
     this.star                   = ((System.Windows.Controls.Image)(this.FindName("star")));
     this.winPoints              = ((System.Windows.Controls.Image)(this.FindName("winPoints")));
     this.tip                    = ((System.Windows.Controls.Image)(this.FindName("tip")));
     this.tipText                = ((System.Windows.Controls.TextBlock)(this.FindName("tipText")));
     this.btn_back_gridAllz      = ((System.Windows.Controls.Image)(this.FindName("btn_back_gridAllz")));
     this.btGoBackToMenu         = ((System.Windows.Controls.Button)(this.FindName("btGoBackToMenu")));
     this.btBeginTips            = ((System.Windows.Controls.Button)(this.FindName("btBeginTips")));
     this.gridZall               = ((System.Windows.Controls.Grid)(this.FindName("gridZall")));
     this.canvasZ                = ((System.Windows.Controls.Canvas)(this.FindName("canvasZ")));
     this.btn1z_Copy1            = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy1")));
     this.btn1z_Copy2            = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy2")));
     this.btn1z_Copy3            = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy3")));
     this.btn1z_Copy4            = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy4")));
     this.btn1z_Copy5            = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy5")));
     this.btn1z_Copy6            = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy6")));
     this.btn1z_Copy7            = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy7")));
     this.btn1z_Copy8            = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy8")));
     this.btn1z_Copy9            = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy9")));
     this.btn1z_Copy10           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy10")));
     this.btn1z_Copy11           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy11")));
     this.btn1z_Copy12           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy12")));
     this.btn1z_Copy13           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy13")));
     this.btn1z_Copy14           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy14")));
     this.btn1z_Copy15           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy15")));
     this.btn1z_Copy16           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy16")));
     this.btn1z_Copy17           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy17")));
     this.btn1z_Copy18           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy18")));
     this.btn1z_Copy19           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy19")));
     this.btn1z_Copy20           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy20")));
     this.btn1z_Copy21           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy21")));
     this.btn1z_Copy22           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy22")));
     this.btn1z_Copy23           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy23")));
     this.btn1z_Copy24           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy24")));
     this.btn1z_Copy25           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy25")));
     this.btn1z_Copy26           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy26")));
     this.btn1z_Copy27           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy27")));
     this.btn1z_Copy28           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy28")));
     this.btn1z_Copy29           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy29")));
     this.btn1z_Copy30           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy30")));
     this.btn1z_Copy31           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy31")));
     this.btn1z_Copy32           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy32")));
     this.btn1z_Copy33           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy33")));
     this.btn1z_Copy34           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy34")));
     this.btn1z_Copy35           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy35")));
     this.btn1z_Copy36           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy36")));
     this.btn1z_Copy37           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy37")));
     this.btn1z_Copy38           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy38")));
     this.btn1z_Copy39           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy39")));
     this.btn1z_Copy40           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy40")));
     this.btn1z_Copy41           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy41")));
     this.btn1z_Copy42           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy42")));
     this.btn1z_Copy43           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy43")));
     this.btn1z_Copy44           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy44")));
     this.btn1z_Copy45           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy45")));
     this.btn1z_Copy46           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy46")));
     this.btn1z_Copy47           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy47")));
     this.btn1z_Copy48           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy48")));
     this.btn1z_Copy49           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy49")));
     this.btn1z_Copy50           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy50")));
     this.btn1z_Copy51           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy51")));
     this.btn1z_Copy52           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy52")));
     this.btn1z_Copy53           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy53")));
     this.btn1z_Copy54           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy54")));
     this.btn1z_Copy55           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy55")));
     this.btn1z_Copy56           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy56")));
     this.btn1z_Copy57           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy57")));
     this.btn1z_Copy58           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy58")));
     this.btn1z_Copy59           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy59")));
     this.btn1z_Copy60           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy60")));
     this.btn1z_Copy61           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy61")));
     this.btn1z_Copy62           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy62")));
     this.btn1z_Copy63           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy63")));
     this.btn1z_Copy64           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy64")));
     this.btn1z_Copy65           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy65")));
     this.btn1z_Copy66           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy66")));
     this.btn1z_Copy67           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy67")));
     this.btn1z_Copy68           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy68")));
     this.btn1z_Copy69           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy69")));
     this.btn1z_Copy70           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy70")));
     this.btn1z_Copy71           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy71")));
     this.btn1z_Copy72           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy72")));
     this.btn1z_Copy73           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy73")));
     this.btn1z_Copy74           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy74")));
     this.btn1z_Copy75           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy75")));
     this.btn1z_Copy76           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy76")));
     this.btn1z_Copy77           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy77")));
     this.btn1z_Copy78           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy78")));
     this.btn1z_Copy79           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy79")));
     this.btn1z_Copy80           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy80")));
     this.btn1z_Copy81           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy81")));
     this.btn1z_Copy82           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy82")));
     this.btn1z_Copy83           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy83")));
     this.btn1z_Copy84           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy84")));
     this.btn1z_Copy85           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy85")));
     this.btn1z_Copy86           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy86")));
     this.btn1z_Copy87           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy87")));
     this.btn1z_Copy88           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy88")));
     this.btn1z_Copy89           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy89")));
     this.btn1z_Copy90           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy90")));
     this.btn1z_Copy91           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy91")));
     this.btn1z_Copy92           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy92")));
     this.btn1z_Copy93           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy93")));
     this.btn1z_Copy94           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy94")));
     this.btn1z_Copy95           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy95")));
     this.btn1z_Copy96           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy96")));
     this.btn1z_Copy97           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy97")));
     this.btn1z_Copy98           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy98")));
     this.btn1z_Copy99           = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy99")));
     this.btn1z_Copy100          = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy100")));
     this.btn1z_Copy101          = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy101")));
     this.btn1z_Copy102          = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy102")));
     this.btn1z_Copy103          = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy103")));
     this.btn1z_Copy104          = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy104")));
     this.btn1z_Copy105          = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy105")));
     this.btn1z_Copy106          = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy106")));
     this.btn1z_Copy107          = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy107")));
     this.btn1z_Copy108          = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy108")));
     this.btn1z_Copy109          = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy109")));
     this.btn1z_Copy110          = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy110")));
     this.btn1z_Copy111          = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy111")));
     this.btn1z_Copy112          = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy112")));
     this.btn1z_Copy113          = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy113")));
     this.btn1z_Copy114          = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy114")));
     this.btn1z_Copy115          = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy115")));
     this.btn1z_Copy116          = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy116")));
     this.btn1z_Copy117          = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy117")));
     this.btn1z_Copy118          = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy118")));
     this.btn1z_Copy119          = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy119")));
     this.btn1z_Copy120          = ((System.Windows.Controls.Button)(this.FindName("btn1z_Copy120")));
     this.TitlePage              = ((System.Windows.Controls.TextBlock)(this.FindName("TitlePage")));
     this.gridGolovolom          = ((System.Windows.Controls.Grid)(this.FindName("gridGolovolom")));
     this.tbGolovolomkiZagolovok = ((System.Windows.Controls.TextBlock)(this.FindName("tbGolovolomkiZagolovok")));
     this.MyLongListG            = ((Microsoft.Phone.Controls.LongListSelector)(this.FindName("MyLongListG")));
     this.btnbackmenufrgol       = ((System.Windows.Controls.Button)(this.FindName("btnbackmenufrgol")));
     this.gridWin                = ((System.Windows.Controls.Grid)(this.FindName("gridWin")));
     this.starsPicters           = ((System.Windows.Controls.Image)(this.FindName("starsPicters")));
     this.winTextblock           = ((System.Windows.Controls.TextBlock)(this.FindName("winTextblock")));
     this.winTextblock1          = ((System.Windows.Controls.TextBlock)(this.FindName("winTextblock1")));
     this.btBackandNext          = ((System.Windows.Controls.Button)(this.FindName("btBackandNext")));
     this.gridFalse              = ((System.Windows.Controls.Grid)(this.FindName("gridFalse")));
     this.ImageFalse             = ((System.Windows.Controls.Image)(this.FindName("ImageFalse")));
     this.textblockFalse         = ((System.Windows.Controls.TextBlock)(this.FindName("textblockFalse")));
     this.textblockFalse2        = ((System.Windows.Controls.TextBlock)(this.FindName("textblockFalse2")));
     this.btnFalseandback        = ((System.Windows.Controls.Button)(this.FindName("btnFalseandback")));
     this.gridTF                 = ((System.Windows.Controls.Grid)(this.FindName("gridTF")));
     this.btnTFTrue              = ((System.Windows.Controls.Button)(this.FindName("btnTFTrue")));
     this.btnTFFalse             = ((System.Windows.Controls.Button)(this.FindName("btnTFFalse")));
     this.tbNumberAlligetion     = ((System.Windows.Controls.TextBlock)(this.FindName("tbNumberAlligetion")));
     this.tbTFnumberStar         = ((System.Windows.Controls.TextBlock)(this.FindName("tbTFnumberStar")));
     this.tbTFErrorAppot         = ((System.Windows.Controls.TextBlock)(this.FindName("tbTFErrorAppot")));
     this.tbTFTextQuest          = ((System.Windows.Controls.TextBlock)(this.FindName("tbTFTextQuest")));
     this.gridSetColor           = ((System.Windows.Controls.Grid)(this.FindName("gridSetColor")));
     this.btGreen1               = ((System.Windows.Controls.Button)(this.FindName("btGreen1")));
     this.btBlue1                = ((System.Windows.Controls.Button)(this.FindName("btBlue1")));
     this.btCrimson              = ((System.Windows.Controls.Button)(this.FindName("btCrimson")));
     this.btPink1                = ((System.Windows.Controls.Button)(this.FindName("btPink1")));
     this.btYelow1               = ((System.Windows.Controls.Button)(this.FindName("btYelow1")));
     this.btBlue2                = ((System.Windows.Controls.Button)(this.FindName("btBlue2")));
     this.btOrage                = ((System.Windows.Controls.Button)(this.FindName("btOrage")));
     this.btMauve                = ((System.Windows.Controls.Button)(this.FindName("btMauve")));
     this.btGreen2               = ((System.Windows.Controls.Button)(this.FindName("btGreen2")));
     this.btBrown                = ((System.Windows.Controls.Button)(this.FindName("btBrown")));
     this.btWhite                = ((System.Windows.Controls.Button)(this.FindName("btWhite")));
     this.btViolet               = ((System.Windows.Controls.Button)(this.FindName("btViolet")));
     this.gridGeneralMenu        = ((System.Windows.Controls.Grid)(this.FindName("gridGeneralMenu")));
     this.btGoToAllGolov         = ((System.Windows.Controls.Button)(this.FindName("btGoToAllGolov")));
     this.btGoToAllZag           = ((System.Windows.Controls.Button)(this.FindName("btGoToAllZag")));
     this.btGoToAllTF            = ((System.Windows.Controls.Button)(this.FindName("btGoToAllTF")));
     this.TileSetColors          = ((System.Windows.Controls.Image)(this.FindName("TileSetColors")));
     this.Like                   = ((System.Windows.Controls.Image)(this.FindName("Like")));
     this.btn_about              = ((System.Windows.Controls.Button)(this.FindName("btn_about")));
     this.gridTFCategory         = ((System.Windows.Controls.Grid)(this.FindName("gridTFCategory")));
     this.btnLiteratyra          = ((System.Windows.Controls.Button)(this.FindName("btnLiteratyra")));
     this.btnHistory             = ((System.Windows.Controls.Button)(this.FindName("btnHistory")));
     this.btnAutoCategory        = ((System.Windows.Controls.Button)(this.FindName("btnAutoCategory")));
     this.tbPointLitra           = ((System.Windows.Controls.TextBlock)(this.FindName("tbPointLitra")));
     this.tbPointAuto            = ((System.Windows.Controls.TextBlock)(this.FindName("tbPointAuto")));
     this.tbPointHistory         = ((System.Windows.Controls.TextBlock)(this.FindName("tbPointHistory")));
     this.btn_IT_Tehnolog        = ((System.Windows.Controls.Button)(this.FindName("btn_IT_Tehnolog")));
     this.btn_Earth              = ((System.Windows.Controls.Button)(this.FindName("btn_Earth")));
     this.btn_Sport              = ((System.Windows.Controls.Button)(this.FindName("btn_Sport")));
     this.tbPointTehnology       = ((System.Windows.Controls.TextBlock)(this.FindName("tbPointTehnology")));
     this.tbPointEarth           = ((System.Windows.Controls.TextBlock)(this.FindName("tbPointEarth")));
     this.tbPointSports          = ((System.Windows.Controls.TextBlock)(this.FindName("tbPointSports")));
     this.gridTFWinAndAswer      = ((System.Windows.Controls.Grid)(this.FindName("gridTFWinAndAswer")));
     this.tbInputTrueAns         = ((System.Windows.Controls.TextBlock)(this.FindName("tbInputTrueAns")));
     this.tbTans                 = ((System.Windows.Controls.TextBlock)(this.FindName("tbTans")));
     this.gridTFErorrAnswer      = ((System.Windows.Controls.Grid)(this.FindName("gridTFErorrAnswer")));
     this.tbInputTrueAns1        = ((System.Windows.Controls.TextBlock)(this.FindName("tbInputTrueAns1")));
     this.tb2Tans                = ((System.Windows.Controls.TextBlock)(this.FindName("tb2Tans")));
     this.TFbtnGrSad             = ((System.Windows.Controls.Button)(this.FindName("TFbtnGrSad")));
     this.gridTotalTFLose        = ((System.Windows.Controls.Grid)(this.FindName("gridTotalTFLose")));
     this.gridTotalTFWin         = ((System.Windows.Controls.Grid)(this.FindName("gridTotalTFWin")));
     this.tbEnterKolichestvoStar = ((System.Windows.Controls.TextBlock)(this.FindName("tbEnterKolichestvoStar")));
     this.gridGolovolomInput     = ((System.Windows.Controls.Grid)(this.FindName("gridGolovolomInput")));
     this.tbGolovolomka          = ((System.Windows.Controls.TextBlock)(this.FindName("tbGolovolomka")));
     this.tbGolovolomTitul       = ((System.Windows.Controls.TextBlock)(this.FindName("tbGolovolomTitul")));
     this.btGolback              = ((System.Windows.Controls.Button)(this.FindName("btGolback")));
     this.btGolnext              = ((System.Windows.Controls.Button)(this.FindName("btGolnext")));
     this.gridGlmkuHelp          = ((System.Windows.Controls.Grid)(this.FindName("gridGlmkuHelp")));
     this.tbGmkuTrueAnswer       = ((System.Windows.Controls.TextBlock)(this.FindName("tbGmkuTrueAnswer")));
     this.tbStarsNumber          = ((System.Windows.Controls.TextBlock)(this.FindName("tbStarsNumber")));
     this.gridAbout              = ((System.Windows.Controls.Grid)(this.FindName("gridAbout")));
     this.btnbackmenu            = ((System.Windows.Controls.Button)(this.FindName("btnbackmenu")));
 }
 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")));
 }