private void _SizeChanged(object sender, SizeChangedEventArgs e)
        {
            double num = base.ActualWidth - 70.0;

            foreach (UIElement element in this.List.Children)
            {
                if (element is BACAClient.UserControls.Controls.FrontDesk.RapidRetrieval)
                {
                    BACAClient.UserControls.Controls.FrontDesk.RapidRetrieval retrieval = (BACAClient.UserControls.Controls.FrontDesk.RapidRetrieval)element;
                    retrieval.Width = num;
                }
            }
            foreach (UIElement element2 in this.Page1.Children)
            {
                if (element2 is BACAClient.UserControls.Controls.Page)
                {
                    BACAClient.UserControls.Controls.Page page = (BACAClient.UserControls.Controls.Page)element2;
                    page.Width = num;
                }
            }
            foreach (UIElement element3 in this.Page2.Children)
            {
                if (element3 is BACAClient.UserControls.Controls.Page)
                {
                    BACAClient.UserControls.Controls.Page page2 = (BACAClient.UserControls.Controls.Page)element3;
                    page2.Width = num;
                }
            }
        }
Exemple #2
0
        public void BindPageControl(int i, int PageCount, int type)
        {
            Grid grid = this.Page1;

            if (type == 2)
            {
                grid = this.Page2;
            }
            BACAClient.UserControls.Controls.Page element = new BACAClient.UserControls.Controls.Page {
                HorizontalAlignment = HorizontalAlignment.Left,
                Width     = base.ActualWidth - 70.0,
                PageIndex = i,
                PageCount = PageCount
            };
            element.PagerIndexChanged += new BACAClient.UserControls.Controls.Page.ChangedEventHandler(this.PagerIndexChanged);
            grid.Children.Add(element);
        }