Ejemplo n.º 1
0
 protected override Size MeasureOverride(Size availableSize)
 {
     child.Measure(new Size(double.PositiveInfinity, availableSize.Height));
     if (child.DesiredSize.Width > 0)
     {
         ListView lv = FindListView();
         if (lv != null)
         {
             CustomGridView cgv = lv.View as CustomGridView;
             if (cgv != null)
             {
                 cgv.MaxDesiredWidth = Math.Max(cgv.MaxDesiredWidth, child.DesiredSize.Width + 16);
             }
         }
     }
     return(child.DesiredSize);
 }
Ejemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.queryView = ((ICSharpCode.Profiler.Controls.QueryView)(target));
                return;

            case 2:
                this.treeView = ((ICSharpCode.Profiler.Controls.TreeListView)(target));
                return;

            case 3:
                this.gridView = ((ICSharpCode.Profiler.Controls.CustomGridView)(target));
                return;

            case 4:
                this.nameColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 5:
                this.callCountColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 6:
                this.timeSpentColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 7:
                this.timeSpentSelfColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 8:
                this.timeSpentPerCallColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 9:
                this.timeSpentSelfPerCallColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 10:
                this.percentColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 11:
                this.txtSearch = ((System.Windows.Controls.TextBox)(target));

            #line 336 "..\..\QueryView.xaml"
                this.txtSearch.KeyDown += new System.Windows.Input.KeyEventHandler(this.txtSearchKeyDown);

            #line default
            #line hidden
                return;

            case 12:
                this.btnExpandHotPathSubtree = ((System.Windows.Controls.Button)(target));

            #line 338 "..\..\QueryView.xaml"
                this.btnExpandHotPathSubtree.Click += new System.Windows.RoutedEventHandler(this.BtnExpandHotPathSubtreeClick);

            #line default
            #line hidden
                return;

            case 13:
                this.visibleColumnsSelection = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 14:
                this.queryPanel = ((System.Windows.Controls.DockPanel)(target));
                return;

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

            #line 348 "..\..\QueryView.xaml"
                this.btnExecuteQuery.Click += new System.Windows.RoutedEventHandler(this.btnExecuteQueryClick);

            #line default
            #line hidden
                return;

            case 16:
                this.txtQuery = ((System.Windows.Controls.TextBox)(target));

            #line 349 "..\..\QueryView.xaml"
                this.txtQuery.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtQueryTextChanged);

            #line default
            #line hidden

            #line 349 "..\..\QueryView.xaml"
                this.txtQuery.KeyDown += new System.Windows.Input.KeyEventHandler(this.txtQueryKeyDown);

            #line default
            #line hidden
                return;

            case 17:
                this.diagramView = ((System.Windows.Controls.Viewbox)(target));
                return;

            case 18:
                this.ringDiagram = ((ICSharpCode.Profiler.Controls.RingDiagramControl)(target));
                return;
            }
            this._contentLoaded = true;
        }