502 references to Visibility
Microsoft.CodeAnalysis.EditorFeatures.Wpf (18)
InlineRename\UI\Adornment\RenameFlyoutViewModel.cs (4)
70=> Visibility = this.Session.IsCommitInProgress ? Visibility.Collapsed : Visibility.Visible; 217private Visibility _visibility; 218public Visibility Visibility
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (2)
132((UIElement)_textView.Caret).Visibility = Visibility.Visible; 276public Visibility RenameOverloadsVisibility => _model.RenameOverloadsVisibility;
InlineRename\UI\Dashboard\RenameDashboardViewModel.cs (7)
28private Visibility _visibility; 61? Visibility.Visible : Visibility.Collapsed; 182public Visibility Visibility 269public Visibility RenameOverloadsVisibility 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 (3)
13/// Converts the <see cref="OnTheFlyDocsState"/> of the view to a <see cref="Visibility"/> value. 18=> value is OnTheFlyDocsState state && parameter is OnTheFlyDocsState targetState && state == targetState ? Visibility.Visible : Visibility.Collapsed;
Microsoft.VisualStudio.LanguageServices (58)
ChangeSignature\AddParameterDialogViewModel.cs (24)
27TypeIsEmptyImage = Visibility.Visible; 28TypeBindsImage = Visibility.Collapsed; 29TypeDoesNotParseOrInvalidTypeImage = Visibility.Collapsed; 30TypeDoesNotBindImage = Visibility.Collapsed; 101public Visibility TypeBindsImage { get; set; } 102public Visibility TypeDoesNotBindImage { get; set; } 103public Visibility TypeDoesNotParseOrInvalidTypeImage { get; set; } 104public Visibility TypeIsEmptyImage { get; set; } 186TypeIsEmptyImage = Visibility.Visible; 187TypeDoesNotParseOrInvalidTypeImage = Visibility.Collapsed; 188TypeDoesNotBindImage = Visibility.Collapsed; 189TypeBindsImage = Visibility.Collapsed; 196TypeIsEmptyImage = Visibility.Collapsed; 204TypeDoesNotParseOrInvalidTypeImage = Visibility.Visible; 205TypeDoesNotBindImage = Visibility.Collapsed; 206TypeBindsImage = Visibility.Collapsed; 211TypeDoesNotParseOrInvalidTypeImage = Visibility.Visible; 212TypeDoesNotBindImage = Visibility.Collapsed; 213TypeBindsImage = Visibility.Collapsed; 219TypeDoesNotParseOrInvalidTypeImage = Visibility.Collapsed; 221TypeBindsImage = parameterTypeBinds ? Visibility.Visible : Visibility.Collapsed; 222TypeDoesNotBindImage = !parameterTypeBinds ? Visibility.Visible : Visibility.Collapsed;
ChangeSignature\ChangeSignatureDialogViewModel.cs (3)
121parameter.HasParameterNameConflict = Visibility.Collapsed; 132matchingParameter.HasParameterNameConflict = Visibility.Visible; 137matchingParameters.Single().HasParameterNameConflict = Visibility.Collapsed;
ChangeSignature\ChangeSignatureDialogViewModel.ParameterViewModels.cs (6)
50public Visibility HasParameterNameConflict { get; set; } 52public virtual Visibility TypeWarningVisibility => Visibility.Collapsed; 111public override Visibility TypeWarningVisibility => _addedParameter.TypeBinds ? Visibility.Collapsed : Visibility.Visible;
CommonControls\MemberSelection.xaml.cs (2)
48AbstractColumn.Visibility = ViewModel.ShowMakeAbstract ? Visibility.Visible : Visibility.Collapsed;
DocumentOutline\DocumentOutlineViewModel.cs (6)
59private Visibility _visibility_doNotAccessDirectly = Visibility.Visible; 172public Visibility Visibility 268if (Visibility != Visibility.Visible) 287if (Visibility != Visibility.Visible) 340if (Visibility != Visibility.Visible)
EditorConfigSettings\SettingsEditorControl.xaml.cs (2)
137prevFrame.Visibility = Visibility.Hidden; 138currentFrame.Visibility = Visibility.Visible;
InheritanceMargin\InheritanceMarginViewMargin.cs (2)
139!_globalOptions.GetOption(InheritanceMarginOptionsStorage.InheritanceMarginCombinedWithIndicatorMargin) ? Visibility.Visible : Visibility.Collapsed;
PreviewPane\PreviewPane.xaml.cs (8)
68HeaderStackPanel.Visibility = Visibility.Visible; 97OptionsButton.Visibility = Visibility.Collapsed; 139HeaderSeparator.Visibility = Visibility.Visible; 140PreviewDockPanel.Visibility = Visibility.Visible; 320ExpanderToggleButton.Visibility = Visibility.Visible; 402DescriptionDockPanel.Visibility = Visibility.Visible; 406LearnMoreTextBlock.Visibility = Visibility.Visible; 418DescriptionDockPanel.Visibility = Visibility.Collapsed;
Utilities\MemberSymbolViewModel.cs (3)
27public Visibility MakeAbstractVisibility => Symbol.Kind == SymbolKind.Field || Symbol.IsAbstract ? Visibility.Hidden : Visibility.Visible;
ValueTracking\ValueTrackingRoot.xaml.cs (2)
29EmptyTextMessage.Visibility = Visibility.Visible; 33EmptyTextMessage.Visibility = Visibility.Collapsed;
Microsoft.VisualStudio.LanguageServices.UnitTests (12)
ChangeSignature\AddParameterViewModelTests.vb (12)
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)) 268Assert.True(viewModel.TypeIsEmptyImage = Visibility.Visible) 269Assert.True(viewModel.TypeDoesNotParseOrInvalidTypeImage = Visibility.Collapsed) 270Assert.True(viewModel.TypeDoesNotBindImage = Visibility.Collapsed) 271Assert.True(viewModel.TypeBindsImage = Visibility.Collapsed)
PresentationCore (64)
MS\Internal\Automation\ElementUtil.cs (1)
260if ( !(sibling is UIElement) || (((UIElement)sibling).Visibility == Visibility.Visible ) )
MS\Internal\KnownBoxes.cs (6)
30internal static object VisibleBox = Visibility.Visible; 31internal static object HiddenBox = Visibility.Hidden; 32internal static object CollapsedBox = Visibility.Collapsed; 34internal static object Box(Visibility value) 36if (value == Visibility.Visible) 40else if (value == Visibility.Hidden)
System\Windows\Input\AccessKeyManager.cs (2)
501Visibility visibility; 515if (visibility != Visibility.Visible)
System\Windows\LayoutManager.cs (1)
904if (p != null && p.Visibility != Visibility.Collapsed) //not yet a root or a collapsed node
System\Windows\UIElement.cs (30)
118VisibilityCache = (Visibility) VisibilityProperty.GetDefaultValue(DependencyObjectType); 178if(this.Visibility == Visibility.Collapsed) 600if (this.Visibility == Visibility.Collapsed 813if (this.Visibility == Visibility.Collapsed 1306if (this.Visibility == Visibility.Collapsed) 2698if(this.Visibility == Visibility.Visible) 2950typeof(Visibility), 2961Visibility newVisibility = (Visibility) e.NewValue; 2971Visibility value = (Visibility) o; 2972return (value == Visibility.Visible) || (value == Visibility.Hidden) || (value == Visibility.Collapsed); 2979public Visibility Visibility 2985private void switchVisibilityIfNeeded(Visibility visibility) 2989case Visibility.Visible: 2993case Visibility.Hidden: 2997case Visibility.Collapsed: 3839bool isVisible = (Visibility == Visibility.Visible); 4128private Visibility VisibilityCache 4134return Visibility.Visible; 4138return Visibility.Hidden; 4142return Visibility.Collapsed; 4147Debug.Assert(value == Visibility.Visible || value == Visibility.Hidden || value == Visibility.Collapsed); 4151case Visibility.Visible: 4156case Visibility.Hidden: 4161case Visibility.Collapsed:
System\Windows\UIElement3D.cs (24)
66VisibilityCache = (Visibility)VisibilityProperty.GetDefaultValue(DependencyObjectType); 651Visibility newVisibility = (Visibility)e.NewValue; 661Visibility value = (Visibility)o; 662return (value == Visibility.Visible) || (value == Visibility.Hidden) || (value == Visibility.Collapsed); 669public Visibility Visibility 675private void switchVisibilityIfNeeded(Visibility visibility) 679case Visibility.Visible: 683case Visibility.Hidden: 687case Visibility.Collapsed: 1050bool isVisible = (Visibility == Visibility.Visible); 1313private Visibility VisibilityCache 1319return Visibility.Visible; 1323return Visibility.Hidden; 1327return Visibility.Collapsed; 1332Debug.Assert(value == Visibility.Visible || value == Visibility.Hidden || value == Visibility.Collapsed); 1336case Visibility.Visible: 1341case Visibility.Hidden: 1346case Visibility.Collapsed:
PresentationFramework (191)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (1)
1333SetValue(UIElement.VisibilityProperty, Visibility.Collapsed);
MS\Internal\Controls\TemplatedAdorner.cs (3)
173Visibility desired = AdornedElement.IsVisible ? Visibility.Visible : Visibility.Collapsed;
MS\Internal\Documents\DocumentViewerHelper.cs (2)
47findToolBarHost.Visibility = Visibility.Visible; 66findToolBarHost.Visibility = Visibility.Collapsed;
MS\Internal\Ink\InkCanvasSelection.cs (2)
880Debug.Assert(_inkCanvas.SelectionAdorner.Visibility == Visibility.Visible, 887Debug.Assert(_inkCanvas.SelectionAdorner.Visibility == Visibility.Collapsed,
MS\Internal\Ink\LassoSelectionBehavior.cs (1)
392if (childElement.Visibility != Visibility.Visible)
System\Windows\Application.cs (2)
1730if (window.Visibility != Visibility.Visible) 2343w.Visibility = Visibility.Visible;
System\Windows\Controls\BooleanToVisibilityConverter.cs (5)
38return (bValue) ? Visibility.Visible : Visibility.Collapsed; 51if (value is Visibility) 53return (Visibility)value == Visibility.Visible;
System\Windows\Controls\DataGrid.cs (15)
1122internal Visibility PlaceholderVisibility 1151if (row.DetailsVisibility == Visibility.Visible && row.DetailsPresenter != null) 1299public void SetDetailsVisibilityForItem(object item, Visibility detailsVisibility) 1315public Visibility GetDetailsVisibilityForItem(object item) 1320return (Visibility)detailsVisibility; 1333return SelectedItems.Contains(item) ? Visibility.Visible : Visibility.Collapsed; 1335return Visibility.Visible; 1337return Visibility.Collapsed; 3789_placeholderVisibility = Visibility.Visible; 3798_placeholderVisibility = Visibility.Collapsed; 3804_placeholderVisibility = Visibility.Collapsed; 3964row.DetailsVisibility == Visibility.Visible && 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\DataGridColumn.cs (11)
1506typeof(Visibility), 1508new FrameworkPropertyMetadata(Visibility.Visible, new PropertyChangedCallback(OnVisibilityPropertyChanged))); 1513public Visibility Visibility 1515get { return (Visibility)GetValue(VisibilityProperty); } 1524Visibility oldVisibility = (Visibility)eventArgs.OldValue; 1525Visibility newVisibility = (Visibility)eventArgs.NewValue; 1527if (oldVisibility != Visibility.Visible && newVisibility != Visibility.Visible) 1545return Visibility == Visibility.Visible;
System\Windows\Controls\DataGridHeadersVisibilityToVisibilityConverter.cs (3)
50if (targetType == typeof(Visibility)) 52return visible ? Visibility.Visible : Visibility.Collapsed;
System\Windows\Controls\DataGridRow.cs (11)
385public Visibility DetailsVisibility 387get { return (Visibility)GetValue(DetailsVisibilityProperty); } 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; 1346get { return _detailsPresenter != null && _detailsPresenter.Visibility == Visibility.Visible; }
System\Windows\Controls\FlowDocumentScrollViewer.cs (6)
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\GridViewHeaderRowPresenter.cs (7)
478_indicator.Visibility = _floatingHeader.Visibility = isDisplayingFloatingHeader ? Visibility.Visible : Visibility.Hidden; 1139indicator.Visibility = Visibility.Hidden; 1193header.Visibility = Visibility.Hidden; 1211_floatingHeader.Visibility = Visibility.Hidden; 1545_floatingHeader.Visibility = Visibility.Hidden; 1548_indicator.Visibility = Visibility.Hidden;
System\Windows\Controls\InkCanvas.cs (2)
3008return Visibility.Visible; 3012return Visibility.Collapsed;
System\Windows\Controls\MenuScrollingVisibilityConverter.cs (7)
45values[0] is not Visibility || 63Visibility computedVerticalScrollBarVisibility = (Visibility)values[0]; 64if (computedVerticalScrollBarVisibility == Visibility.Visible) 89return Visibility.Collapsed; 93return Visibility.Visible; 96return Visibility.Collapsed;
System\Windows\Controls\Primitives\CalendarItem.cs (5)
1077childButton.Visibility = Visibility.Visible; 1083childButton.Visibility = Visibility.Hidden; 1126childButton.Visibility = Visibility.Hidden; 1252childButton.Visibility = Visibility.Visible; 1296childButton.Visibility = Visibility.Visible;
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (12)
82public Visibility SeparatorVisibility 84get { return (Visibility)GetValue(SeparatorVisibilityProperty); } 92DependencyProperty.Register("SeparatorVisibility", typeof(Visibility), typeof(DataGridColumnHeader), new FrameworkPropertyMetadata(Visibility.Visible)); 516_leftGripper.Visibility = Visibility.Visible; 520_leftGripper.Visibility = Visibility.Collapsed; 534_rightGripper.Visibility = Visibility.Visible; 538_rightGripper.Visibility = Visibility.Collapsed; 566bool oldIsVisible = (((Visibility)e.OldValue) == Visibility.Visible); 567bool newIsVisible = (((Visibility)e.NewValue) == Visibility.Visible);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (5)
551Visibility dragIndicatorVisibility = shouldDisplayDragIndicator ? Visibility.Visible : Visibility.Collapsed; 821_columnHeaderDragIndicator.Visibility = Visibility.Collapsed; 833_columnHeaderDropLocationIndicator.Visibility = Visibility.Collapsed;
System\Windows\Controls\Primitives\DataGridRowHeader.cs (8)
160public Visibility SeparatorVisibility 162get { return (Visibility)GetValue(SeparatorVisibilityProperty); } 170DependencyProperty.Register("SeparatorVisibility", typeof(Visibility), typeof(DataGridRowHeader), new FrameworkPropertyMetadata(Visibility.Visible)); 651_topGripper.Visibility = Visibility.Visible; 655_topGripper.Visibility = Visibility.Collapsed; 667_bottomGripper.Visibility = Visibility.Visible; 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\Track.cs (4)
651if (Visibility != Visibility.Hidden) 653Visibility = Visibility.Hidden; 662else if (Visibility != Visibility.Visible) 664Visibility = Visibility.Visible;
System\Windows\Controls\Primitives\UniformGrid.cs (2)
214if (child.Visibility != Visibility.Collapsed) 266if (child.Visibility != Visibility.Collapsed)
System\Windows\Controls\ScrollViewer.cs (26)
251&& ( ( _scrollVisibilityX == Visibility.Collapsed 253|| ( _scrollVisibilityX == Visibility.Visible 264&& ((_scrollVisibilityY == Visibility.Collapsed 266|| (_scrollVisibilityY == Visibility.Visible 334public Visibility ComputedHorizontalScrollBarVisibility 342public Visibility ComputedVerticalScrollBarVisibility 542typeof(Visibility), 544new FrameworkPropertyMetadata(Visibility.Visible)); 560typeof(Visibility), 562new FrameworkPropertyMetadata(Visibility.Visible)); 1161Visibility vv = (vsbv == ScrollBarVisibility.Visible) ? Visibility.Visible : Visibility.Collapsed; 1162Visibility hv = (hsbv == ScrollBarVisibility.Visible) ? Visibility.Visible : Visibility.Collapsed; 1202if (_scrollVisibilityX != Visibility.Visible) 1204_scrollVisibilityX = Visibility.Visible; 1211if (_scrollVisibilityY != Visibility.Visible) 1213_scrollVisibilityY = Visibility.Visible; 1247if (_scrollVisibilityX != Visibility.Visible) 1249_scrollVisibilityX = Visibility.Visible; 1255if (_scrollVisibilityY != Visibility.Visible) 1257_scrollVisibilityY = Visibility.Visible; 2876private Visibility _scrollVisibilityX; 2877private Visibility _scrollVisibilityY;
System\Windows\Controls\TabControl.cs (1)
462if (tabItem != null && tabItem.IsEnabled && tabItem.Visibility == Visibility.Visible)
System\Windows\Controls\VirtualizingStackPanel.cs (16)
9906Visibility oldvv = sv.ComputedVerticalScrollBarVisibility; 9907Visibility newvv = DoubleUtil.LessThanOrClose(extentSize.Height, viewportSize.Height) ? Visibility.Collapsed : Visibility.Visible; 9922Visibility oldhv = sv.ComputedHorizontalScrollBarVisibility; 9923Visibility newhv = DoubleUtil.LessThanOrClose(extentSize.Width, viewportSize.Width) ? Visibility.Collapsed : Visibility.Visible; 10623Visibility oldvv = sv.ComputedVerticalScrollBarVisibility; 10624Visibility newvv = DoubleUtil.LessThanOrClose(extentSize.Height, viewportSize.Height) ? Visibility.Collapsed : Visibility.Visible; 10639Visibility oldhv = sv.ComputedHorizontalScrollBarVisibility; 10640Visibility newhv = DoubleUtil.LessThanOrClose(extentSize.Width, viewportSize.Width) ? Visibility.Collapsed : Visibility.Visible;
System\Windows\Documents\FixedPage.cs (2)
127path.Visibility = Visibility.Visible; 131path.Visibility = Visibility.Hidden;
System\Windows\Generated\FrameworkElement.cs (1)
447if (Visibility == Visibility.Collapsed)
System\Windows\Interop\ActiveXHost.cs (3)
861case Visibility.Visible: 864case Visibility.Collapsed: 867case Visibility.Hidden:
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
3999bamlMember.TypeConverterType = typeof(System.Windows.Visibility);
System\Windows\Shell\ThumbButtonInfo.cs (4)
23typeof(Visibility), 25new PropertyMetadata(Visibility.Visible)); 30public Visibility Visibility 32get { return (Visibility)GetValue(VisibilityProperty); }
System\Windows\Window.cs (17)
64VisibilityProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(Visibility.Collapsed, new PropertyChangedCallback(_OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility))); 173UpdateVisibilityProperty(Visibility.Visible); 201UpdateVisibilityProperty(Visibility.Hidden); 2162internal static bool VisibilityToBool(Visibility v) 2166case Visibility.Visible: 2168case Visibility.Hidden: 2169case Visibility.Collapsed: 5065UpdateVisibilityProperty(Visibility.Hidden); 5077UpdateVisibilityProperty(Visibility.Visible); 5368Visibility newValue = (Visibility)value; 5369if (newValue == Visibility.Visible) 5407bool visibilityValue = VisibilityToBool((Visibility) e.NewValue); 5461private void UpdateVisibilityProperty(Visibility value) 6757case Visibility.Collapsed: 6762case Visibility.Hidden: 6770case Visibility.Visible:
PresentationFramework.Aero (5)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
163if (SeparatorVisibility == Visibility.Visible)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (4)
150public Visibility SeparatorVisibility 152get { return (Visibility)GetValue(SeparatorVisibilityProperty); } 160DependencyProperty.Register("SeparatorVisibility", typeof(Visibility), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(Visibility.Visible));
PresentationFramework.Aero2 (5)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
163if (SeparatorVisibility == Visibility.Visible)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (4)
150public Visibility SeparatorVisibility 152get { return (Visibility)GetValue(SeparatorVisibilityProperty); } 160DependencyProperty.Register("SeparatorVisibility", typeof(Visibility), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(Visibility.Visible));
PresentationFramework.AeroLite (5)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
114if (SeparatorVisibility == Visibility.Visible)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (4)
150public Visibility SeparatorVisibility 152get { return (Visibility)GetValue(SeparatorVisibilityProperty); } 160DependencyProperty.Register("SeparatorVisibility", typeof(Visibility), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(Visibility.Visible));
PresentationFramework.Classic (6)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
60if (SeparatorVisibility == Visibility.Visible && SeparatorBrush != null) 78if (SeparatorVisibility == Visibility.Visible && SeparatorBrush != null)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (4)
150public Visibility SeparatorVisibility 152get { return (Visibility)GetValue(SeparatorVisibilityProperty); } 160DependencyProperty.Register("SeparatorVisibility", typeof(Visibility), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(Visibility.Visible));
PresentationFramework.Luna (5)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
255if (SeparatorVisibility == Visibility.Visible)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (4)
150public Visibility SeparatorVisibility 152get { return (Visibility)GetValue(SeparatorVisibilityProperty); } 160DependencyProperty.Register("SeparatorVisibility", typeof(Visibility), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(Visibility.Visible));
PresentationFramework.Royale (5)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
177if (SeparatorVisibility == Visibility.Visible)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (4)
150public Visibility SeparatorVisibility 152get { return (Visibility)GetValue(SeparatorVisibilityProperty); } 160DependencyProperty.Register("SeparatorVisibility", typeof(Visibility), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(Visibility.Visible));
PresentationUI (24)
InstallationError.xaml.cs (5)
87RetryButton.Visibility = Visibility.Visible; 92RetryButton.Visibility = Visibility.Collapsed; 96GetWinFXButton.Visibility = Visibility.Visible; 133SupportUriText.Visibility = Visibility.Visible; 178LogFileButton.Visibility = Visibility.Visible;
MS\Internal\Documents\Application\StatusInfoItem.cs (5)
70public Visibility Visibility 120this.Visibility = Visibility.Visible; 124this.Visibility = Visibility.Collapsed; 143this.Visibility = Visibility.Visible; 147this.Visibility = Visibility.Collapsed;
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (7)
1208ChangeControlVisibility(uie, uie.Visibility == Visibility.Collapsed); 1223uie.Visibility = Visibility.Visible; 1227uie.Visibility = Visibility.Collapsed; 1260if ((_digSigInfoBar.Visibility == Visibility.Collapsed) && 1261(_rmInfoBar.Visibility == Visibility.Collapsed)) 1278_digSigInfoBar.Visibility = Visibility.Collapsed; 1279_rmInfoBar.Visibility = Visibility.Collapsed;
MS\Internal\Documents\FindToolBar.xaml.cs (2)
219FindTextLabel.Visibility = Visibility.Hidden; 223FindTextLabel.Visibility = Visibility.Visible;
TenFeetInstallationError.xaml.cs (5)
89RetryButton.Visibility = Visibility.Visible; 96RetryButton.Visibility = Visibility.Collapsed; 100GetWinFXButton.Visibility = Visibility.Visible; 137SupportUriText.Visibility = Visibility.Visible; 182LogFileButton.Visibility = Visibility.Visible;
Roslyn.VisualStudio.DiagnosticsWindow (5)
OptionPages\InternalOptionsControl.cs (5)
58item.Visibility = Visibility.Collapsed; 62item.Visibility = Visibility.Visible; 68clearButton.Click += (o, a) => optionsPanel.Children.OfType<CheckBox>().Do(c => c.Visibility = Visibility.Visible); 83checkAllButton.Click += (o, a) => optionsPanel.Children.OfType<CheckBox>().Where(c => c.Visibility == Visibility.Visible).Do(c => c.IsChecked = true); 86uncheckAllButton.Click += (o, a) => optionsPanel.Children.OfType<CheckBox>().Where(c => c.Visibility == Visibility.Visible).Do(c => c.IsChecked = false);
System.Windows.Controls.Ribbon (91)
Microsoft\Windows\Controls\ActivatingKeyTipEventArgs.cs (2)
40KeyTipVisibility = Visibility.Visible; 118public Visibility KeyTipVisibility
Microsoft\Windows\Controls\KeyTipService.cs (3)
1360uie.Visibility != Visibility.Visible) 1380if (activatingEventArgs.KeyTipVisibility == Visibility.Visible) 1412if (activatingEventArgs.KeyTipVisibility != Visibility.Collapsed)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonContextualTabGroupsPanel.cs (2)
51if (tabGroupHeader.Visibility == Visibility.Visible && tabGroupHeader.FirstVisibleTab != null && DoubleUtil.GreaterThanOrClose(remainingSpace, 0.0)) 143if (tabGroupHeader.Visibility == Visibility.Visible && tabGroupHeader.ArrangeWidth > 0)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonScrollButtonVisibilityConverter.cs (8)
45values[0] is not Visibility || 63Visibility computedScrollBarVisibility = (Visibility)values[0]; 64if (computedScrollBarVisibility == Visibility.Visible) 86return Visibility.Collapsed; 95return Visibility.Collapsed; 98return Visibility.Visible; 101return Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (4)
64if (groupHeaderItemsControl != null && groupHeaderItemsControl.Visibility == Visibility.Visible) 101if (qat.Visibility == Visibility.Visible) 181if (tabGroups != null && tabGroups.Visibility == Visibility.Visible) 267if (tab.Visibility == Visibility.Visible && tab.RibbonTabHeader != null)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (4)
192public Visibility WindowIconVisibility 194get { return (Visibility)GetValue(WindowIconVisibilityProperty); } 203typeof(Visibility), 205new UIPropertyMetadata(Visibility.Visible, OnWindowIconVisibilityChanged));
Microsoft\Windows\Controls\Ribbon\RibbonApplicationSplitMenuItem.cs (1)
216e.KeyTipVisibility = Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (5)
52VisibilityProperty.OverrideMetadata(typeof(RibbonContextualTabGroup), new FrameworkPropertyMetadata(Visibility.Collapsed, new PropertyChangedCallback(OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility))); 237if (tab.Visibility == Visibility.Visible) 439if ((Visibility)baseValue == Visibility.Hidden) 440return Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (2)
189if (tab != null && tab.Visibility == Visibility.Visible) 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 (2)
2377category.Visibility = Visibility.Visible; 2381category.Visibility = Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (4)
621typeof(Visibility), 626new FrameworkPropertyMetadata(Visibility.Visible)); 632public Visibility HeaderVisibility 634get { return (Visibility)GetValue(HeaderVisibilityProperty); }
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (16)
171SetAppropriatePresenterVisibility(groupSizeDefinitions[_sizeDefinitionIndex] is RibbonGroupSizeDefinition ? Visibility.Visible : Visibility.Collapsed); 996SetAppropriatePresenterVisibility(GroupSizeDefinitions[_sizeDefinitionIndex] is RibbonGroupSizeDefinition ? Visibility.Visible : Visibility.Collapsed); 1123if (SetAppropriatePresenterVisibility(Visibility.Visible)) 1140SetAppropriatePresenterVisibility(Visibility.Collapsed); 1150private bool SetAppropriatePresenterVisibility(Visibility itemsPresenterVisibility) 1156if (itemsPresenterVisibility == Visibility.Visible) 1164_templateContentControl.Visibility = (itemsPresenterVisibility == Visibility.Visible ? Visibility.Collapsed : Visibility.Visible); 1647e.KeyTipVisibility = Visibility.Hidden; 1710e.KeyTipVisibility = Visibility.Hidden; 1715e.KeyTipVisibility = Visibility.Hidden; 1740e.KeyTipVisibility = Visibility.Hidden; 1745e.KeyTipVisibility = Visibility.Hidden;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
713return container != null && container.Visibility == Visibility.Visible; 799if (category.Visibility != Visibility.Visible)
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (3)
614ribbonControl.Visibility == Visibility.Visible && 619contentChild.Visibility == Visibility.Visible && 658e.KeyTipVisibility = Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
378e.KeyTipVisibility = Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (15)
47VisibilityProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(Visibility.Visible, new PropertyChangedCallback(OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility))); 640Visibility baseVisibility = (Visibility)value; 641Visibility contextualVisibility = Visibility.Visible; 659contextualVisibility = Visibility.Collapsed; 662if (baseVisibility != Visibility.Visible || 663contextualVisibility != Visibility.Visible) 665return Visibility.Collapsed; 669return Visibility.Visible; 685(Visibility)e.OldValue == Visibility.Visible && 686(Visibility)e.NewValue != Visibility.Visible) 878e.KeyTipVisibility = Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (4)
658e.KeyTipVisibility = Visibility.Hidden; 670e.KeyTipVisibility = Visibility.Hidden; 685e.KeyTipVisibility = Visibility.Hidden; 691e.KeyTipVisibility = Visibility.Hidden;
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (8)
274_textBlock1.Visibility = Visibility.Collapsed; 278_textBlock2.Visibility = Visibility.Visible; 306_textBlock1.Visibility = Visibility.Visible; 311_textBlock2.Visibility = Visibility.Visible; 320_textBlock1.Visibility = Visibility.Visible; 324_textBlock2.Visibility = Visibility.Collapsed; 343_textBlock1.Visibility = Visibility.Visible; 379_textBlock1.Visibility = Visibility.Visible;
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (1)
305internal void ChangeIconVisibility(Visibility newVisibility)
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
143if (childItemsControl != null && childItemsControl.Visibility == Visibility.Visible) 504if (childItemsControl != null && childItemsControl.Visibility == Visibility.Visible)
WindowsFormsIntegration (8)
System\Windows\Integration\ElementHostPropertyMap.cs (3)
195SW.Visibility toVisibility = ((fromVisible) ? SW.Visibility.Visible : SW.Visibility.Hidden);
System\Windows\Integration\WindowsFormsHost.cs (2)
238if (this.Visibility == Visibility.Collapsed || Child == null) 269if (this.Visibility == Visibility.Collapsed || Child == null)
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (3)
267if (value is SW.Visibility) 273windowsFormsHost.Child.Visible = ((SW.Visibility)value == SW.Visibility.Visible);