137 references to Collapsed
Microsoft.CodeAnalysis.EditorFeatures.Wpf (6)
InlineRename\UI\Adornment\RenameFlyoutViewModel.cs (1)
70=> Visibility = this.Session.IsCommitInProgress ? Visibility.Collapsed : Visibility.Visible;
InlineRename\UI\Dashboard\RenameDashboardViewModel.cs (2)
61? Visibility.Visible : Visibility.Collapsed; 270=> Session.HasRenameOverloads ? Visibility.Visible : Visibility.Collapsed;
Preview\PreviewFactoryService.cs (2)
103host.GetTextViewMargin(DiffOverviewMarginName).VisualElement.Visibility = Visibility.Collapsed; 104host.GetTextViewMargin(PredefinedMarginNames.Bottom).VisualElement.Visibility = Visibility.Collapsed;
QuickInfo\OnTheFlyDocsViewStateVisibilityConverter.cs (1)
18=> value is OnTheFlyDocsState state && parameter is OnTheFlyDocsState targetState && state == targetState ? Visibility.Visible : Visibility.Collapsed;
Microsoft.VisualStudio.LanguageServices (23)
ChangeSignature\AddParameterDialogViewModel.cs (14)
28TypeBindsImage = Visibility.Collapsed; 29TypeDoesNotParseOrInvalidTypeImage = Visibility.Collapsed; 30TypeDoesNotBindImage = Visibility.Collapsed; 187TypeDoesNotParseOrInvalidTypeImage = Visibility.Collapsed; 188TypeDoesNotBindImage = Visibility.Collapsed; 189TypeBindsImage = Visibility.Collapsed; 196TypeIsEmptyImage = Visibility.Collapsed; 205TypeDoesNotBindImage = Visibility.Collapsed; 206TypeBindsImage = Visibility.Collapsed; 212TypeDoesNotBindImage = Visibility.Collapsed; 213TypeBindsImage = Visibility.Collapsed; 219TypeDoesNotParseOrInvalidTypeImage = Visibility.Collapsed; 221TypeBindsImage = parameterTypeBinds ? Visibility.Visible : Visibility.Collapsed; 222TypeDoesNotBindImage = !parameterTypeBinds ? Visibility.Visible : Visibility.Collapsed;
ChangeSignature\ChangeSignatureDialogViewModel.cs (2)
121parameter.HasParameterNameConflict = Visibility.Collapsed; 137matchingParameters.Single().HasParameterNameConflict = Visibility.Collapsed;
ChangeSignature\ChangeSignatureDialogViewModel.ParameterViewModels.cs (2)
52public virtual Visibility TypeWarningVisibility => Visibility.Collapsed; 111public override Visibility TypeWarningVisibility => _addedParameter.TypeBinds ? Visibility.Collapsed : Visibility.Visible;
CommonControls\MemberSelection.xaml.cs (1)
48AbstractColumn.Visibility = ViewModel.ShowMakeAbstract ? Visibility.Visible : Visibility.Collapsed;
InheritanceMargin\InheritanceMarginViewMargin.cs (1)
139!_globalOptions.GetOption(InheritanceMarginOptionsStorage.InheritanceMarginCombinedWithIndicatorMargin) ? Visibility.Visible : Visibility.Collapsed;
PreviewPane\PreviewPane.xaml.cs (2)
97OptionsButton.Visibility = Visibility.Collapsed; 418DescriptionDockPanel.Visibility = Visibility.Collapsed;
ValueTracking\ValueTrackingRoot.xaml.cs (1)
33EmptyTextMessage.Visibility = Visibility.Collapsed;
Microsoft.VisualStudio.LanguageServices.UnitTests (7)
ChangeSignature\AddParameterViewModelTests.vb (7)
257Assert.True(viewModel.TypeIsEmptyImage = If(NameOf(viewModel.TypeIsEmptyImage) = currentIcon, Visibility.Visible, Visibility.Collapsed)) 258Assert.True(viewModel.TypeDoesNotParseOrInvalidTypeImage = If(NameOf(viewModel.TypeDoesNotParseOrInvalidTypeImage) = currentIcon, Visibility.Visible, Visibility.Collapsed)) 259Assert.True(viewModel.TypeDoesNotBindImage = If(NameOf(viewModel.TypeDoesNotBindImage) = currentIcon, Visibility.Visible, Visibility.Collapsed)) 260Assert.True(viewModel.TypeBindsImage = If(NameOf(viewModel.TypeBindsImage) = currentIcon, Visibility.Visible, Visibility.Collapsed)) 269Assert.True(viewModel.TypeDoesNotParseOrInvalidTypeImage = Visibility.Collapsed) 270Assert.True(viewModel.TypeDoesNotBindImage = Visibility.Collapsed) 271Assert.True(viewModel.TypeBindsImage = Visibility.Collapsed)
PresentationCore (16)
MS\Internal\KnownBoxes.cs (1)
32internal static object CollapsedBox = Visibility.Collapsed;
System\Windows\LayoutManager.cs (1)
904if (p != null && p.Visibility != Visibility.Collapsed) //not yet a root or a collapsed node
System\Windows\UIElement.cs (9)
178if(this.Visibility == Visibility.Collapsed) 600if (this.Visibility == Visibility.Collapsed 813if (this.Visibility == Visibility.Collapsed 1306if (this.Visibility == Visibility.Collapsed) 2972return (value == Visibility.Visible) || (value == Visibility.Hidden) || (value == Visibility.Collapsed); 2997case Visibility.Collapsed: 4142return Visibility.Collapsed; 4147Debug.Assert(value == Visibility.Visible || value == Visibility.Hidden || value == Visibility.Collapsed); 4161case Visibility.Collapsed:
System\Windows\UIElement3D.cs (5)
662return (value == Visibility.Visible) || (value == Visibility.Hidden) || (value == Visibility.Collapsed); 687case Visibility.Collapsed: 1327return Visibility.Collapsed; 1332Debug.Assert(value == Visibility.Visible || value == Visibility.Hidden || value == Visibility.Collapsed); 1346case Visibility.Collapsed:
PresentationFramework (50)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (1)
1333SetValue(UIElement.VisibilityProperty, Visibility.Collapsed);
MS\Internal\Controls\TemplatedAdorner.cs (1)
173Visibility desired = AdornedElement.IsVisible ? Visibility.Visible : Visibility.Collapsed;
MS\Internal\Documents\DocumentViewerHelper.cs (1)
66findToolBarHost.Visibility = Visibility.Collapsed;
MS\Internal\Ink\InkCanvasSelection.cs (1)
887Debug.Assert(_inkCanvas.SelectionAdorner.Visibility == Visibility.Collapsed,
System\Windows\Controls\BooleanToVisibilityConverter.cs (1)
38return (bValue) ? Visibility.Visible : Visibility.Collapsed;
System\Windows\Controls\DataGrid.cs (5)
1333return SelectedItems.Contains(item) ? Visibility.Visible : Visibility.Collapsed; 1337return Visibility.Collapsed; 3798_placeholderVisibility = Visibility.Collapsed; 3804_placeholderVisibility = Visibility.Collapsed; 8658private Visibility _placeholderVisibility = Visibility.Collapsed; // The visibility used for the Placeholder container. It may not exist at all times, so it's stored on the DG.
System\Windows\Controls\DataGridHeadersVisibilityToVisibilityConverter.cs (1)
52return visible ? Visibility.Visible : Visibility.Collapsed;
System\Windows\Controls\DataGridRow.cs (5)
395DependencyProperty.Register("DetailsVisibility", typeof(Visibility), typeof(DataGridRow), new FrameworkPropertyMetadata(Visibility.Collapsed, OnNotifyDetailsVisibilityChanged, OnCoerceDetailsVisibility)); 724visibility = Visibility.Collapsed; 727visibility = hasDetailsTemplate && isRealItem ? Visibility.Visible : Visibility.Collapsed; 730visibility = row.IsSelected && hasDetailsTemplate && isRealItem ? Visibility.Visible : Visibility.Collapsed; 733visibility = Visibility.Collapsed;
System\Windows\Controls\FlowDocumentScrollViewer.cs (3)
109_toolBarHost.Visibility = IsToolBarVisible ? Visibility.Visible : Visibility.Collapsed; 936_toolBarHost.Visibility = enable ? Visibility.Visible : Visibility.Collapsed; 1754viewer._toolBarHost.Visibility = (bool)e.NewValue ? Visibility.Visible : Visibility.Collapsed;
System\Windows\Controls\InkCanvas.cs (1)
3012return Visibility.Collapsed;
System\Windows\Controls\MenuScrollingVisibilityConverter.cs (2)
89return Visibility.Collapsed; 96return Visibility.Collapsed;
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (2)
520_leftGripper.Visibility = Visibility.Collapsed; 538_rightGripper.Visibility = Visibility.Collapsed;
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (3)
551Visibility dragIndicatorVisibility = shouldDisplayDragIndicator ? Visibility.Visible : Visibility.Collapsed; 821_columnHeaderDragIndicator.Visibility = Visibility.Collapsed; 833_columnHeaderDropLocationIndicator.Visibility = Visibility.Collapsed;
System\Windows\Controls\Primitives\DataGridRowHeader.cs (2)
655_topGripper.Visibility = Visibility.Collapsed; 671_bottomGripper.Visibility = Visibility.Collapsed;
System\Windows\Controls\Primitives\TabPanel.cs (6)
97if (child.Visibility == Visibility.Collapsed) 141if (child.Visibility == Visibility.Collapsed) 215if (child.Visibility == Visibility.Collapsed) 253if (child.Visibility == Visibility.Collapsed) 302if (child.Visibility != Visibility.Collapsed) 322if (child.Visibility == Visibility.Collapsed)
System\Windows\Controls\Primitives\UniformGrid.cs (2)
214if (child.Visibility != Visibility.Collapsed) 266if (child.Visibility != Visibility.Collapsed)
System\Windows\Controls\ScrollViewer.cs (4)
251&& ( ( _scrollVisibilityX == Visibility.Collapsed 264&& ((_scrollVisibilityY == Visibility.Collapsed 1161Visibility vv = (vsbv == ScrollBarVisibility.Visible) ? Visibility.Visible : Visibility.Collapsed; 1162Visibility hv = (hsbv == ScrollBarVisibility.Visible) ? Visibility.Visible : Visibility.Collapsed;
System\Windows\Controls\VirtualizingStackPanel.cs (4)
9907Visibility newvv = DoubleUtil.LessThanOrClose(extentSize.Height, viewportSize.Height) ? Visibility.Collapsed : Visibility.Visible; 9923Visibility newhv = DoubleUtil.LessThanOrClose(extentSize.Width, viewportSize.Width) ? Visibility.Collapsed : Visibility.Visible; 10624Visibility newvv = DoubleUtil.LessThanOrClose(extentSize.Height, viewportSize.Height) ? Visibility.Collapsed : Visibility.Visible; 10640Visibility newhv = DoubleUtil.LessThanOrClose(extentSize.Width, viewportSize.Width) ? Visibility.Collapsed : Visibility.Visible;
System\Windows\Generated\FrameworkElement.cs (1)
447if (Visibility == Visibility.Collapsed)
System\Windows\Interop\ActiveXHost.cs (1)
864case Visibility.Collapsed:
System\Windows\Window.cs (3)
64VisibilityProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(Visibility.Collapsed, new PropertyChangedCallback(_OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility))); 2169case Visibility.Collapsed: 6757case Visibility.Collapsed:
PresentationUI (10)
InstallationError.xaml.cs (1)
92RetryButton.Visibility = Visibility.Collapsed;
MS\Internal\Documents\Application\StatusInfoItem.cs (2)
124this.Visibility = Visibility.Collapsed; 147this.Visibility = Visibility.Collapsed;
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (6)
1208ChangeControlVisibility(uie, uie.Visibility == Visibility.Collapsed); 1227uie.Visibility = Visibility.Collapsed; 1260if ((_digSigInfoBar.Visibility == Visibility.Collapsed) && 1261(_rmInfoBar.Visibility == Visibility.Collapsed)) 1278_digSigInfoBar.Visibility = Visibility.Collapsed; 1279_rmInfoBar.Visibility = Visibility.Collapsed;
TenFeetInstallationError.xaml.cs (1)
96RetryButton.Visibility = Visibility.Collapsed;
Roslyn.VisualStudio.DiagnosticsWindow (1)
OptionPages\InternalOptionsControl.cs (1)
58item.Visibility = Visibility.Collapsed;
System.Windows.Controls.Ribbon (22)
Microsoft\Windows\Controls\KeyTipService.cs (1)
1412if (activatingEventArgs.KeyTipVisibility != Visibility.Collapsed)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonScrollButtonVisibilityConverter.cs (3)
86return Visibility.Collapsed; 95return Visibility.Collapsed; 101return Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonApplicationSplitMenuItem.cs (1)
216e.KeyTipVisibility = Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (2)
52VisibilityProperty.OverrideMetadata(typeof(RibbonContextualTabGroup), new FrameworkPropertyMetadata(Visibility.Collapsed, new PropertyChangedCallback(OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility))); 440return Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (1)
247return Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (2)
110if (ribbonControl != null && ribbonControl.Visibility != Visibility.Collapsed) 113if (contentChild != null && contentChild.Visibility != Visibility.Collapsed)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
2381category.Visibility = Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (4)
171SetAppropriatePresenterVisibility(groupSizeDefinitions[_sizeDefinitionIndex] is RibbonGroupSizeDefinition ? Visibility.Visible : Visibility.Collapsed); 996SetAppropriatePresenterVisibility(GroupSizeDefinitions[_sizeDefinitionIndex] is RibbonGroupSizeDefinition ? Visibility.Visible : Visibility.Collapsed); 1140SetAppropriatePresenterVisibility(Visibility.Collapsed); 1164_templateContentControl.Visibility = (itemsPresenterVisibility == Visibility.Visible ? Visibility.Collapsed : Visibility.Visible);
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
658e.KeyTipVisibility = Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
378e.KeyTipVisibility = Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (3)
659contextualVisibility = Visibility.Collapsed; 665return Visibility.Collapsed; 878e.KeyTipVisibility = Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (2)
274_textBlock1.Visibility = Visibility.Collapsed; 324_textBlock2.Visibility = Visibility.Collapsed;
WindowsFormsIntegration (2)
System\Windows\Integration\WindowsFormsHost.cs (2)
238if (this.Visibility == Visibility.Collapsed || Child == null) 269if (this.Visibility == Visibility.Collapsed || Child == null)