Inheritance: System.Windows.Controls.VirtualizingPanel, System.Windows.Controls.Primitives.IScrollInfo, IStackMeasure
Exemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\..\9_Special\PUSlideShow.xaml"
                ((Panuon.UI.PUSlideShow)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.UserControl_SizeChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.PART_STKMAIN = ((System.Windows.Controls.VirtualizingStackPanel)(target));
                return;

            case 3:
                this.PART_BTNLEFT = ((Panuon.UI.PUButton)(target));
                return;

            case 4:
                this.PART_BTNRIGHT = ((Panuon.UI.PUButton)(target));
                return;

            case 5:
                this.PART_INDICATOR = ((Panuon.UI.PUIndicator)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 2
0
 private void SelectedMove_MouseDown(object sender, MouseButtonEventArgs e)
 {
     if (((ContentPresenter)sender).Content == null) return;
       learnsetlist.SelectedItem = ((ContentPresenter)sender).Content;
       if (panel == null)
     panel = typeof(ItemsControl).InvokeMember("_itemsHost", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.GetField, null, learnsetlist, null) as VirtualizingStackPanel;
       if (panel != null)
     panel.SetVerticalOffset(panel.ScrollOwner.ScrollableHeight * learnsetlist.SelectedIndex / learnsetlist.Items.Count);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Causes the object to scroll into view.
 /// </summary>
 /// <param name="item">Object to scroll.</param>
 public void ScrollIntoView(object item)
 {
     if ((null != TemplateScrollViewer) && Items.Contains(item))
     {
         // If the element is virtualizing we have to scroll to the index of the element
         // we've selected. This will force the virtualizing panel to rerender the required
         // elements.
         Rect itemsHostRect;
         Rect listBoxItemRect;
         bool virtualizing = VirtualizingStackPanel.GetIsVirtualizing(this);
         if (!IsOnCurrentPage(item, out itemsHostRect, out listBoxItemRect))
         {
             if (IsVerticalOrientation())
             {
                 if (virtualizing)
                 {
                     this.TemplateScrollViewer.ScrollToVerticalOffset(SelectedIndex);
                     return;
                 }
                 // Scroll into view vertically (first make the right bound visible, then the left)
                 double verticalOffset = TemplateScrollViewer.VerticalOffset;
                 double verticalDelta  = 0;
                 if (itemsHostRect.Bottom < listBoxItemRect.Bottom)
                 {
                     verticalDelta   = listBoxItemRect.Bottom - itemsHostRect.Bottom;
                     verticalOffset += verticalDelta;
                 }
                 if (listBoxItemRect.Top - verticalDelta < itemsHostRect.Top)
                 {
                     verticalOffset -= itemsHostRect.Top - (listBoxItemRect.Top - verticalDelta);
                 }
                 TemplateScrollViewer.ScrollToVerticalOffset(verticalOffset);
             }
             else
             {
                 if (virtualizing)
                 {
                     this.TemplateScrollViewer.ScrollToHorizontalOffset(SelectedIndex);
                     return;
                 }
                 // Scroll into view horizontally (first make the bottom bound visible, then the top)
                 double horizontalOffset = TemplateScrollViewer.HorizontalOffset;
                 double horizontalDelta  = 0;
                 if (itemsHostRect.Right < listBoxItemRect.Right)
                 {
                     horizontalDelta   = listBoxItemRect.Right - itemsHostRect.Right;
                     horizontalOffset += horizontalDelta;
                 }
                 if (listBoxItemRect.Left - horizontalDelta < itemsHostRect.Left)
                 {
                     horizontalOffset -= itemsHostRect.Left - (listBoxItemRect.Left - horizontalDelta);
                 }
                 TemplateScrollViewer.ScrollToHorizontalOffset(horizontalOffset);
             }
         }
     }
 }
        /// <summary>
        /// Gets the items in view for a virtualizing list
        /// </summary>
        private static IEnumerable<FrameworkElement> GetItemsInView(this ItemsControl itemsControl, VirtualizingStackPanel vsp)
        {
            // iterate over each of the items in view
            int firstVisibleItem = (int)vsp.VerticalOffset;
            int visibleItemCount = (int)vsp.ViewportHeight;
            for (int index = firstVisibleItem; index <= firstVisibleItem + visibleItemCount + 3; index++)
            {
                var item = itemsControl.ItemContainerGenerator.ContainerFromIndex(index) as FrameworkElement;
                if (item == null)
                    continue;

                yield return item;
            }
        }
Exemplo n.º 5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Menu_list = ((System.Windows.Controls.VirtualizingStackPanel)(target));
                return;

            case 2:
                this.MenuModels_list = ((System.Windows.Controls.ListBox)(target));
                return;

            case 3:
                this.MenuMedia_list = ((System.Windows.Controls.ListBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 6
0
        private static void ResetScrolling(VirtualizingStackPanel element)
        {
            element.InvalidateMeasure(); 

            // Clear scrolling data.  Because of thrash (being disconnected & reconnected, &c...), we may 
            if (element.IsScrolling) 
            {
                element._scrollData.ClearLayout(); 
            }
        }
Exemplo n.º 7
0
 internal ScrollTracingInfo(ScrollTracer tracer, int depth, FrameworkElement owner, VirtualizingStackPanel parent, object parentItem, int itemIndex)
 {
     ScrollTracer = tracer;
     Depth = depth;
     Owner = owner;
     Parent = parent;
     ParentItem = parentItem;
     ItemIndex = itemIndex;
 }
Exemplo n.º 8
0
        /// <summary>
        /// Finish setting up the internal state, once the visual tree has been created
        /// </summary>
        void CompleteVisualSetup()
        {
            if (visualTreeCreated)
            return;

              // Hook the scrolling events of the scrollviewer, which will now be created
              HookScrollingEvents();

              // This only works if you have a virtualizing stack panel (ie, you are using binding with an item template)
              stackPanel = scrollViewer.GetVisualDescendents<VirtualizingStackPanel>(true).FirstOrDefault();
              if (stackPanel == null)
            throw new InvalidOperationException("LazyListBox can only be used with a virtualized list; are you missing an ItemTemplate?");

              visualTreeCreated = true;
        }
Exemplo n.º 9
0
 internal static void SetIgnoreMaxDesiredSize(VirtualizingStackPanel @this, bool value)
 {
     IgnoreMaxDesiredSizeProperty.SetValue(@this, value, null);
 }
Exemplo n.º 10
0
 internal static bool IsConfigured(VirtualizingStackPanel vsp)
 {
     ScrollTracingInfo sti = ScrollTracingInfoField.GetValue(vsp);
     return (sti != null);
 }
Exemplo n.º 11
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\UserControl2.xaml"
                ((ApplicatioStagez.UserControl2)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden
                return;

            case 2:

            #line 128 "..\..\UserControl2.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem1_Click);

            #line default
            #line hidden
                return;

            case 3:

            #line 130 "..\..\UserControl2.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 133 "..\..\UserControl2.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 137 "..\..\UserControl2.xaml"
                ((System.Windows.Controls.TabControl)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.TabControl_SelectionChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.button1 = ((System.Windows.Controls.Button)(target));

            #line 145 "..\..\UserControl2.xaml"
                this.button1.Click += new System.Windows.RoutedEventHandler(this.btn1_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.Button2 = ((System.Windows.Controls.Button)(target));

            #line 152 "..\..\UserControl2.xaml"
                this.Button2.Click += new System.Windows.RoutedEventHandler(this.btn2_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.Button5 = ((System.Windows.Controls.Button)(target));

            #line 159 "..\..\UserControl2.xaml"
                this.Button5.Click += new System.Windows.RoutedEventHandler(this.btn5_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.Button3 = ((System.Windows.Controls.Button)(target));

            #line 170 "..\..\UserControl2.xaml"
                this.Button3.Click += new System.Windows.RoutedEventHandler(this.btn3_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.Button4 = ((System.Windows.Controls.Button)(target));

            #line 177 "..\..\UserControl2.xaml"
                this.Button4.Click += new System.Windows.RoutedEventHandler(this.btn4_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.Button6 = ((System.Windows.Controls.Button)(target));

            #line 184 "..\..\UserControl2.xaml"
                this.Button6.Click += new System.Windows.RoutedEventHandler(this.btn6_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.cbuser = ((System.Windows.Controls.ComboBox)(target));

            #line 198 "..\..\UserControl2.xaml"
                this.cbuser.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged2);

            #line default
            #line hidden
                return;

            case 13:
                this.ListInfor = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 14:
                this.downgradeWind = ((System.Windows.Controls.Button)(target));

            #line 215 "..\..\UserControl2.xaml"
                this.downgradeWind.Click += new System.Windows.RoutedEventHandler(this.downgradeWind_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.Retirer = ((System.Windows.Controls.Button)(target));

            #line 216 "..\..\UserControl2.xaml"
                this.Retirer.Click += new System.Windows.RoutedEventHandler(this.Retirer_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.downgradeWind8 = ((System.Windows.Controls.Button)(target));

            #line 220 "..\..\UserControl2.xaml"
                this.downgradeWind8.Click += new System.Windows.RoutedEventHandler(this.downgradeWind8_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.Retirer8 = ((System.Windows.Controls.Button)(target));

            #line 221 "..\..\UserControl2.xaml"
                this.Retirer8.Click += new System.Windows.RoutedEventHandler(this.Retirer8_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.PCPU = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 19:
                this.Pram = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 20:
                this.OS = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 21:
                this.Proc = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 22:
                this.braw = ((System.Windows.Controls.VirtualizingStackPanel)(target));
                return;

            case 23:
                this.raam = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 24:
                this.idPro = ((System.Windows.Controls.Button)(target));

            #line 319 "..\..\UserControl2.xaml"
                this.idPro.Click += new System.Windows.RoutedEventHandler(this.idPRoduct_click);

            #line default
            #line hidden
                return;

            case 25:
                this.cbIp = ((System.Windows.Controls.ComboBox)(target));

            #line 328 "..\..\UserControl2.xaml"
                this.cbIp.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 26:
                this.pingPasserelle = ((System.Windows.Controls.Button)(target));

            #line 335 "..\..\UserControl2.xaml"
                this.pingPasserelle.Click += new System.Windows.RoutedEventHandler(this.pingPasse_click);

            #line default
            #line hidden
                return;

            case 27:
                this.ping = ((System.Windows.Controls.Button)(target));

            #line 337 "..\..\UserControl2.xaml"
                this.ping.Click += new System.Windows.RoutedEventHandler(this.ping_click);

            #line default
            #line hidden
                return;

            case 28:
                this.Ipconfig = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 29:
                this.ListImprimantes = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 30:
                this.hpMAJ = ((System.Windows.Controls.Button)(target));

            #line 368 "..\..\UserControl2.xaml"
                this.hpMAJ.Click += new System.Windows.RoutedEventHandler(this.uninstallHp);

            #line default
            #line hidden
                return;

            case 31:
                this.Listmpirmantes = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 12
0
            internal static void ConfigureTracing(VirtualizingStackPanel vsp,
                                            DependencyObject itemsOwner,
                                            object parentItem,
                                            ItemsControl itemsControl)
            {
                Debug.Assert(!IsConfigured(vsp));

                ScrollTracer tracer = null;

                if (itemsControl.Name == _targetName)
                {
                    SetTarget(itemsControl, overwriteExistingTarget:false);
                }

                ScrollTracingInfo sti = _nullInfo;  // default - do nothing

                if (parentItem == vsp)
                {
                    // top level VSP
                    if (itemsOwner == _target)
                    {
                        tracer = new ScrollTracer(itemsControl, vsp);
                    }

                    if (tracer != null)
                    {
                        sti = new ScrollTracingInfo(tracer, 0, itemsOwner as FrameworkElement, null, null, 0);
                    }
                }
                else
                {
                    // inner VSP

                    VirtualizingStackPanel parent = VisualTreeHelper.GetParent(itemsOwner) as VirtualizingStackPanel;
                    if (parent != null)
                    {
                        ScrollTracingInfo parentInfo = ScrollTracingInfoField.GetValue(parent);
                        if (parentInfo != null)
                        {
                            tracer = parentInfo.ScrollTracer;
                            if (tracer != null)
                            {
                                ItemContainerGenerator generator = parent.ItemContainerGenerator as ItemContainerGenerator;
                                int itemIndex = (generator != null) ? generator.IndexFromContainer(itemsOwner, returnLocalIndex:true) : -1;
                                sti = new ScrollTracingInfo(tracer, parentInfo.Depth + 1, itemsOwner as FrameworkElement, parent, parentItem, itemIndex);
                            }
                        }
                    }

                }

                ScrollTracingInfoField.SetValue(vsp, sti);
            }
Exemplo n.º 13
0
        //
        // Method Overrides
        //
        protected override Size MeasureOverride(Size constraint)
        {
            ItemsControl owner      = ItemsControl.GetItemsOwner(this);
            Size         measured   = new Size(0, 0);
            bool         invalidate = false;
            int          nvisible   = 0;
            int          beyond     = 0;
            int          index;

            if (Orientation == Orientation.Horizontal)
            {
                index = (int)HorizontalOffset;
            }
            else
            {
                index = (int)VerticalOffset;
            }

            // Ensure we always touch ItemContainerGenerator as by accessing this property
            // we hook up to some events on it.
            IItemContainerGenerator generator = ItemContainerGenerator;

            if (owner.Items.Count > 0)
            {
                GeneratorPosition start;
                int insertAt;

                Size childAvailable = constraint;
                if (CanHorizontallyScroll || Orientation == Orientation.Horizontal)
                {
                    childAvailable.Width = double.PositiveInfinity;
                }
                if (CanVerticallyScroll || Orientation == Orientation.Vertical)
                {
                    childAvailable.Height = double.PositiveInfinity;
                }

                // Next, prepare and measure the extents of our viewable items...
                start    = generator.GeneratorPositionFromIndex(index);
                insertAt = (start.Offset == 0) ? start.Index : start.Index + 1;

                using (generator.StartAt(start, GeneratorDirection.Forward, true)) {
                    bool isNewlyRealized;

                    for (int i = index; i < owner.Items.Count && beyond < 2; i++, insertAt++)
                    {
                        // Generate the child container
                        UIElement child = (UIElement)generator.GenerateNext(out isNewlyRealized);
                        if (isNewlyRealized || insertAt >= Children.Count || Children[insertAt] != child)
                        {
                            // Add newly created children to the panel
                            if (insertAt < Children.Count)
                            {
                                InsertInternalChild(insertAt, child);
                            }
                            else
                            {
                                AddInternalChild(child);
                            }

                            generator.PrepareItemContainer(child);
                        }

                        // Call Measure() on the child to both force layout and also so
                        // that we can figure out when to stop adding children (e.g. when
                        // we go beyond the viewable area)
                        child.Measure(childAvailable);
                        Size size = child.DesiredSize;
                        nvisible++;

                        if (Orientation == Orientation.Vertical)
                        {
                            measured.Width   = Math.Max(measured.Width, size.Width);
                            measured.Height += size.Height;

                            if (measured.Height > constraint.Height)
                            {
                                beyond++;
                            }
                        }
                        else
                        {
                            measured.Height = Math.Max(measured.Height, size.Height);
                            measured.Width += size.Width;

                            if (measured.Width > constraint.Width)
                            {
                                beyond++;
                            }
                        }
                    }
                }
            }

            VirtualizingStackPanel.SetIsVirtualizing(owner, true);
            // FIXME: this if-check is a workaround for a bug
            // exposed by NBC Olympics but should not normally be
            // here.
            if (nvisible > 0)
            {
                RemoveUnusedContainers(index, nvisible);
            }

            nvisible -= beyond;

            // Update our Extent and Viewport values
            if (Orientation == Orientation.Vertical)
            {
                if (ExtentHeight != owner.Items.Count)
                {
                    ExtentHeight = owner.Items.Count;
                    invalidate   = true;
                }

                if (ExtentWidth != measured.Width)
                {
                    ExtentWidth = measured.Width;
                    invalidate  = true;
                }

                if (ViewportHeight != nvisible)
                {
                    ViewportHeight = nvisible;
                    invalidate     = true;
                }

                if (ViewportWidth != constraint.Width)
                {
                    ViewportWidth = constraint.Width;
                    invalidate    = true;
                }
            }
            else
            {
                if (ExtentHeight != measured.Height)
                {
                    ExtentHeight = measured.Height;
                    invalidate   = true;
                }

                if (ExtentWidth != owner.Items.Count)
                {
                    ExtentWidth = owner.Items.Count;
                    invalidate  = true;
                }

                if (ViewportHeight != constraint.Height)
                {
                    ViewportHeight = constraint.Height;
                    invalidate     = true;
                }

                if (ViewportWidth != nvisible)
                {
                    ViewportWidth = nvisible;
                    invalidate    = true;
                }
            }

            if (invalidate && ScrollOwner != null)
            {
                ScrollOwner.InvalidateScrollInfo();
            }

            return(measured);
        }
Exemplo n.º 14
0
 internal static bool IsTracing(VirtualizingStackPanel vsp)
 {
     ScrollTracingInfo sti = ScrollTracingInfoField.GetValue(vsp);
     return (sti != null && sti.ScrollTracer != null);
 }
Exemplo n.º 15
0
            private void AddTrace(VirtualizingStackPanel vsp, ScrollTraceOp op, ScrollTracingInfo sti, params object[] args)
            {
                ScrollTraceRecord record = new ScrollTraceRecord(op, vsp, sti.Depth, sti.ItemIndex, _depth, BuildDetail(args));
                _traceList.Add(record);

                switch (op)
                {
                    default:
                        break;

                    case ScrollTraceOp.BeginMeasure:
                        Push();
                        break;

                    case ScrollTraceOp.EndMeasure:
                        Pop(record);
                        record.Snapshot = vsp.TakeSnapshot();
                        Flush(sti.Depth);
                        break;

                    case ScrollTraceOp.BeginArrange:
                        Push();
                        break;

                    case ScrollTraceOp.EndArrange:
                        Pop(record);
                        record.Snapshot = vsp.TakeSnapshot();
                        Flush(sti.Depth);
                        break;

                    case ScrollTraceOp.BSetAnchor:
                        Push();
                        break;

                    case ScrollTraceOp.ESetAnchor:
                        Pop(record);
                        break;

                    case ScrollTraceOp.BOnAnchor:
                        Push();
                        break;

                    case ScrollTraceOp.ROnAnchor:
                        Pop(record);
                        break;

                    case ScrollTraceOp.SOnAnchor:
                        Pop();
                        break;

                    case ScrollTraceOp.EOnAnchor:
                        Pop(record);
                        break;

                    case ScrollTraceOp.RecycleChildren:
                    case ScrollTraceOp.RemoveChildren:
                        record.RevirtualizedChildren = args[2] as List<String>;
                        break;
                }

                if (_flushDepth < 0)
                {
                    Flush(_flushDepth);
                }
            }
Exemplo n.º 16
0
            private void IdentifyTrace(ItemsControl ic, VirtualizingStackPanel vsp)
            {
                AddTrace(null, ScrollTraceOp.ID, _nullInfo,
                    DisplayType(ic),
                    "Items:", ic.Items.Count,
                    "Panel:", DisplayType(vsp));

                AddTrace(null, ScrollTraceOp.ID, _nullInfo,
                    "IsVirt:", VirtualizingPanel.GetIsVirtualizing(ic),
                    "IsVirtWhenGroup:", VirtualizingPanel.GetIsVirtualizingWhenGrouping(ic),
                    "VirtMode:", VirtualizingPanel.GetVirtualizationMode(ic),
                    "ScrollUnit:", VirtualizingPanel.GetScrollUnit(ic),
                    "CacheLen:", VirtualizingPanel.GetCacheLength(ic), VirtualizingPanel.GetCacheLengthUnit(ic));

                AddTrace(null, ScrollTraceOp.ID, _nullInfo,
                    "CanContentScroll:", ScrollViewer.GetCanContentScroll(ic),
                    "IsDeferredScrolling:", ScrollViewer.GetIsDeferredScrollingEnabled(ic),
                    "PanningMode:", ScrollViewer.GetPanningMode(ic),
                    "HSBVisibility:", ScrollViewer.GetHorizontalScrollBarVisibility(ic),
                    "VSBVisibility:", ScrollViewer.GetVerticalScrollBarVisibility(ic));

                DataGrid dg = ic as DataGrid;
                if (dg != null)
                {
                    AddTrace(null, ScrollTraceOp.ID, _nullInfo,
                        "EnableRowVirt:", dg.EnableRowVirtualization,
                        "EnableColVirt:", dg.EnableColumnVirtualization,
                        "Columns:", dg.Columns.Count,
                        "FrozenCols:", dg.FrozenColumnCount);
                }
            }
Exemplo n.º 17
0
            private ScrollTracer(ItemsControl itemsControl, VirtualizingStackPanel vsp)
            {
                itemsControl.LayoutUpdated += new EventHandler(OnLayoutUpdated);

                Application app = Application.Current;
                if (app != null)
                {
                    app.DispatcherUnhandledException -= OnUnhandledException;
                    app.DispatcherUnhandledException += OnUnhandledException;
                }

                // set up file output
                OpenTraceFile();

                // write identifying information to the file
                IdentifyTrace(itemsControl, vsp);
            }
Exemplo n.º 18
0
            internal static void Trace(VirtualizingStackPanel vsp, ScrollTraceOp op, params object[] args)
            {
                ScrollTracingInfo sti = ScrollTracingInfoField.GetValue(vsp);
                ScrollTracer tracer = sti.ScrollTracer;
                Debug.Assert(tracer != null, "Trace called when not tracing");

                if (ShouldIgnore(op, sti))
                    return;

                tracer.AddTrace(vsp, op, sti, args);
            }
Exemplo n.º 19
0
 internal ScrollTraceRecord(ScrollTraceOp op, VirtualizingStackPanel vsp,
     int vspDepth, int itemIndex, int opDepth, string detail)
 {
     Op = op;
     VSP = vsp;
     VDepth = vspDepth;
     ItemIndex = itemIndex;
     OpDepth = opDepth;
     Detail = detail;
 }
Exemplo n.º 20
0
            internal void Write(BinaryWriter writer, VirtualizingStackPanel vsp)
            {
                if (_scrollData == null)
                {
                    writer.Write(false);
                }
                else
                {
                    writer.Write(true);
                    WriteVector(writer, ref _scrollData._offset);
                    WriteSize(writer, ref _scrollData._extent);
                    WriteVector(writer, ref _scrollData._computedOffset);
                }

                writer.Write((byte)_boolFieldStore);
                writer.Write(!(_areContainersUniformlySized == false));
                writer.Write(_uniformOrAverageContainerSize.HasValue ? (double)_uniformOrAverageContainerSize : -1.0d);
                writer.Write(_firstItemInExtendedViewportChildIndex);
                writer.Write(_firstItemInExtendedViewportIndex);
                writer.Write(_firstItemInExtendedViewportOffset);
                writer.Write(_actualItemsInExtendedViewportCount);
                WriteRect(writer, ref _viewport);
                writer.Write(_itemsInExtendedViewportCount);
                WriteRect(writer, ref _extendedViewport);
                WriteSize(writer, ref _previousStackPixelSizeInViewport);
                WriteSize(writer, ref _previousStackLogicalSizeInViewport);
                WriteSize(writer, ref _previousStackPixelSizeInCacheBeforeViewport);
                writer.Write(vsp.ContainerPath(_firstContainerInViewport));
                writer.Write(_firstContainerOffsetFromViewport);
                writer.Write(_expectedDistanceBetweenViewports);
                writer.Write(vsp.ContainerPath(_bringIntoViewContainer));
                writer.Write(vsp.ContainerPath(_bringIntoViewLeafContainer));

                writer.Write(_realizedChildren.Count);
                for (int i=0; i<_realizedChildren.Count; ++i)
                {
                    ChildInfo ci = _realizedChildren[i];
                    writer.Write(ci._itemIndex);
                    WriteSize(writer, ref ci._desiredSize);
                    WriteRect(writer, ref ci._arrangeRect);
                    WriteThickness(writer, ref ci._inset);
                }
            }
Exemplo n.º 21
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\..\UserControl2.xaml"
                ((ApplicatioStagez.UserControl2)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden
                return;

            case 2:

            #line 135 "..\..\..\UserControl2.xaml"
                ((System.Windows.Controls.TabControl)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.TabControl_SelectionChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.button1 = ((System.Windows.Controls.Button)(target));

            #line 144 "..\..\..\UserControl2.xaml"
                this.button1.Click += new System.Windows.RoutedEventHandler(this.btn1_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.Button2 = ((System.Windows.Controls.Button)(target));

            #line 151 "..\..\..\UserControl2.xaml"
                this.Button2.Click += new System.Windows.RoutedEventHandler(this.btn2_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.Button5 = ((System.Windows.Controls.Button)(target));

            #line 158 "..\..\..\UserControl2.xaml"
                this.Button5.Click += new System.Windows.RoutedEventHandler(this.btn5_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.Button3 = ((System.Windows.Controls.Button)(target));

            #line 173 "..\..\..\UserControl2.xaml"
                this.Button3.Click += new System.Windows.RoutedEventHandler(this.btn3_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.Button4 = ((System.Windows.Controls.Button)(target));

            #line 180 "..\..\..\UserControl2.xaml"
                this.Button4.Click += new System.Windows.RoutedEventHandler(this.btn4_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.Button6 = ((System.Windows.Controls.Button)(target));

            #line 187 "..\..\..\UserControl2.xaml"
                this.Button6.Click += new System.Windows.RoutedEventHandler(this.btn6_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.cbuser = ((System.Windows.Controls.ComboBox)(target));

            #line 206 "..\..\..\UserControl2.xaml"
                this.cbuser.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged2);

            #line default
            #line hidden
                return;

            case 10:
                this.ListInfor = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.PCPU = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 12:
                this.Pram = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 13:
                this.OS = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 14:
                this.Proc = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 15:
                this.braw = ((System.Windows.Controls.VirtualizingStackPanel)(target));
                return;

            case 16:
                this.raam = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 17:
                this.cbIp = ((System.Windows.Controls.ComboBox)(target));

            #line 331 "..\..\..\UserControl2.xaml"
                this.cbIp.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 18:
                this.Ipconfig = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 22
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\MainWindow.xaml"
                ((Good_Teacher_Repairo.MainWindow)(target)).PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.MainWindow_KeyDown);

            #line default
            #line hidden

            #line 11 "..\..\MainWindow.xaml"
                ((Good_Teacher_Repairo.MainWindow)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.Window_SizeChanged);

            #line default
            #line hidden

            #line 11 "..\..\MainWindow.xaml"
                ((Good_Teacher_Repairo.MainWindow)(target)).PreviewMouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.Window_PreviewMouseWheel);

            #line default
            #line hidden
                return;

            case 2:
                this.MainWindow_Border = ((System.Windows.Controls.Border)(target));
                return;

            case 3:
                this.HeaderLine = ((System.Windows.Controls.Grid)(target));

            #line 33 "..\..\MainWindow.xaml"
                this.HeaderLine.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.HeaderLine_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 33 "..\..\MainWindow.xaml"
                this.HeaderLine.MouseMove += new System.Windows.Input.MouseEventHandler(this.HeaderLine_MouseMove);

            #line default
            #line hidden
                return;

            case 4:
                this.QuitButton = ((System.Windows.Controls.Button)(target));

            #line 38 "..\..\MainWindow.xaml"
                this.QuitButton.Click += new System.Windows.RoutedEventHandler(this.QuitButton_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.MaximizeButton = ((System.Windows.Controls.Button)(target));

            #line 81 "..\..\MainWindow.xaml"
                this.MaximizeButton.Click += new System.Windows.RoutedEventHandler(this.MaximizeButton_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.MinimizeButton = ((System.Windows.Controls.Button)(target));

            #line 124 "..\..\MainWindow.xaml"
                this.MinimizeButton.Click += new System.Windows.RoutedEventHandler(this.MinimizeButton_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.L_FileName = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.Toolbar_Main = ((System.Windows.Controls.ToolBar)(target));
                return;

            case 9:
                this.MenuItem_Open = ((System.Windows.Controls.MenuItem)(target));

            #line 181 "..\..\MainWindow.xaml"
                this.MenuItem_Open.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Open_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.MenuItem_Save = ((System.Windows.Controls.MenuItem)(target));

            #line 188 "..\..\MainWindow.xaml"
                this.MenuItem_Save.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Save_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.MenuItem_SaveAs = ((System.Windows.Controls.MenuItem)(target));

            #line 193 "..\..\MainWindow.xaml"
                this.MenuItem_SaveAs.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Save_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.MenuItem_Print = ((System.Windows.Controls.MenuItem)(target));

            #line 197 "..\..\MainWindow.xaml"
                this.MenuItem_Print.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Print_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.MenuItem_Export = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 14:

            #line 219 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportToImage_Click);

            #line default
            #line hidden
                return;

            case 15:

            #line 224 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportToImage_Click);

            #line default
            #line hidden
                return;

            case 16:

            #line 235 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportToImage_Click);

            #line default
            #line hidden
                return;

            case 17:

            #line 240 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportToImage_Click);

            #line default
            #line hidden
                return;

            case 18:

            #line 249 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemExportToPDF_Click);

            #line default
            #line hidden
                return;

            case 19:

            #line 255 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportToImage_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.MenuItem_Close = ((System.Windows.Controls.MenuItem)(target));

            #line 264 "..\..\MainWindow.xaml"
                this.MenuItem_Close.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Close_Click);

            #line default
            #line hidden
                return;

            case 21:

            #line 276 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_View_Click);

            #line default
            #line hidden
                return;

            case 22:

            #line 284 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Info_Click);

            #line default
            #line hidden
                return;

            case 23:

            #line 292 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Answer_Click);

            #line default
            #line hidden
                return;

            case 24:

            #line 306 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.AppSettings_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.MenuItem_About = ((System.Windows.Controls.MenuItem)(target));

            #line 316 "..\..\MainWindow.xaml"
                this.MenuItem_About.Click += new System.Windows.RoutedEventHandler(this.MenuItem_About_Click);

            #line default
            #line hidden
                return;

            case 26:

            #line 318 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.CheckForUpdates_Click);

            #line default
            #line hidden
                return;

            case 27:

            #line 329 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.RunGoodTeacher_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.ScrollViewer_TestList = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 29:
                this.Stack_TestList = ((System.Windows.Controls.VirtualizingStackPanel)(target));
                return;

            case 30:

            #line 383 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Open_Click);

            #line default
            #line hidden
                return;

            case 31:

            #line 395 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Answer_Click);

            #line default
            #line hidden
                return;

            case 32:

            #line 407 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_View_Click);

            #line default
            #line hidden
                return;

            case 33:
                this.Item_Export = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 34:

            #line 437 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportToImage_Click);

            #line default
            #line hidden
                return;

            case 35:

            #line 442 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportToImage_Click);

            #line default
            #line hidden
                return;

            case 36:

            #line 453 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportToImage_Click);

            #line default
            #line hidden
                return;

            case 37:

            #line 458 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportToImage_Click);

            #line default
            #line hidden
                return;

            case 38:

            #line 467 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemExportToPDF_Click);

            #line default
            #line hidden
                return;

            case 39:

            #line 473 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportToImage_Click);

            #line default
            #line hidden
                return;

            case 40:

            #line 483 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Print_Click);

            #line default
            #line hidden
                return;

            case 41:

            #line 496 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Info_Click);

            #line default
            #line hidden
                return;

            case 42:
                this.Rect_BackColor = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 43:

            #line 519 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonColor_Click);

            #line default
            #line hidden
                return;

            case 44:
                this.CB_PaintSize = ((System.Windows.Controls.ComboBox)(target));

            #line 523 "..\..\MainWindow.xaml"
                this.CB_PaintSize.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CB_PaintSize_SelectionChanged);

            #line default
            #line hidden
                return;

            case 45:
                this.Button_Cursor = ((Good_Teacher.Controls.SelectButton)(target));

            #line 552 "..\..\MainWindow.xaml"
                this.Button_Cursor.OnCheckChanged += new Good_Teacher.Controls.SelectButton.CheckedChanged(this.Button_Cursor_OnCheckChanged);

            #line default
            #line hidden
                return;

            case 46:
                this.Button_Draw = ((Good_Teacher.Controls.SelectButton)(target));

            #line 553 "..\..\MainWindow.xaml"
                this.Button_Draw.OnCheckChanged += new Good_Teacher.Controls.SelectButton.CheckedChanged(this.Button_Draw_OnCheckChanged);

            #line default
            #line hidden
                return;

            case 47:
                this.Button_Eraser = ((Good_Teacher.Controls.SelectButton)(target));

            #line 554 "..\..\MainWindow.xaml"
                this.Button_Eraser.OnCheckChanged += new Good_Teacher.Controls.SelectButton.CheckedChanged(this.Button_Eraser_OnCheckChanged);

            #line default
            #line hidden
                return;

            case 48:
                this.Button_EraseAll = ((Good_Teacher.Controls.FlatButton)(target));

            #line 557 "..\..\MainWindow.xaml"
                this.Button_EraseAll.Click += new Good_Teacher.Controls.FlatButton.OnClick(this.Button_EraseAll_Click);

            #line default
            #line hidden
                return;

            case 49:
                this.ControlInputPanel = ((System.Windows.Controls.VirtualizingStackPanel)(target));
                return;

            case 50:
                this.ScrollViewerZoom = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 51:
                this.viewboxDC = ((System.Windows.Controls.Viewbox)(target));
                return;

            case 52:
                this.BorderWindowSize = ((System.Windows.Controls.Border)(target));
                return;

            case 53:
                this.DesignCanvas = ((System.Windows.Controls.InkCanvas)(target));
                return;

            case 54:
                this.SliderZoom = ((System.Windows.Controls.Slider)(target));

            #line 599 "..\..\MainWindow.xaml"
                this.SliderZoom.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.SliderZoom_ValueChanged);

            #line default
            #line hidden
                return;

            case 55:
                this.TextBox_Zoom = ((System.Windows.Controls.TextBox)(target));

            #line 600 "..\..\MainWindow.xaml"
                this.TextBox_Zoom.LostFocus += new System.Windows.RoutedEventHandler(this.TB_Zoom_LostFocus);

            #line default
            #line hidden

            #line 600 "..\..\MainWindow.xaml"
                this.TextBox_Zoom.KeyDown += new System.Windows.Input.KeyEventHandler(this.TB_Zoom_KeyDown);

            #line default
            #line hidden
                return;

            case 56:

            #line 601 "..\..\MainWindow.xaml"
                ((Good_Teacher.Controls.FlatButton)(target)).Click += new Good_Teacher.Controls.FlatButton.OnClick(this.FlatButtonZoomCancel_Click);

            #line default
            #line hidden
                return;

            case 57:
                this.Notification = ((System.Windows.Controls.Border)(target));
                return;

            case 58:
                this.NotificationLabel = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 23
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.datePicker = ((Panuon.UI.PUDatePicker)(target));
                return;

            case 2:
                this.GrdDate = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.BtnDecYear = ((Panuon.UI.PUButton)(target));
                return;

            case 4:
                this.BtnDecMonth = ((Panuon.UI.PUButton)(target));
                return;

            case 5:
                this.BtnAddMonth = ((Panuon.UI.PUButton)(target));
                return;

            case 6:
                this.BtnAddYear = ((Panuon.UI.PUButton)(target));
                return;

            case 7:
                this.BtnTitleLeft = ((Panuon.UI.PUButton)(target));
                return;

            case 8:
                this.BtnTitleRight = ((Panuon.UI.PUButton)(target));
                return;

            case 9:
                this.GrdDatePanel = ((System.Windows.Controls.Grid)(target));
                return;

            case 10:
                this.GrdTime = ((System.Windows.Controls.Grid)(target));
                return;

            case 11:
                this.BtnBack = ((Panuon.UI.PUButton)(target));
                return;

            case 12:
                this.ScrollHour = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 13:
                this.StkHour = ((System.Windows.Controls.VirtualizingStackPanel)(target));
                return;

            case 14:
                this.ScrollMinute = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 15:
                this.StkMinute = ((System.Windows.Controls.VirtualizingStackPanel)(target));
                return;

            case 16:
                this.ScrollSecond = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 17:
                this.StkSecond = ((System.Windows.Controls.VirtualizingStackPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 24
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.VPanel_Repeaters = ((System.Windows.Controls.VirtualizingStackPanel)(target));
                return;

            case 2:
                this.TypeLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.SP_EditName = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 4:
                this.TBL_EditName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.TB_Name = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.LB_IgnorePages = ((System.Windows.Controls.ListBox)(target));
                return;

            case 7:
                this.NTB_Page = ((Good_Teacher.Controls.NumberBox)(target));
                return;

            case 8:

            #line 68 "..\..\..\..\Windows\Special\Window_Repeating.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_AddToList);

            #line default
            #line hidden
                return;

            case 9:

            #line 69 "..\..\..\..\Windows\Special\Window_Repeating.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_RemoveFromList);

            #line default
            #line hidden
                return;

            case 10:
                this.R_DefaultCanvas = ((System.Windows.Controls.Border)(target));
                return;

            case 11:
                this.CanvasShow = ((System.Windows.Controls.Canvas)(target));
                return;

            case 12:
                this.SCV_ContentViewer = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 13:
                this.ShowContentViewer = ((Good_Teacher.Controls.ContentViewer)(target));
                return;

            case 14:
                this.CVEditor = ((System.Windows.Controls.Frame)(target));
                return;

            case 15:
                this.B_Edit = ((System.Windows.Controls.Button)(target));

            #line 106 "..\..\..\..\Windows\Special\Window_Repeating.xaml"
                this.B_Edit.Click += new System.Windows.RoutedEventHandler(this.ButtonEdit_Click);

            #line default
            #line hidden
                return;

            case 16:

            #line 108 "..\..\..\..\Windows\Special\Window_Repeating.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }