141 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)
32TypeBindsImage = Visibility.Collapsed; 33TypeDoesNotParseOrInvalidTypeImage = Visibility.Collapsed; 34TypeDoesNotBindImage = Visibility.Collapsed; 191TypeDoesNotParseOrInvalidTypeImage = Visibility.Collapsed; 192TypeDoesNotBindImage = Visibility.Collapsed; 193TypeBindsImage = Visibility.Collapsed; 200TypeIsEmptyImage = Visibility.Collapsed; 209TypeDoesNotBindImage = Visibility.Collapsed; 210TypeBindsImage = Visibility.Collapsed; 216TypeDoesNotBindImage = Visibility.Collapsed; 217TypeBindsImage = Visibility.Collapsed; 223TypeDoesNotParseOrInvalidTypeImage = Visibility.Collapsed; 225TypeBindsImage = parameterTypeBinds ? Visibility.Visible : Visibility.Collapsed; 226TypeDoesNotBindImage = !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.CSharp (2)
Options\AdvancedOptionPageControl.xaml.cs (2)
233Customized_Theme_Warning.Visibility = isSupportedTheme && isThemeCustomized ? Visibility.Visible : Visibility.Collapsed; 234Custom_VS_Theme_Warning.Visibility = isSupportedTheme ? Visibility.Collapsed : Visibility.Visible;
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)
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
Options\AdvancedOptionPageControl.xaml.vb (2)
223Customized_Theme_Warning.Visibility = If(isSupportedTheme AndAlso isCustomized, Visibility.Visible, Visibility.Collapsed) 224Custom_VS_Theme_Warning.Visibility = If(isSupportedTheme, Visibility.Collapsed, Visibility.Visible)
PresentationCore (16)
MS\Internal\KnownBoxes.cs (1)
33internal static object CollapsedBox = Visibility.Collapsed;
System\Windows\LayoutManager.cs (1)
920if (p != null && p.Visibility != Visibility.Collapsed) //not yet a root or a collapsed node
System\Windows\UIElement.cs (9)
183if(this.Visibility == Visibility.Collapsed) 605if (this.Visibility == Visibility.Collapsed 818if (this.Visibility == Visibility.Collapsed 1311if (this.Visibility == Visibility.Collapsed) 2977return (value == Visibility.Visible) || (value == Visibility.Hidden) || (value == Visibility.Collapsed); 3002case Visibility.Collapsed: 4147return Visibility.Collapsed; 4152Debug.Assert(value == Visibility.Visible || value == Visibility.Hidden || value == Visibility.Collapsed); 4166case Visibility.Collapsed:
System\Windows\UIElement3D.cs (5)
677return (value == Visibility.Visible) || (value == Visibility.Hidden) || (value == Visibility.Collapsed); 702case Visibility.Collapsed: 1342return Visibility.Collapsed; 1347Debug.Assert(value == Visibility.Visible || value == Visibility.Hidden || value == Visibility.Collapsed); 1361case Visibility.Collapsed:
PresentationFramework (50)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (1)
1343SetValue(UIElement.VisibilityProperty, Visibility.Collapsed);
MS\Internal\Controls\TemplatedAdorner.cs (1)
180Visibility desired = AdornedElement.IsVisible ? Visibility.Visible : Visibility.Collapsed;
MS\Internal\Documents\DocumentViewerHelper.cs (1)
68findToolBarHost.Visibility = Visibility.Collapsed;
MS\Internal\Ink\InkCanvasSelection.cs (1)
899Debug.Assert(_inkCanvas.SelectionAdorner.Visibility == Visibility.Collapsed,
System\Windows\Controls\BooleanToVisibilityConverter.cs (1)
45return (bValue) ? Visibility.Visible : Visibility.Collapsed;
System\Windows\Controls\DataGrid.cs (5)
1336return SelectedItems.Contains(item) ? Visibility.Visible : Visibility.Collapsed; 1340return Visibility.Collapsed; 3801_placeholderVisibility = Visibility.Collapsed; 3807_placeholderVisibility = Visibility.Collapsed; 8661private 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)
54return visible ? Visibility.Visible : Visibility.Collapsed;
System\Windows\Controls\DataGridRow.cs (5)
399DependencyProperty.Register("DetailsVisibility", typeof(Visibility), typeof(DataGridRow), new FrameworkPropertyMetadata(Visibility.Collapsed, OnNotifyDetailsVisibilityChanged, OnCoerceDetailsVisibility)); 728visibility = Visibility.Collapsed; 731visibility = hasDetailsTemplate && isRealItem ? Visibility.Visible : Visibility.Collapsed; 734visibility = row.IsSelected && hasDetailsTemplate && isRealItem ? Visibility.Visible : Visibility.Collapsed; 737visibility = Visibility.Collapsed;
System\Windows\Controls\FlowDocumentScrollViewer.cs (3)
112_toolBarHost.Visibility = IsToolBarVisible ? Visibility.Visible : Visibility.Collapsed; 939_toolBarHost.Visibility = enable ? Visibility.Visible : Visibility.Collapsed; 1757viewer._toolBarHost.Visibility = (bool)e.NewValue ? Visibility.Visible : Visibility.Collapsed;
System\Windows\Controls\InkCanvas.cs (1)
3024return Visibility.Collapsed;
System\Windows\Controls\MenuScrollingVisibilityConverter.cs (2)
95return Visibility.Collapsed; 102return Visibility.Collapsed;
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (2)
525_leftGripper.Visibility = Visibility.Collapsed; 543_rightGripper.Visibility = Visibility.Collapsed;
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (3)
556Visibility dragIndicatorVisibility = shouldDisplayDragIndicator ? Visibility.Visible : Visibility.Collapsed; 826_columnHeaderDragIndicator.Visibility = Visibility.Collapsed; 838_columnHeaderDropLocationIndicator.Visibility = Visibility.Collapsed;
System\Windows\Controls\Primitives\DataGridRowHeader.cs (2)
660_topGripper.Visibility = Visibility.Collapsed; 676_bottomGripper.Visibility = Visibility.Collapsed;
System\Windows\Controls\Primitives\TabPanel.cs (6)
105if (child.Visibility == Visibility.Collapsed) 149if (child.Visibility == Visibility.Collapsed) 223if (child.Visibility == Visibility.Collapsed) 261if (child.Visibility == Visibility.Collapsed) 310if (child.Visibility != Visibility.Collapsed) 330if (child.Visibility == Visibility.Collapsed)
System\Windows\Controls\Primitives\UniformGrid.cs (2)
222if (child.Visibility != Visibility.Collapsed) 274if (child.Visibility != Visibility.Collapsed)
System\Windows\Controls\ScrollViewer.cs (4)
259&& ( ( _scrollVisibilityX == Visibility.Collapsed 272&& ((_scrollVisibilityY == Visibility.Collapsed 1169Visibility vv = (vsbv == ScrollBarVisibility.Visible) ? Visibility.Visible : Visibility.Collapsed; 1170Visibility hv = (hsbv == ScrollBarVisibility.Visible) ? Visibility.Visible : Visibility.Collapsed;
System\Windows\Controls\VirtualizingStackPanel.cs (4)
9912Visibility newvv = DoubleUtil.LessThanOrClose(extentSize.Height, viewportSize.Height) ? Visibility.Collapsed : Visibility.Visible; 9928Visibility newhv = DoubleUtil.LessThanOrClose(extentSize.Width, viewportSize.Width) ? Visibility.Collapsed : Visibility.Visible; 10629Visibility newvv = DoubleUtil.LessThanOrClose(extentSize.Height, viewportSize.Height) ? Visibility.Collapsed : Visibility.Visible; 10645Visibility newhv = DoubleUtil.LessThanOrClose(extentSize.Width, viewportSize.Width) ? Visibility.Collapsed : Visibility.Visible;
System\Windows\Generated\FrameworkElement.cs (1)
453if (Visibility == Visibility.Collapsed)
System\Windows\Interop\ActiveXHost.cs (1)
874case Visibility.Collapsed:
System\Windows\Window.cs (3)
77VisibilityProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(Visibility.Collapsed, new PropertyChangedCallback(_OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility))); 2182case Visibility.Collapsed: 6770case Visibility.Collapsed:
PresentationUI (10)
InstallationError.xaml.cs (1)
96RetryButton.Visibility = Visibility.Collapsed;
MS\Internal\Documents\Application\StatusInfoItem.cs (2)
127this.Visibility = Visibility.Collapsed; 150this.Visibility = Visibility.Collapsed;
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (6)
1215ChangeControlVisibility(uie, uie.Visibility == Visibility.Collapsed); 1234uie.Visibility = Visibility.Collapsed; 1267if ((_digSigInfoBar.Visibility == Visibility.Collapsed) && 1268(_rmInfoBar.Visibility == Visibility.Collapsed)) 1285_digSigInfoBar.Visibility = Visibility.Collapsed; 1286_rmInfoBar.Visibility = Visibility.Collapsed;
TenFeetInstallationError.xaml.cs (1)
100RetryButton.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)
1414if (activatingEventArgs.KeyTipVisibility != Visibility.Collapsed)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonScrollButtonVisibilityConverter.cs (3)
92return Visibility.Collapsed; 101return Visibility.Collapsed; 107return Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonApplicationSplitMenuItem.cs (1)
219e.KeyTipVisibility = Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (2)
54VisibilityProperty.OverrideMetadata(typeof(RibbonContextualTabGroup), new FrameworkPropertyMetadata(Visibility.Collapsed, new PropertyChangedCallback(OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility))); 442return Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (1)
249return Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (2)
113if (ribbonControl != null && ribbonControl.Visibility != Visibility.Collapsed) 116if (contentChild != null && contentChild.Visibility != Visibility.Collapsed)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
2383category.Visibility = Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (4)
174SetAppropriatePresenterVisibility(groupSizeDefinitions[_sizeDefinitionIndex] is RibbonGroupSizeDefinition ? Visibility.Visible : Visibility.Collapsed); 999SetAppropriatePresenterVisibility(GroupSizeDefinitions[_sizeDefinitionIndex] is RibbonGroupSizeDefinition ? Visibility.Visible : Visibility.Collapsed); 1143SetAppropriatePresenterVisibility(Visibility.Collapsed); 1167_templateContentControl.Visibility = (itemsPresenterVisibility == Visibility.Visible ? Visibility.Collapsed : Visibility.Visible);
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
663e.KeyTipVisibility = Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
381e.KeyTipVisibility = Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (3)
661contextualVisibility = Visibility.Collapsed; 667return Visibility.Collapsed; 880e.KeyTipVisibility = Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (2)
277_textBlock1.Visibility = Visibility.Collapsed; 327_textBlock2.Visibility = Visibility.Collapsed;
WindowsFormsIntegration (2)
System\Windows\Integration\WindowsFormsHost.cs (2)
240if (this.Visibility == Visibility.Collapsed || Child == null) 271if (this.Visibility == Visibility.Collapsed || Child == null)