46 writes to Width
IdeBenchmarks (1)
InheritanceMargin\InheritanceMarginGlyphBenchmarks.cs (1)
177Width = WidthAndHeightOfGlyph,
Microsoft.CodeAnalysis.EditorFeatures.Wpf (4)
IWpfDifferenceViewerExtensions.cs (1)
40_diffViewer.VisualElement.Width = _width;
IWpfTextViewExtensions.cs (1)
31view.VisualElement.Width = newWidth;
LineSeparators\LineSeparatorTag.cs (2)
43Width = view.ViewportWidth 58border.Width = view.ViewportWidth;
Microsoft.VisualStudio.LanguageServices (5)
InheritanceMargin\InheritanceGlyphManager.cs (1)
213{ Height = _heightAndWidthOfTheGlyph, Width = _heightAndWidthOfTheGlyph };
InheritanceMargin\InheritanceMarginViewMargin.cs (1)
64_mainCanvas = new Canvas { ClipToBounds = true, Width = HeightAndWidthOfMargin };
PreviewPane\PreviewPane.xaml.cs (2)
200grid.Width = previewElement.Width; 309HeaderStackPanel.Width = headerStackPanelWidth;
UnusedReferences\Dialog\UnusedReferencesTableProvider.ColumnDefinitions.cs (1)
85Width = 16.0,
Microsoft.VisualStudio.LanguageServices.CSharp (2)
SemanticSearch\SemanticSearchToolWindowImpl.cs (2)
317Width = ToolBarButtonSize - 4, 325Width = ToolBarButtonSize,
PresentationFramework (24)
MS\Internal\Ink\ClipboardProcessor.cs (1)
350inkCanvas.Width = size.Width;
MS\Internal\Ink\InkCanvasSelection.cs (1)
405((FrameworkElement)updatedElement).Width = newBounds.Width;
System\Windows\Controls\BorderGapMaskConverter.cs (1)
82Width = borderWidth,
System\Windows\Controls\ComboBox.cs (2)
926Width = _clonedElement.RenderSize.Width, 959rect.Width = _clonedElement.RenderSize.Width;
System\Windows\Controls\GridViewColumnHeader.cs (1)
456Width = width;
System\Windows\Controls\GridViewHeaderRowPresenter.cs (3)
1122paddingHeader.Width = Double.NaN; 1155Width = 2.0 1212_floatingHeader.Width = srcHeader.ActualWidth;
System\Windows\Controls\ProgressBar.cs (1)
170_indicator.Width = percent * _track.ActualWidth;
System\Windows\Controls\Slider.cs (2)
993rangeElement.Width = ((SelectionEnd - SelectionStart) * valueToSize); 1058rangeElement.Width = ((Value - Minimum) * valueToSize);
System\Windows\Controls\ToolBarTray.cs (5)
673toolBar.Width = toolBar.RenderSize.Width - shrinkAmount; 678toolBar.Width = toolBar.MinLength; 721toolBar.Width = toolBar.RenderSize.Width + expandAmount; 726toolBar.Width = toolBar.MaxLength; 788currentToolBar.Width = Math.Max(currentToolBar.MinLength, currentToolBar.RenderSize.Width - toolBarOffset + position);
System\Windows\Documents\FixedDocument.cs (1)
705fp.Width = _pageWidth;
System\Windows\Documents\FixedElement.cs (1)
301image.Width = image.Source.Width;
System\Windows\Documents\FlowPosition.cs (1)
258image.Width = somImage.BoundingRect.Width;
System\Windows\Documents\TextRange.cs (2)
1056image.Width = bitmapSource.PixelWidth; 1060image.Width = (MaxImageHeight / bitmapSource.PixelHeight) * bitmapSource.PixelWidth;
System\Windows\Input\KeyboardNavigation.cs (2)
594control.Width = rect.Width; 613Width = rect.Width,
ReachFramework (1)
Serialization\Manager\ReachSerializationUtils.cs (1)
1125fixedPage.Width = newSize.Width;
Roslyn.VisualStudio.DiagnosticsWindow (1)
PerfMargin\PerfMarginPanel.cs (1)
97indicator.Width = 30;
System.Windows.Controls.Ribbon (7)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1441_itemsPresenterPopup.Width = this.CalculatePopupWidth();
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (2)
576Width = _clonedElement.RenderSize.Width, 610rect.Width = _clonedElement.RenderSize.Width;
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (2)
31itemsPresenter.Width = itemsPresenter.ActualWidth; 137itemsPresenter.Width = newWidth;
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (2)
394_textBlock1.Width = Math.Max(1.0, width / 2.0); 422_textBlock1.Width += extraLength / 2;
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
305childFrameworkElement.Width = double.NaN;
47 references to Width
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
IWpfTextViewExtensions.cs (1)
29if (IsGreater(newWidth, view.VisualElement.Width))
Microsoft.VisualStudio.LanguageServices (3)
PreviewPane\PreviewPane.xaml.cs (3)
200grid.Width = previewElement.Width; 297double.IsNaN(previewElement.Width) ? DefaultWidth : previewElement.Width,
PresentationFramework (29)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (5)
278left = -(left + snc.Width); 829left = -(left + snc.Width); 1023transformations.Children.Add(new MatrixTransform(-1.0, 0.0, 0.0, 1.0, this.Width, 0.0)); 1397Rect rect = new Rect(0, 0, Width, Height); 1567ret = new Rect(anchor.X + PositionTransform.X + _deltaX, anchor.Y + PositionTransform.Y + _deltaY, Width, Height);
System\Windows\Controls\DataGridColumnFloatingHeader.cs (1)
124double width = Width;
System\Windows\Controls\GridViewColumnHeader.cs (1)
382hideGripperRightHalf = DoubleUtil.LessThan(ActualWidth, _headerGripper.Width);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
158new Size(_columnHeaderDragIndicator.Width, _columnHeaderDragIndicator.Height))); 164double dropIndicatorWidth = _columnHeaderDropLocationIndicator.Width;
System\Windows\Controls\ProgressBar.cs (5)
224if(IsVisible && (_glow.Width > 0) && (_indicator.Width > 0 )) 227double endPos = _indicator.Width + _glow.Width; 228double startPos = -1 * _glow.Width;
System\Windows\Controls\ScrollViewer.cs (2)
375/// <see cref="System.Windows.FrameworkElement.Width" /> on the content element. 416/// <see cref="System.Windows.FrameworkElement.Width" /> on this element.
System\Windows\Controls\StickyNote.cs (1)
1155horizontalChange = wNew - this.Width;
System\Windows\Documents\FixedDocument.cs (2)
701double width = fp.Width; 763return new Size(fp.Width, fp.Height);
System\Windows\Documents\FixedHighlight.cs (1)
112return new Rect(0, 0, im.Width, im.Height);
System\Windows\Documents\FixedPageStructure.cs (3)
277prevTextPoint.X = fp.Width - 100; 314Rect boundingRect = new Rect(0, 0, image.Width, image.Height); 591boundingRect = new Rect(0, 0, image.Width, image.Height);
System\Windows\Documents\FixedTextBuilder.cs (1)
1297g = new RectangleGeometry(new Rect(0, 0, im.Width, im.Height));
System\Windows\Documents\TextRange.cs (1)
1050if (double.IsNaN(image.Width))
System\Windows\FrameworkElement.cs (1)
4052l = e.Width;
System\Windows\Window.cs (3)
2664requestedWidth = this.Width; 3824ownerSizeDeviceUnits = Owner.LogicalToDeviceUnits(new Point(Owner.Width, Owner.Height)); 3935if ((double.IsNaN(Owner.Width)) ||
PresentationUI (3)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (3)
2444Rect pageBounds = new Rect(0.0, 0.0, fixedPage.Width, fixedPage.Height); 2453bool documentPagePortrait = (fixedPage.Width < fixedPage.Height); 2476tg.Children.Add(new MatrixTransform(0.0, -1.0, 1.0, 0.0, 0.0, fixedPage.Width));
ReachFramework (6)
Serialization\Manager\NGCSerializer.cs (1)
161Size pageSize = new Size(fp.Width, fp.Height);
Serialization\Manager\NGCSerializerAsync.cs (1)
815Size pageSize = new Size(fp.Width, fp.Height);
Serialization\Manager\ReachFixedPageSerializer.cs (1)
177Size fixedPageSize = new Size(fixedPage.Width, fixedPage.Height);
Serialization\Manager\ReachFixedPageSerializerAsync.cs (1)
202Size fixedPageSize = new Size(fixedPage.Width, fixedPage.Height);
Serialization\Manager\ReachSerializationUtils.cs (1)
1120Size size = new Size(fixedPage.Width, fixedPage.Height);
Serialization\Manager\XpsOMFixedPageSerializer.cs (1)
167Size fixedPageSize = new Size(fixedPage.Width, fixedPage.Height);
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (1)
120double newWidth = itemsPresenter.Width + horizontalDelta;
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (2)
1021if (double.IsNaN(_itemsPresenter.Width) || double.IsNaN(_itemsPresenter.Height)) 1026double horizontalDelta = newWidth - _itemsPresenter.Width;
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (2)
1082if (double.IsNaN(_itemsPresenter.Width) || double.IsNaN(_itemsPresenter.Height)) 1087double horizontalDelta = newWidth - _itemsPresenter.Width;