510 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)
31TypeIsEmptyImage = Visibility.Visible; 32TypeBindsImage = Visibility.Collapsed; 33TypeDoesNotParseOrInvalidTypeImage = Visibility.Collapsed; 34TypeDoesNotBindImage = Visibility.Collapsed; 105public Visibility TypeBindsImage { get; set; } 106public Visibility TypeDoesNotBindImage { get; set; } 107public Visibility TypeDoesNotParseOrInvalidTypeImage { get; set; } 108public Visibility TypeIsEmptyImage { get; set; } 190TypeIsEmptyImage = Visibility.Visible; 191TypeDoesNotParseOrInvalidTypeImage = Visibility.Collapsed; 192TypeDoesNotBindImage = Visibility.Collapsed; 193TypeBindsImage = Visibility.Collapsed; 200TypeIsEmptyImage = Visibility.Collapsed; 208TypeDoesNotParseOrInvalidTypeImage = Visibility.Visible; 209TypeDoesNotBindImage = Visibility.Collapsed; 210TypeBindsImage = Visibility.Collapsed; 215TypeDoesNotParseOrInvalidTypeImage = Visibility.Visible; 216TypeDoesNotBindImage = Visibility.Collapsed; 217TypeBindsImage = Visibility.Collapsed; 223TypeDoesNotParseOrInvalidTypeImage = Visibility.Collapsed; 225TypeBindsImage = parameterTypeBinds ? Visibility.Visible : Visibility.Collapsed; 226TypeDoesNotBindImage = !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.CSharp (4)
Options\AdvancedOptionPageControl.xaml.cs (4)
233Customized_Theme_Warning.Visibility = isSupportedTheme && isThemeCustomized ? Visibility.Visible : Visibility.Collapsed; 234Custom_VS_Theme_Warning.Visibility = isSupportedTheme ? Visibility.Collapsed : Visibility.Visible;
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)
Microsoft.VisualStudio.LanguageServices.VisualBasic (4)
Options\AdvancedOptionPageControl.xaml.vb (4)
223Customized_Theme_Warning.Visibility = If(isSupportedTheme AndAlso isCustomized, Visibility.Visible, Visibility.Collapsed) 224Custom_VS_Theme_Warning.Visibility = If(isSupportedTheme, Visibility.Collapsed, Visibility.Visible)
PresentationCore (64)
MS\Internal\Automation\ElementUtil.cs (1)
275if ( !(sibling is UIElement) || (((UIElement)sibling).Visibility == Visibility.Visible ) )
MS\Internal\KnownBoxes.cs (6)
31internal static object VisibleBox = Visibility.Visible; 32internal static object HiddenBox = Visibility.Hidden; 33internal static object CollapsedBox = Visibility.Collapsed; 35internal static object Box(Visibility value) 37if (value == Visibility.Visible) 41else if (value == Visibility.Hidden)
System\Windows\Input\AccessKeyManager.cs (2)
513Visibility visibility; 527if (visibility != Visibility.Visible)
System\Windows\LayoutManager.cs (1)
920if (p != null && p.Visibility != Visibility.Collapsed) //not yet a root or a collapsed node
System\Windows\UIElement.cs (30)
123VisibilityCache = (Visibility) VisibilityProperty.GetDefaultValue(DependencyObjectType); 183if(this.Visibility == Visibility.Collapsed) 605if (this.Visibility == Visibility.Collapsed 818if (this.Visibility == Visibility.Collapsed 1311if (this.Visibility == Visibility.Collapsed) 2703if(this.Visibility == Visibility.Visible) 2955typeof(Visibility), 2966Visibility newVisibility = (Visibility) e.NewValue; 2976Visibility value = (Visibility) o; 2977return (value == Visibility.Visible) || (value == Visibility.Hidden) || (value == Visibility.Collapsed); 2984public Visibility Visibility 2990private void switchVisibilityIfNeeded(Visibility visibility) 2994case Visibility.Visible: 2998case Visibility.Hidden: 3002case Visibility.Collapsed: 3844bool isVisible = (Visibility == Visibility.Visible); 4133private Visibility VisibilityCache 4139return Visibility.Visible; 4143return Visibility.Hidden; 4147return Visibility.Collapsed; 4152Debug.Assert(value == Visibility.Visible || value == Visibility.Hidden || value == Visibility.Collapsed); 4156case Visibility.Visible: 4161case Visibility.Hidden: 4166case Visibility.Collapsed:
System\Windows\UIElement3D.cs (24)
81VisibilityCache = (Visibility)VisibilityProperty.GetDefaultValue(DependencyObjectType); 666Visibility newVisibility = (Visibility)e.NewValue; 676Visibility value = (Visibility)o; 677return (value == Visibility.Visible) || (value == Visibility.Hidden) || (value == Visibility.Collapsed); 684public Visibility Visibility 690private void switchVisibilityIfNeeded(Visibility visibility) 694case Visibility.Visible: 698case Visibility.Hidden: 702case Visibility.Collapsed: 1065bool isVisible = (Visibility == Visibility.Visible); 1328private Visibility VisibilityCache 1334return Visibility.Visible; 1338return Visibility.Hidden; 1342return Visibility.Collapsed; 1347Debug.Assert(value == Visibility.Visible || value == Visibility.Hidden || value == Visibility.Collapsed); 1351case Visibility.Visible: 1356case Visibility.Hidden: 1361case Visibility.Collapsed:
PresentationFramework (191)
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (1)
1343SetValue(UIElement.VisibilityProperty, Visibility.Collapsed);
MS\Internal\Controls\TemplatedAdorner.cs (3)
180Visibility desired = AdornedElement.IsVisible ? Visibility.Visible : Visibility.Collapsed;
MS\Internal\Documents\DocumentViewerHelper.cs (2)
49findToolBarHost.Visibility = Visibility.Visible; 68findToolBarHost.Visibility = Visibility.Collapsed;
MS\Internal\Ink\InkCanvasSelection.cs (2)
892Debug.Assert(_inkCanvas.SelectionAdorner.Visibility == Visibility.Visible, 899Debug.Assert(_inkCanvas.SelectionAdorner.Visibility == Visibility.Collapsed,
MS\Internal\Ink\LassoSelectionBehavior.cs (1)
401if (childElement.Visibility != Visibility.Visible)
System\Windows\Application.cs (2)
1743if (window.Visibility != Visibility.Visible) 2356w.Visibility = Visibility.Visible;
System\Windows\Controls\BooleanToVisibilityConverter.cs (5)
45return (bValue) ? Visibility.Visible : Visibility.Collapsed; 58if (value is Visibility) 60return (Visibility)value == Visibility.Visible;
System\Windows\Controls\DataGrid.cs (15)
1125internal Visibility PlaceholderVisibility 1154if (row.DetailsVisibility == Visibility.Visible && row.DetailsPresenter != null) 1302public void SetDetailsVisibilityForItem(object item, Visibility detailsVisibility) 1318public Visibility GetDetailsVisibilityForItem(object item) 1323return (Visibility)detailsVisibility; 1336return SelectedItems.Contains(item) ? Visibility.Visible : Visibility.Collapsed; 1338return Visibility.Visible; 1340return Visibility.Collapsed; 3792_placeholderVisibility = Visibility.Visible; 3801_placeholderVisibility = Visibility.Collapsed; 3807_placeholderVisibility = Visibility.Collapsed; 3967row.DetailsVisibility == Visibility.Visible && 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\DataGridColumn.cs (11)
1509typeof(Visibility), 1511new FrameworkPropertyMetadata(Visibility.Visible, new PropertyChangedCallback(OnVisibilityPropertyChanged))); 1516public Visibility Visibility 1518get { return (Visibility)GetValue(VisibilityProperty); } 1527Visibility oldVisibility = (Visibility)eventArgs.OldValue; 1528Visibility newVisibility = (Visibility)eventArgs.NewValue; 1530if (oldVisibility != Visibility.Visible && newVisibility != Visibility.Visible) 1548return Visibility == Visibility.Visible;
System\Windows\Controls\DataGridHeadersVisibilityToVisibilityConverter.cs (3)
52if (targetType == typeof(Visibility)) 54return visible ? Visibility.Visible : Visibility.Collapsed;
System\Windows\Controls\DataGridRow.cs (11)
389public Visibility DetailsVisibility 391get { return (Visibility)GetValue(DetailsVisibilityProperty); } 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; 1350get { return _detailsPresenter != null && _detailsPresenter.Visibility == Visibility.Visible; }
System\Windows\Controls\FlowDocumentScrollViewer.cs (6)
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\GridViewHeaderRowPresenter.cs (7)
481_indicator.Visibility = _floatingHeader.Visibility = isDisplayingFloatingHeader ? Visibility.Visible : Visibility.Hidden; 1142indicator.Visibility = Visibility.Hidden; 1196header.Visibility = Visibility.Hidden; 1214_floatingHeader.Visibility = Visibility.Hidden; 1548_floatingHeader.Visibility = Visibility.Hidden; 1551_indicator.Visibility = Visibility.Hidden;
System\Windows\Controls\InkCanvas.cs (2)
3020return Visibility.Visible; 3024return Visibility.Collapsed;
System\Windows\Controls\MenuScrollingVisibilityConverter.cs (7)
51values[0] is not Visibility || 69Visibility computedVerticalScrollBarVisibility = (Visibility)values[0]; 70if (computedVerticalScrollBarVisibility == Visibility.Visible) 95return Visibility.Collapsed; 99return Visibility.Visible; 102return Visibility.Collapsed;
System\Windows\Controls\Primitives\CalendarItem.cs (5)
1082childButton.Visibility = Visibility.Visible; 1088childButton.Visibility = Visibility.Hidden; 1131childButton.Visibility = Visibility.Hidden; 1257childButton.Visibility = Visibility.Visible; 1301childButton.Visibility = Visibility.Visible;
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (12)
87public Visibility SeparatorVisibility 89get { return (Visibility)GetValue(SeparatorVisibilityProperty); } 97DependencyProperty.Register("SeparatorVisibility", typeof(Visibility), typeof(DataGridColumnHeader), new FrameworkPropertyMetadata(Visibility.Visible)); 521_leftGripper.Visibility = Visibility.Visible; 525_leftGripper.Visibility = Visibility.Collapsed; 539_rightGripper.Visibility = Visibility.Visible; 543_rightGripper.Visibility = Visibility.Collapsed; 571bool oldIsVisible = (((Visibility)e.OldValue) == Visibility.Visible); 572bool newIsVisible = (((Visibility)e.NewValue) == Visibility.Visible);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (5)
556Visibility dragIndicatorVisibility = shouldDisplayDragIndicator ? Visibility.Visible : Visibility.Collapsed; 826_columnHeaderDragIndicator.Visibility = Visibility.Collapsed; 838_columnHeaderDropLocationIndicator.Visibility = Visibility.Collapsed;
System\Windows\Controls\Primitives\DataGridRowHeader.cs (8)
165public Visibility SeparatorVisibility 167get { return (Visibility)GetValue(SeparatorVisibilityProperty); } 175DependencyProperty.Register("SeparatorVisibility", typeof(Visibility), typeof(DataGridRowHeader), new FrameworkPropertyMetadata(Visibility.Visible)); 656_topGripper.Visibility = Visibility.Visible; 660_topGripper.Visibility = Visibility.Collapsed; 672_bottomGripper.Visibility = Visibility.Visible; 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\Track.cs (4)
662if (Visibility != Visibility.Hidden) 664Visibility = Visibility.Hidden; 673else if (Visibility != Visibility.Visible) 675Visibility = Visibility.Visible;
System\Windows\Controls\Primitives\UniformGrid.cs (2)
222if (child.Visibility != Visibility.Collapsed) 274if (child.Visibility != Visibility.Collapsed)
System\Windows\Controls\ScrollViewer.cs (26)
259&& ( ( _scrollVisibilityX == Visibility.Collapsed 261|| ( _scrollVisibilityX == Visibility.Visible 272&& ((_scrollVisibilityY == Visibility.Collapsed 274|| (_scrollVisibilityY == Visibility.Visible 342public Visibility ComputedHorizontalScrollBarVisibility 350public Visibility ComputedVerticalScrollBarVisibility 550typeof(Visibility), 552new FrameworkPropertyMetadata(Visibility.Visible)); 568typeof(Visibility), 570new FrameworkPropertyMetadata(Visibility.Visible)); 1169Visibility vv = (vsbv == ScrollBarVisibility.Visible) ? Visibility.Visible : Visibility.Collapsed; 1170Visibility hv = (hsbv == ScrollBarVisibility.Visible) ? Visibility.Visible : Visibility.Collapsed; 1210if (_scrollVisibilityX != Visibility.Visible) 1212_scrollVisibilityX = Visibility.Visible; 1219if (_scrollVisibilityY != Visibility.Visible) 1221_scrollVisibilityY = Visibility.Visible; 1255if (_scrollVisibilityX != Visibility.Visible) 1257_scrollVisibilityX = Visibility.Visible; 1263if (_scrollVisibilityY != Visibility.Visible) 1265_scrollVisibilityY = Visibility.Visible; 2884private Visibility _scrollVisibilityX; 2885private Visibility _scrollVisibilityY;
System\Windows\Controls\TabControl.cs (1)
472if (tabItem != null && tabItem.IsEnabled && tabItem.Visibility == Visibility.Visible)
System\Windows\Controls\VirtualizingStackPanel.cs (16)
9911Visibility oldvv = sv.ComputedVerticalScrollBarVisibility; 9912Visibility newvv = DoubleUtil.LessThanOrClose(extentSize.Height, viewportSize.Height) ? Visibility.Collapsed : Visibility.Visible; 9927Visibility oldhv = sv.ComputedHorizontalScrollBarVisibility; 9928Visibility newhv = DoubleUtil.LessThanOrClose(extentSize.Width, viewportSize.Width) ? Visibility.Collapsed : Visibility.Visible; 10628Visibility oldvv = sv.ComputedVerticalScrollBarVisibility; 10629Visibility newvv = DoubleUtil.LessThanOrClose(extentSize.Height, viewportSize.Height) ? Visibility.Collapsed : Visibility.Visible; 10644Visibility oldhv = sv.ComputedHorizontalScrollBarVisibility; 10645Visibility newhv = DoubleUtil.LessThanOrClose(extentSize.Width, viewportSize.Width) ? Visibility.Collapsed : Visibility.Visible;
System\Windows\Documents\FixedPage.cs (2)
135path.Visibility = Visibility.Visible; 139path.Visibility = Visibility.Hidden;
System\Windows\Generated\FrameworkElement.cs (1)
453if (Visibility == Visibility.Collapsed)
System\Windows\Interop\ActiveXHost.cs (3)
871case Visibility.Visible: 874case Visibility.Collapsed: 877case Visibility.Hidden:
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
4001bamlMember.TypeConverterType = typeof(System.Windows.Visibility);
System\Windows\Shell\ThumbButtonInfo.cs (4)
26typeof(Visibility), 28new PropertyMetadata(Visibility.Visible)); 33public Visibility Visibility 35get { return (Visibility)GetValue(VisibilityProperty); }
System\Windows\Window.cs (17)
77VisibilityProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(Visibility.Collapsed, new PropertyChangedCallback(_OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility))); 186UpdateVisibilityProperty(Visibility.Visible); 214UpdateVisibilityProperty(Visibility.Hidden); 2175internal static bool VisibilityToBool(Visibility v) 2179case Visibility.Visible: 2181case Visibility.Hidden: 2182case Visibility.Collapsed: 5078UpdateVisibilityProperty(Visibility.Hidden); 5090UpdateVisibilityProperty(Visibility.Visible); 5381Visibility newValue = (Visibility)value; 5382if (newValue == Visibility.Visible) 5420bool visibilityValue = VisibilityToBool((Visibility) e.NewValue); 5474private void UpdateVisibilityProperty(Visibility value) 6770case Visibility.Collapsed: 6775case Visibility.Hidden: 6783case Visibility.Visible:
PresentationFramework.Aero (5)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
166if (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)
166if (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)
117if (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)
64if (SeparatorVisibility == Visibility.Visible && SeparatorBrush != null) 82if (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)
258if (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)
180if (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)
91RetryButton.Visibility = Visibility.Visible; 96RetryButton.Visibility = Visibility.Collapsed; 100GetWinFXButton.Visibility = Visibility.Visible; 137SupportUriText.Visibility = Visibility.Visible; 182LogFileButton.Visibility = Visibility.Visible;
MS\Internal\Documents\Application\StatusInfoItem.cs (5)
73public Visibility Visibility 123this.Visibility = Visibility.Visible; 127this.Visibility = Visibility.Collapsed; 146this.Visibility = Visibility.Visible; 150this.Visibility = Visibility.Collapsed;
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (7)
1215ChangeControlVisibility(uie, uie.Visibility == Visibility.Collapsed); 1230uie.Visibility = Visibility.Visible; 1234uie.Visibility = Visibility.Collapsed; 1267if ((_digSigInfoBar.Visibility == Visibility.Collapsed) && 1268(_rmInfoBar.Visibility == Visibility.Collapsed)) 1285_digSigInfoBar.Visibility = Visibility.Collapsed; 1286_rmInfoBar.Visibility = Visibility.Collapsed;
MS\Internal\Documents\FindToolBar.xaml.cs (2)
231FindTextLabel.Visibility = Visibility.Hidden; 235FindTextLabel.Visibility = Visibility.Visible;
TenFeetInstallationError.xaml.cs (5)
93RetryButton.Visibility = Visibility.Visible; 100RetryButton.Visibility = Visibility.Collapsed; 104GetWinFXButton.Visibility = Visibility.Visible; 141SupportUriText.Visibility = Visibility.Visible; 186LogFileButton.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)
42KeyTipVisibility = Visibility.Visible; 120public Visibility KeyTipVisibility
Microsoft\Windows\Controls\KeyTipService.cs (3)
1362uie.Visibility != Visibility.Visible) 1382if (activatingEventArgs.KeyTipVisibility == Visibility.Visible) 1414if (activatingEventArgs.KeyTipVisibility != Visibility.Collapsed)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonContextualTabGroupsPanel.cs (2)
56if (tabGroupHeader.Visibility == Visibility.Visible && tabGroupHeader.FirstVisibleTab != null && DoubleUtil.GreaterThanOrClose(remainingSpace, 0.0)) 148if (tabGroupHeader.Visibility == Visibility.Visible && tabGroupHeader.ArrangeWidth > 0)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonScrollButtonVisibilityConverter.cs (8)
51values[0] is not Visibility || 69Visibility computedScrollBarVisibility = (Visibility)values[0]; 70if (computedScrollBarVisibility == Visibility.Visible) 92return Visibility.Collapsed; 101return Visibility.Collapsed; 104return Visibility.Visible; 107return Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (4)
68if (groupHeaderItemsControl != null && groupHeaderItemsControl.Visibility == Visibility.Visible) 105if (qat.Visibility == Visibility.Visible) 185if (tabGroups != null && tabGroups.Visibility == Visibility.Visible) 271if (tab.Visibility == Visibility.Visible && tab.RibbonTabHeader != null)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (4)
195public Visibility WindowIconVisibility 197get { return (Visibility)GetValue(WindowIconVisibilityProperty); } 206typeof(Visibility), 208new UIPropertyMetadata(Visibility.Visible, OnWindowIconVisibilityChanged));
Microsoft\Windows\Controls\Ribbon\RibbonApplicationSplitMenuItem.cs (1)
219e.KeyTipVisibility = Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (5)
54VisibilityProperty.OverrideMetadata(typeof(RibbonContextualTabGroup), new FrameworkPropertyMetadata(Visibility.Collapsed, new PropertyChangedCallback(OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility))); 239if (tab.Visibility == Visibility.Visible) 441if ((Visibility)baseValue == Visibility.Hidden) 442return Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (2)
191if (tab != null && tab.Visibility == Visibility.Visible) 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 (2)
2379category.Visibility = Visibility.Visible; 2383category.Visibility = Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (4)
626typeof(Visibility), 631new FrameworkPropertyMetadata(Visibility.Visible)); 637public Visibility HeaderVisibility 639get { return (Visibility)GetValue(HeaderVisibilityProperty); }
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (16)
174SetAppropriatePresenterVisibility(groupSizeDefinitions[_sizeDefinitionIndex] is RibbonGroupSizeDefinition ? Visibility.Visible : Visibility.Collapsed); 999SetAppropriatePresenterVisibility(GroupSizeDefinitions[_sizeDefinitionIndex] is RibbonGroupSizeDefinition ? Visibility.Visible : Visibility.Collapsed); 1126if (SetAppropriatePresenterVisibility(Visibility.Visible)) 1143SetAppropriatePresenterVisibility(Visibility.Collapsed); 1153private bool SetAppropriatePresenterVisibility(Visibility itemsPresenterVisibility) 1159if (itemsPresenterVisibility == Visibility.Visible) 1167_templateContentControl.Visibility = (itemsPresenterVisibility == Visibility.Visible ? Visibility.Collapsed : Visibility.Visible); 1650e.KeyTipVisibility = Visibility.Hidden; 1713e.KeyTipVisibility = Visibility.Hidden; 1718e.KeyTipVisibility = Visibility.Hidden; 1743e.KeyTipVisibility = Visibility.Hidden; 1748e.KeyTipVisibility = Visibility.Hidden;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
718return container != null && container.Visibility == Visibility.Visible; 804if (category.Visibility != Visibility.Visible)
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (3)
619ribbonControl.Visibility == Visibility.Visible && 624contentChild.Visibility == Visibility.Visible && 663e.KeyTipVisibility = Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
381e.KeyTipVisibility = Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (15)
49VisibilityProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(Visibility.Visible, new PropertyChangedCallback(OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility))); 642Visibility baseVisibility = (Visibility)value; 643Visibility contextualVisibility = Visibility.Visible; 661contextualVisibility = Visibility.Collapsed; 664if (baseVisibility != Visibility.Visible || 665contextualVisibility != Visibility.Visible) 667return Visibility.Collapsed; 671return Visibility.Visible; 687(Visibility)e.OldValue == Visibility.Visible && 688(Visibility)e.NewValue != Visibility.Visible) 880e.KeyTipVisibility = Visibility.Collapsed;
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (4)
660e.KeyTipVisibility = Visibility.Hidden; 672e.KeyTipVisibility = Visibility.Hidden; 687e.KeyTipVisibility = Visibility.Hidden; 693e.KeyTipVisibility = Visibility.Hidden;
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (8)
277_textBlock1.Visibility = Visibility.Collapsed; 281_textBlock2.Visibility = Visibility.Visible; 309_textBlock1.Visibility = Visibility.Visible; 314_textBlock2.Visibility = Visibility.Visible; 323_textBlock1.Visibility = Visibility.Visible; 327_textBlock2.Visibility = Visibility.Collapsed; 346_textBlock1.Visibility = Visibility.Visible; 382_textBlock1.Visibility = Visibility.Visible;
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (1)
310internal void ChangeIconVisibility(Visibility newVisibility)
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
146if (childItemsControl != null && childItemsControl.Visibility == Visibility.Visible) 507if (childItemsControl != null && childItemsControl.Visibility == Visibility.Visible)
WindowsFormsIntegration (8)
System\Windows\Integration\ElementHostPropertyMap.cs (3)
197SW.Visibility toVisibility = ((fromVisible) ? SW.Visibility.Visible : SW.Visibility.Hidden);
System\Windows\Integration\WindowsFormsHost.cs (2)
240if (this.Visibility == Visibility.Collapsed || Child == null) 271if (this.Visibility == Visibility.Collapsed || Child == null)
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (3)
268if (value is SW.Visibility) 274windowsFormsHost.Child.Visible = ((SW.Visibility)value == SW.Visibility.Visible);