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)
103
host.GetTextViewMargin(DiffOverviewMarginName).VisualElement.Visibility = Visibility.
Collapsed
;
104
host.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)
32
TypeBindsImage = Visibility.
Collapsed
;
33
TypeDoesNotParseOrInvalidTypeImage = Visibility.
Collapsed
;
34
TypeDoesNotBindImage = Visibility.
Collapsed
;
191
TypeDoesNotParseOrInvalidTypeImage = Visibility.
Collapsed
;
192
TypeDoesNotBindImage = Visibility.
Collapsed
;
193
TypeBindsImage = Visibility.
Collapsed
;
200
TypeIsEmptyImage = Visibility.
Collapsed
;
209
TypeDoesNotBindImage = Visibility.
Collapsed
;
210
TypeBindsImage = Visibility.
Collapsed
;
216
TypeDoesNotBindImage = Visibility.
Collapsed
;
217
TypeBindsImage = Visibility.
Collapsed
;
223
TypeDoesNotParseOrInvalidTypeImage = Visibility.
Collapsed
;
225
TypeBindsImage = parameterTypeBinds ? Visibility.Visible : Visibility.
Collapsed
;
226
TypeDoesNotBindImage = !parameterTypeBinds ? Visibility.Visible : Visibility.
Collapsed
;
ChangeSignature\ChangeSignatureDialogViewModel.cs (2)
121
parameter.HasParameterNameConflict = Visibility.
Collapsed
;
137
matchingParameters.Single().HasParameterNameConflict = Visibility.
Collapsed
;
ChangeSignature\ChangeSignatureDialogViewModel.ParameterViewModels.cs (2)
52
public virtual Visibility TypeWarningVisibility => Visibility.
Collapsed
;
111
public override Visibility TypeWarningVisibility => _addedParameter.TypeBinds ? Visibility.
Collapsed
: Visibility.Visible;
CommonControls\MemberSelection.xaml.cs (1)
48
AbstractColumn.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)
97
OptionsButton.Visibility = Visibility.
Collapsed
;
418
DescriptionDockPanel.Visibility = Visibility.
Collapsed
;
ValueTracking\ValueTrackingRoot.xaml.cs (1)
33
EmptyTextMessage.Visibility = Visibility.
Collapsed
;
Microsoft.VisualStudio.LanguageServices.CSharp (2)
Options\AdvancedOptionPageControl.xaml.cs (2)
233
Customized_Theme_Warning.Visibility = isSupportedTheme && isThemeCustomized ? Visibility.Visible : Visibility.
Collapsed
;
234
Custom_VS_Theme_Warning.Visibility = isSupportedTheme ? Visibility.
Collapsed
: Visibility.Visible;
Microsoft.VisualStudio.LanguageServices.UnitTests (7)
ChangeSignature\AddParameterViewModelTests.vb (7)
257
Assert.True(viewModel.TypeIsEmptyImage = If(NameOf(viewModel.TypeIsEmptyImage) = currentIcon, Visibility.Visible, Visibility.
Collapsed
))
258
Assert.True(viewModel.TypeDoesNotParseOrInvalidTypeImage = If(NameOf(viewModel.TypeDoesNotParseOrInvalidTypeImage) = currentIcon, Visibility.Visible, Visibility.
Collapsed
))
259
Assert.True(viewModel.TypeDoesNotBindImage = If(NameOf(viewModel.TypeDoesNotBindImage) = currentIcon, Visibility.Visible, Visibility.
Collapsed
))
260
Assert.True(viewModel.TypeBindsImage = If(NameOf(viewModel.TypeBindsImage) = currentIcon, Visibility.Visible, Visibility.
Collapsed
))
269
Assert.True(viewModel.TypeDoesNotParseOrInvalidTypeImage = Visibility.
Collapsed
)
270
Assert.True(viewModel.TypeDoesNotBindImage = Visibility.
Collapsed
)
271
Assert.True(viewModel.TypeBindsImage = Visibility.
Collapsed
)
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
Options\AdvancedOptionPageControl.xaml.vb (2)
223
Customized_Theme_Warning.Visibility = If(isSupportedTheme AndAlso isCustomized, Visibility.Visible, Visibility.
Collapsed
)
224
Custom_VS_Theme_Warning.Visibility = If(isSupportedTheme, Visibility.
Collapsed
, Visibility.Visible)
PresentationCore (16)
MS\Internal\KnownBoxes.cs (1)
33
internal static object CollapsedBox = Visibility.
Collapsed
;
System\Windows\LayoutManager.cs (1)
920
if (p != null && p.Visibility != Visibility.
Collapsed
) //not yet a root or a collapsed node
System\Windows\UIElement.cs (9)
183
if(this.Visibility == Visibility.
Collapsed
)
605
if (this.Visibility == Visibility.
Collapsed
818
if (this.Visibility == Visibility.
Collapsed
1311
if (this.Visibility == Visibility.
Collapsed
)
2977
return (value == Visibility.Visible) || (value == Visibility.Hidden) || (value == Visibility.
Collapsed
);
3002
case Visibility.
Collapsed
:
4147
return Visibility.
Collapsed
;
4152
Debug.Assert(value == Visibility.Visible || value == Visibility.Hidden || value == Visibility.
Collapsed
);
4166
case Visibility.
Collapsed
:
System\Windows\UIElement3D.cs (5)
677
return (value == Visibility.Visible) || (value == Visibility.Hidden) || (value == Visibility.
Collapsed
);
702
case Visibility.
Collapsed
:
1342
return Visibility.
Collapsed
;
1347
Debug.Assert(value == Visibility.Visible || value == Visibility.Hidden || value == Visibility.
Collapsed
);
1361
case Visibility.
Collapsed
:
PresentationFramework (50)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (1)
1343
SetValue(UIElement.VisibilityProperty, Visibility.
Collapsed
);
MS\Internal\Controls\TemplatedAdorner.cs (1)
180
Visibility desired = AdornedElement.IsVisible ? Visibility.Visible : Visibility.
Collapsed
;
MS\Internal\Documents\DocumentViewerHelper.cs (1)
68
findToolBarHost.Visibility = Visibility.
Collapsed
;
MS\Internal\Ink\InkCanvasSelection.cs (1)
899
Debug.Assert(_inkCanvas.SelectionAdorner.Visibility == Visibility.
Collapsed
,
System\Windows\Controls\BooleanToVisibilityConverter.cs (1)
45
return (bValue) ? Visibility.Visible : Visibility.
Collapsed
;
System\Windows\Controls\DataGrid.cs (5)
1336
return SelectedItems.Contains(item) ? Visibility.Visible : Visibility.
Collapsed
;
1340
return Visibility.
Collapsed
;
3801
_placeholderVisibility = Visibility.
Collapsed
;
3807
_placeholderVisibility = Visibility.
Collapsed
;
8661
private 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)
54
return visible ? Visibility.Visible : Visibility.
Collapsed
;
System\Windows\Controls\DataGridRow.cs (5)
399
DependencyProperty.Register("DetailsVisibility", typeof(Visibility), typeof(DataGridRow), new FrameworkPropertyMetadata(Visibility.
Collapsed
, OnNotifyDetailsVisibilityChanged, OnCoerceDetailsVisibility));
728
visibility = Visibility.
Collapsed
;
731
visibility = hasDetailsTemplate && isRealItem ? Visibility.Visible : Visibility.
Collapsed
;
734
visibility = row.IsSelected && hasDetailsTemplate && isRealItem ? Visibility.Visible : Visibility.
Collapsed
;
737
visibility = Visibility.
Collapsed
;
System\Windows\Controls\FlowDocumentScrollViewer.cs (3)
112
_toolBarHost.Visibility = IsToolBarVisible ? Visibility.Visible : Visibility.
Collapsed
;
939
_toolBarHost.Visibility = enable ? Visibility.Visible : Visibility.
Collapsed
;
1757
viewer._toolBarHost.Visibility = (bool)e.NewValue ? Visibility.Visible : Visibility.
Collapsed
;
System\Windows\Controls\InkCanvas.cs (1)
3024
return Visibility.
Collapsed
;
System\Windows\Controls\MenuScrollingVisibilityConverter.cs (2)
95
return Visibility.
Collapsed
;
102
return 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)
556
Visibility 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)
105
if (child.Visibility == Visibility.
Collapsed
)
149
if (child.Visibility == Visibility.
Collapsed
)
223
if (child.Visibility == Visibility.
Collapsed
)
261
if (child.Visibility == Visibility.
Collapsed
)
310
if (child.Visibility != Visibility.
Collapsed
)
330
if (child.Visibility == Visibility.
Collapsed
)
System\Windows\Controls\Primitives\UniformGrid.cs (2)
222
if (child.Visibility != Visibility.
Collapsed
)
274
if (child.Visibility != Visibility.
Collapsed
)
System\Windows\Controls\ScrollViewer.cs (4)
259
&& ( ( _scrollVisibilityX == Visibility.
Collapsed
272
&& ((_scrollVisibilityY == Visibility.
Collapsed
1169
Visibility vv = (vsbv == ScrollBarVisibility.Visible) ? Visibility.Visible : Visibility.
Collapsed
;
1170
Visibility hv = (hsbv == ScrollBarVisibility.Visible) ? Visibility.Visible : Visibility.
Collapsed
;
System\Windows\Controls\VirtualizingStackPanel.cs (4)
9912
Visibility newvv = DoubleUtil.LessThanOrClose(extentSize.Height, viewportSize.Height) ? Visibility.
Collapsed
: Visibility.Visible;
9928
Visibility newhv = DoubleUtil.LessThanOrClose(extentSize.Width, viewportSize.Width) ? Visibility.
Collapsed
: Visibility.Visible;
10629
Visibility newvv = DoubleUtil.LessThanOrClose(extentSize.Height, viewportSize.Height) ? Visibility.
Collapsed
: Visibility.Visible;
10645
Visibility newhv = DoubleUtil.LessThanOrClose(extentSize.Width, viewportSize.Width) ? Visibility.
Collapsed
: Visibility.Visible;
System\Windows\Generated\FrameworkElement.cs (1)
453
if (Visibility == Visibility.
Collapsed
)
System\Windows\Interop\ActiveXHost.cs (1)
874
case Visibility.
Collapsed
:
System\Windows\Window.cs (3)
77
VisibilityProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(Visibility.
Collapsed
, new PropertyChangedCallback(_OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility)));
2182
case Visibility.
Collapsed
:
6770
case Visibility.
Collapsed
:
PresentationUI (10)
InstallationError.xaml.cs (1)
96
RetryButton.Visibility = Visibility.
Collapsed
;
MS\Internal\Documents\Application\StatusInfoItem.cs (2)
127
this.Visibility = Visibility.
Collapsed
;
150
this.Visibility = Visibility.
Collapsed
;
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (6)
1215
ChangeControlVisibility(uie, uie.Visibility == Visibility.
Collapsed
);
1234
uie.Visibility = Visibility.
Collapsed
;
1267
if ((_digSigInfoBar.Visibility == Visibility.
Collapsed
) &&
1268
(_rmInfoBar.Visibility == Visibility.
Collapsed
))
1285
_digSigInfoBar.Visibility = Visibility.
Collapsed
;
1286
_rmInfoBar.Visibility = Visibility.
Collapsed
;
TenFeetInstallationError.xaml.cs (1)
100
RetryButton.Visibility = Visibility.
Collapsed
;
Roslyn.VisualStudio.DiagnosticsWindow (1)
OptionPages\InternalOptionsControl.cs (1)
58
item.Visibility = Visibility.
Collapsed
;
System.Windows.Controls.Ribbon (22)
Microsoft\Windows\Controls\KeyTipService.cs (1)
1414
if (activatingEventArgs.KeyTipVisibility != Visibility.
Collapsed
)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonScrollButtonVisibilityConverter.cs (3)
92
return Visibility.
Collapsed
;
101
return Visibility.
Collapsed
;
107
return Visibility.
Collapsed
;
Microsoft\Windows\Controls\Ribbon\RibbonApplicationSplitMenuItem.cs (1)
219
e.KeyTipVisibility = Visibility.
Collapsed
;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (2)
54
VisibilityProperty.OverrideMetadata(typeof(RibbonContextualTabGroup), new FrameworkPropertyMetadata(Visibility.
Collapsed
, new PropertyChangedCallback(OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility)));
442
return Visibility.
Collapsed
;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (1)
249
return Visibility.
Collapsed
;
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (2)
113
if (ribbonControl != null && ribbonControl.Visibility != Visibility.
Collapsed
)
116
if (contentChild != null && contentChild.Visibility != Visibility.
Collapsed
)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
2383
category.Visibility = Visibility.
Collapsed
;
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (4)
174
SetAppropriatePresenterVisibility(groupSizeDefinitions[_sizeDefinitionIndex] is RibbonGroupSizeDefinition ? Visibility.Visible : Visibility.
Collapsed
);
999
SetAppropriatePresenterVisibility(GroupSizeDefinitions[_sizeDefinitionIndex] is RibbonGroupSizeDefinition ? Visibility.Visible : Visibility.
Collapsed
);
1143
SetAppropriatePresenterVisibility(Visibility.
Collapsed
);
1167
_templateContentControl.Visibility = (itemsPresenterVisibility == Visibility.Visible ? Visibility.
Collapsed
: Visibility.Visible);
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
663
e.KeyTipVisibility = Visibility.
Collapsed
;
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
381
e.KeyTipVisibility = Visibility.
Collapsed
;
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (3)
661
contextualVisibility = Visibility.
Collapsed
;
667
return Visibility.
Collapsed
;
880
e.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)
240
if (this.Visibility == Visibility.
Collapsed
|| Child == null)
271
if (this.Visibility == Visibility.
Collapsed
|| Child == null)