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)
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)
28
TypeBindsImage = Visibility.
Collapsed
;
29
TypeDoesNotParseOrInvalidTypeImage = Visibility.
Collapsed
;
30
TypeDoesNotBindImage = Visibility.
Collapsed
;
187
TypeDoesNotParseOrInvalidTypeImage = Visibility.
Collapsed
;
188
TypeDoesNotBindImage = Visibility.
Collapsed
;
189
TypeBindsImage = Visibility.
Collapsed
;
196
TypeIsEmptyImage = Visibility.
Collapsed
;
205
TypeDoesNotBindImage = Visibility.
Collapsed
;
206
TypeBindsImage = Visibility.
Collapsed
;
212
TypeDoesNotBindImage = Visibility.
Collapsed
;
213
TypeBindsImage = Visibility.
Collapsed
;
219
TypeDoesNotParseOrInvalidTypeImage = Visibility.
Collapsed
;
221
TypeBindsImage = parameterTypeBinds ? Visibility.Visible : Visibility.
Collapsed
;
222
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.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
)
PresentationCore (16)
MS\Internal\KnownBoxes.cs (1)
32
internal static object CollapsedBox = Visibility.
Collapsed
;
System\Windows\LayoutManager.cs (1)
904
if (p != null && p.Visibility != Visibility.
Collapsed
) //not yet a root or a collapsed node
System\Windows\UIElement.cs (9)
178
if(this.Visibility == Visibility.
Collapsed
)
600
if (this.Visibility == Visibility.
Collapsed
813
if (this.Visibility == Visibility.
Collapsed
1306
if (this.Visibility == Visibility.
Collapsed
)
2972
return (value == Visibility.Visible) || (value == Visibility.Hidden) || (value == Visibility.
Collapsed
);
2997
case Visibility.
Collapsed
:
4142
return Visibility.
Collapsed
;
4147
Debug.Assert(value == Visibility.Visible || value == Visibility.Hidden || value == Visibility.
Collapsed
);
4161
case Visibility.
Collapsed
:
System\Windows\UIElement3D.cs (5)
662
return (value == Visibility.Visible) || (value == Visibility.Hidden) || (value == Visibility.
Collapsed
);
687
case Visibility.
Collapsed
:
1327
return Visibility.
Collapsed
;
1332
Debug.Assert(value == Visibility.Visible || value == Visibility.Hidden || value == Visibility.
Collapsed
);
1346
case Visibility.
Collapsed
:
PresentationFramework (50)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (1)
1333
SetValue(UIElement.VisibilityProperty, Visibility.
Collapsed
);
MS\Internal\Controls\TemplatedAdorner.cs (1)
173
Visibility desired = AdornedElement.IsVisible ? Visibility.Visible : Visibility.
Collapsed
;
MS\Internal\Documents\DocumentViewerHelper.cs (1)
66
findToolBarHost.Visibility = Visibility.
Collapsed
;
MS\Internal\Ink\InkCanvasSelection.cs (1)
887
Debug.Assert(_inkCanvas.SelectionAdorner.Visibility == Visibility.
Collapsed
,
System\Windows\Controls\BooleanToVisibilityConverter.cs (1)
38
return (bValue) ? Visibility.Visible : Visibility.
Collapsed
;
System\Windows\Controls\DataGrid.cs (5)
1333
return SelectedItems.Contains(item) ? Visibility.Visible : Visibility.
Collapsed
;
1337
return Visibility.
Collapsed
;
3798
_placeholderVisibility = Visibility.
Collapsed
;
3804
_placeholderVisibility = Visibility.
Collapsed
;
8658
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)
52
return visible ? Visibility.Visible : Visibility.
Collapsed
;
System\Windows\Controls\DataGridRow.cs (5)
395
DependencyProperty.Register("DetailsVisibility", typeof(Visibility), typeof(DataGridRow), new FrameworkPropertyMetadata(Visibility.
Collapsed
, OnNotifyDetailsVisibilityChanged, OnCoerceDetailsVisibility));
724
visibility = Visibility.
Collapsed
;
727
visibility = hasDetailsTemplate && isRealItem ? Visibility.Visible : Visibility.
Collapsed
;
730
visibility = row.IsSelected && hasDetailsTemplate && isRealItem ? Visibility.Visible : Visibility.
Collapsed
;
733
visibility = Visibility.
Collapsed
;
System\Windows\Controls\FlowDocumentScrollViewer.cs (3)
109
_toolBarHost.Visibility = IsToolBarVisible ? Visibility.Visible : Visibility.
Collapsed
;
936
_toolBarHost.Visibility = enable ? Visibility.Visible : Visibility.
Collapsed
;
1754
viewer._toolBarHost.Visibility = (bool)e.NewValue ? Visibility.Visible : Visibility.
Collapsed
;
System\Windows\Controls\InkCanvas.cs (1)
3012
return Visibility.
Collapsed
;
System\Windows\Controls\MenuScrollingVisibilityConverter.cs (2)
89
return Visibility.
Collapsed
;
96
return 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)
551
Visibility 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)
97
if (child.Visibility == Visibility.
Collapsed
)
141
if (child.Visibility == Visibility.
Collapsed
)
215
if (child.Visibility == Visibility.
Collapsed
)
253
if (child.Visibility == Visibility.
Collapsed
)
302
if (child.Visibility != Visibility.
Collapsed
)
322
if (child.Visibility == Visibility.
Collapsed
)
System\Windows\Controls\Primitives\UniformGrid.cs (2)
214
if (child.Visibility != Visibility.
Collapsed
)
266
if (child.Visibility != Visibility.
Collapsed
)
System\Windows\Controls\ScrollViewer.cs (4)
251
&& ( ( _scrollVisibilityX == Visibility.
Collapsed
264
&& ((_scrollVisibilityY == Visibility.
Collapsed
1161
Visibility vv = (vsbv == ScrollBarVisibility.Visible) ? Visibility.Visible : Visibility.
Collapsed
;
1162
Visibility hv = (hsbv == ScrollBarVisibility.Visible) ? Visibility.Visible : Visibility.
Collapsed
;
System\Windows\Controls\VirtualizingStackPanel.cs (4)
9907
Visibility newvv = DoubleUtil.LessThanOrClose(extentSize.Height, viewportSize.Height) ? Visibility.
Collapsed
: Visibility.Visible;
9923
Visibility newhv = DoubleUtil.LessThanOrClose(extentSize.Width, viewportSize.Width) ? Visibility.
Collapsed
: Visibility.Visible;
10624
Visibility newvv = DoubleUtil.LessThanOrClose(extentSize.Height, viewportSize.Height) ? Visibility.
Collapsed
: Visibility.Visible;
10640
Visibility newhv = DoubleUtil.LessThanOrClose(extentSize.Width, viewportSize.Width) ? Visibility.
Collapsed
: Visibility.Visible;
System\Windows\Generated\FrameworkElement.cs (1)
447
if (Visibility == Visibility.
Collapsed
)
System\Windows\Interop\ActiveXHost.cs (1)
864
case Visibility.
Collapsed
:
System\Windows\Window.cs (3)
64
VisibilityProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(Visibility.
Collapsed
, new PropertyChangedCallback(_OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility)));
2169
case Visibility.
Collapsed
:
6757
case Visibility.
Collapsed
:
PresentationUI (10)
InstallationError.xaml.cs (1)
92
RetryButton.Visibility = Visibility.
Collapsed
;
MS\Internal\Documents\Application\StatusInfoItem.cs (2)
124
this.Visibility = Visibility.
Collapsed
;
147
this.Visibility = Visibility.
Collapsed
;
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (6)
1208
ChangeControlVisibility(uie, uie.Visibility == Visibility.
Collapsed
);
1227
uie.Visibility = Visibility.
Collapsed
;
1260
if ((_digSigInfoBar.Visibility == Visibility.
Collapsed
) &&
1261
(_rmInfoBar.Visibility == Visibility.
Collapsed
))
1278
_digSigInfoBar.Visibility = Visibility.
Collapsed
;
1279
_rmInfoBar.Visibility = Visibility.
Collapsed
;
TenFeetInstallationError.xaml.cs (1)
96
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)
1412
if (activatingEventArgs.KeyTipVisibility != Visibility.
Collapsed
)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonScrollButtonVisibilityConverter.cs (3)
86
return Visibility.
Collapsed
;
95
return Visibility.
Collapsed
;
101
return Visibility.
Collapsed
;
Microsoft\Windows\Controls\Ribbon\RibbonApplicationSplitMenuItem.cs (1)
216
e.KeyTipVisibility = Visibility.
Collapsed
;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (2)
52
VisibilityProperty.OverrideMetadata(typeof(RibbonContextualTabGroup), new FrameworkPropertyMetadata(Visibility.
Collapsed
, new PropertyChangedCallback(OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility)));
440
return Visibility.
Collapsed
;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (1)
247
return Visibility.
Collapsed
;
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (2)
110
if (ribbonControl != null && ribbonControl.Visibility != Visibility.
Collapsed
)
113
if (contentChild != null && contentChild.Visibility != Visibility.
Collapsed
)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
2381
category.Visibility = Visibility.
Collapsed
;
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (4)
171
SetAppropriatePresenterVisibility(groupSizeDefinitions[_sizeDefinitionIndex] is RibbonGroupSizeDefinition ? Visibility.Visible : Visibility.
Collapsed
);
996
SetAppropriatePresenterVisibility(GroupSizeDefinitions[_sizeDefinitionIndex] is RibbonGroupSizeDefinition ? Visibility.Visible : Visibility.
Collapsed
);
1140
SetAppropriatePresenterVisibility(Visibility.
Collapsed
);
1164
_templateContentControl.Visibility = (itemsPresenterVisibility == Visibility.Visible ? Visibility.
Collapsed
: Visibility.Visible);
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
658
e.KeyTipVisibility = Visibility.
Collapsed
;
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
378
e.KeyTipVisibility = Visibility.
Collapsed
;
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (3)
659
contextualVisibility = Visibility.
Collapsed
;
665
return Visibility.
Collapsed
;
878
e.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)
238
if (this.Visibility == Visibility.
Collapsed
|| Child == null)
269
if (this.Visibility == Visibility.
Collapsed
|| Child == null)