441 references to NewValue
PresentationCore (106)
Core\CSharp\System\Windows\ContentElement.cs (1)
573if ((bool) e.NewValue)
Core\CSharp\System\Windows\Input\Command\InputBinding.cs (1)
109inputBinding.CheckSecureCommand((ICommand)e.NewValue, inputBinding.Gesture);
Core\CSharp\System\Windows\Input\Command\KeyBinding.cs (2)
133keyBinding.SynchronizeGestureFromProperties(keyBinding.Key, (ModifierKeys)(e.NewValue)); 160keyBinding.SynchronizeGestureFromProperties((Key)(e.NewValue), keyBinding.Modifiers);
Core\CSharp\System\Windows\Input\Command\MouseBinding.cs (1)
148mouseBinding.SynchronizeGestureFromProperties((MouseAction)(e.NewValue));
Core\CSharp\System\Windows\Input\FocusManager.cs (2)
237IInputElement newFocusedElement = (IInputElement)e.NewValue; 239DependencyObject newVisual = (DependencyObject)e.NewValue;
Core\CSharp\System\Windows\Input\InputMethod.cs (1)
1407InputMethod.Current.EnableOrDisableInputMethod((bool) e.NewValue);
Core\CSharp\System\Windows\Input\TouchDevice.cs (1)
632if (!(bool)e.NewValue)
Core\CSharp\System\Windows\Interop\D3DImage.cs (2)
698Debug.Assert(e.OldValue != e.NewValue); 700bool isFrontBufferAvailable = (bool)e.NewValue;
Core\CSharp\System\Windows\Media\BitmapCacheBrush.cs (1)
200AutoWrapVisual.Children.Add((Visual)e.NewValue);
Core\CSharp\System\Windows\Media\Effects\Generated\ShaderEffect.cs (1)
115PixelShader newV = (PixelShader) e.NewValue;
Core\CSharp\System\Windows\Media\Effects\PixelShader.cs (1)
92Uri newUri = (Uri)e.NewValue;
Core\CSharp\System\Windows\Media\Effects\ShaderEffect.cs (3)
186PixelShader newShader = (PixelShader)e.NewValue; 285eff.UpdateShaderConstant(args.Property, args.NewValue, floatRegisterIndex); 317eff.UpdateShaderSampler(args.Property, args.NewValue, samplerRegisterIndex, samplingMode);
Core\CSharp\System\Windows\Media\Generated\BitmapCacheBrush.cs (2)
122BitmapCache newV = (BitmapCache) e.NewValue; 183Visual newV = (Visual) e.NewValue;
Core\CSharp\System\Windows\Media\Generated\Brush.cs (2)
123Transform newV = (Transform) e.NewValue; 171Transform newV = (Transform) e.NewValue;
Core\CSharp\System\Windows\Media\Generated\CombinedGeometry.cs (2)
122Geometry newV = (Geometry) e.NewValue; 170Geometry newV = (Geometry) e.NewValue;
Core\CSharp\System\Windows\Media\Generated\DrawingBrush.cs (1)
115Drawing newV = (Drawing) e.NewValue;
Core\CSharp\System\Windows\Media\Generated\DrawingGroup.cs (5)
131newCollection = (DrawingCollection) e.NewValue; 206Geometry newV = (Geometry) e.NewValue; 261Brush newV = (Brush) e.NewValue; 309Transform newV = (Transform) e.NewValue; 357GuidelineSet newV = (GuidelineSet) e.NewValue;
Core\CSharp\System\Windows\Media\Generated\DrawingImage.cs (1)
115Drawing newV = (Drawing) e.NewValue;
Core\CSharp\System\Windows\Media\Generated\Geometry.cs (1)
118Transform newV = (Transform) e.NewValue;
Core\CSharp\System\Windows\Media\Generated\GeometryDrawing.cs (3)
115Brush newV = (Brush) e.NewValue; 163Pen newV = (Pen) e.NewValue; 211Geometry newV = (Geometry) e.NewValue;
Core\CSharp\System\Windows\Media\Generated\GeometryGroup.cs (1)
138newCollection = (GeometryCollection) e.NewValue;
Core\CSharp\System\Windows\Media\Generated\GlyphRunDrawing.cs (2)
96GlyphRun newV = (GlyphRun) e.NewValue; 144Brush newV = (Brush) e.NewValue;
Core\CSharp\System\Windows\Media\Generated\ImageBrush.cs (1)
115ImageSource newV = (ImageSource) e.NewValue;
Core\CSharp\System\Windows\Media\Generated\ImageDrawing.cs (1)
115ImageSource newV = (ImageSource) e.NewValue;
Core\CSharp\System\Windows\Media\Generated\Pen.cs (2)
115Brush newV = (Brush) e.NewValue; 205DashStyle newV = (DashStyle) e.NewValue;
Core\CSharp\System\Windows\Media\Generated\TransformGroup.cs (1)
131newCollection = (TransformCollection) e.NewValue;
Core\CSharp\System\Windows\Media\Generated\VideoDrawing.cs (1)
96MediaPlayer newV = (MediaPlayer) e.NewValue;
Core\CSharp\System\Windows\Media\Generated\VisualBrush.cs (1)
121Visual newV = (Visual) e.NewValue;
Core\CSharp\System\Windows\Media\Imaging\BitmapImage.cs (9)
662_uriCachePolicy = e.NewValue as RequestCachePolicy; 670_uriSource = e.NewValue as Uri; 678_streamSource = e.NewValue as Stream; 686_decodePixelWidth = (Int32)e.NewValue; 694_decodePixelHeight = (Int32)e.NewValue; 702_rotation = (Rotation)e.NewValue; 710_sourceRect = (Int32Rect)e.NewValue; 716BitmapCreateOptions options = (BitmapCreateOptions)e.NewValue; 725_cacheOption = (BitmapCacheOption)e.NewValue;
Core\CSharp\System\Windows\Media\Imaging\ColorConvertedBitmap.cs (4)
166BitmapSource newSource = e.NewValue as BitmapSource; 213_sourceColorContext = e.NewValue as ColorContext; 224_destinationColorContext = e.NewValue as ColorContext; 235_destinationFormat = (PixelFormat)e.NewValue;
Core\CSharp\System\Windows\Media\Imaging\CroppedBitmap.cs (2)
179BitmapSource newSource = e.NewValue as BitmapSource; 207_sourceRect = (Int32Rect)e.NewValue;
Core\CSharp\System\Windows\Media\Imaging\FormatConvertedBitmap.cs (4)
194BitmapSource newSource = e.NewValue as BitmapSource; 241_destinationFormat = (PixelFormat)e.NewValue; 252_destinationPalette = e.NewValue as BitmapPalette; 263_alphaThreshold = (double)e.NewValue;
Core\CSharp\System\Windows\Media\Imaging\TransformedBitmap.cs (2)
299BitmapSource newSource = e.NewValue as BitmapSource; 346_transform = e.NewValue as Transform;
Core\CSharp\System\Windows\Media3D\Generated\Camera.cs (1)
111Transform3D newV = (Transform3D) e.NewValue;
Core\CSharp\System\Windows\Media3D\Generated\DiffuseMaterial.cs (1)
125Brush newV = (Brush) e.NewValue;
Core\CSharp\System\Windows\Media3D\Generated\EmissiveMaterial.cs (1)
118Brush newV = (Brush) e.NewValue;
Core\CSharp\System\Windows\Media3D\Generated\GeometryModel3D.cs (3)
111Geometry3D newV = (Geometry3D) e.NewValue; 161Material newV = (Material) e.NewValue; 211Material newV = (Material) e.NewValue;
Core\CSharp\System\Windows\Media3D\Generated\MaterialGroup.cs (1)
127newCollection = (MaterialCollection) e.NewValue;
Core\CSharp\System\Windows\Media3D\Generated\Model3D.cs (1)
111Transform3D newV = (Transform3D) e.NewValue;
Core\CSharp\System\Windows\Media3D\Generated\Model3DGroup.cs (1)
127newCollection = (Model3DCollection) e.NewValue;
Core\CSharp\System\Windows\Media3D\Generated\QuaternionRotation3D.cs (1)
90target._cachedQuaternionValue = (Quaternion)e.NewValue;
Core\CSharp\System\Windows\Media3D\Generated\RotateTransform3D.cs (5)
90target._cachedCenterXValue = (double)e.NewValue; 99target._cachedCenterYValue = (double)e.NewValue; 108target._cachedCenterZValue = (double)e.NewValue; 137target._cachedRotationValue = (Rotation3D)e.NewValue; 140Rotation3D newV = (Rotation3D) e.NewValue;
Core\CSharp\System\Windows\Media3D\Generated\ScaleTransform3D.cs (6)
90target._cachedScaleXValue = (double)e.NewValue; 99target._cachedScaleYValue = (double)e.NewValue; 108target._cachedScaleZValue = (double)e.NewValue; 117target._cachedCenterXValue = (double)e.NewValue; 126target._cachedCenterYValue = (double)e.NewValue; 135target._cachedCenterZValue = (double)e.NewValue;
Core\CSharp\System\Windows\Media3D\Generated\SpecularMaterial.cs (1)
118Brush newV = (Brush) e.NewValue;
Core\CSharp\System\Windows\Media3D\Generated\Transform3DGroup.cs (1)
127newCollection = (Transform3DCollection) e.NewValue;
Core\CSharp\System\Windows\Media3D\Generated\TranslateTransform3D.cs (3)
90target._cachedOffsetXValue = (double)e.NewValue; 99target._cachedOffsetYValue = (double)e.NewValue; 108target._cachedOffsetZValue = (double)e.NewValue;
Core\CSharp\System\Windows\Media3D\ModelUIElement3D.cs (1)
72owner.Visual3DModel = (Model3D)e.NewValue;
Core\CSharp\System\Windows\Media3D\ModelVisual3D.cs (1)
153owner.Visual3DModel = (Model3D)e.NewValue;
Core\CSharp\System\Windows\Media3D\Viewport2DVisual3D.cs (5)
329Visual newValue = (Visual)e.NewValue; 763BitmapCache newValue = (CacheMode)e.NewValue as BitmapCache; 909RenderOptions.SetCachingHint(viewport2D._visualBrush, (CachingHint)e.NewValue); 926RenderOptions.SetCacheInvalidationThresholdMinimum(viewport2D._visualBrush, (double)e.NewValue); 942RenderOptions.SetCacheInvalidationThresholdMaximum(viewport2D._visualBrush, (double)e.NewValue);
Core\CSharp\System\Windows\UIElement.cs (6)
2843((UIElement) d).pushBitmapEffectInput((BitmapEffectInput) e.NewValue); 2995Visibility newVisibility = (Visibility) e.NewValue; 3405uie.ClipToBoundsCache = (bool) e.NewValue; 3478uie.SnapsToDevicePixelsCache = (bool) e.NewValue; 3569if ((bool) e.NewValue) 4391if ((bool)e.NewValue)
Core\CSharp\System\Windows\UIElement3D.cs (2)
674Visibility newVisibility = (Visibility)e.NewValue; 780if ((bool)e.NewValue)
PresentationFramework (247)
src\Framework\MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (1)
394String newValue = (string) e.NewValue;
src\Framework\MS\Internal\Documents\IFlowDocumentViewer.cs (2)
875int pageNumber = (int)e.NewValue; 877if (pageNumber != (int)e.NewValue)
src\Framework\System\Windows\Automation\Peers\FlowDocumentReaderAutomationPeer.cs (3)
122newSingle = (bool)e.NewValue; 130newFacing = (bool)e.NewValue; 138newScroll = (bool)e.NewValue;
src\Framework\System\Windows\Controls\AccessText.cs (2)
505((AccessText)d).TextBlock.SetValue(e.Property, e.NewValue); 713((AccessText) d).UpdateText((string) e.NewValue);
src\Framework\System\Windows\Controls\AVElementHelper.cs (1)
744_source._value = (Uri)e.NewValue;
src\Framework\System\Windows\Controls\Button.cs (2)
89if ((bool) e.NewValue) 146if ((bool) e.NewValue)
src\Framework\System\Windows\Controls\Calendar.cs (5)
216c.DisplayDateInternal = DateTimeHelper.DiscardDayTime((DateTime)e.NewValue); 218c.OnDisplayDateChanged(new CalendarDateChangedEventArgs((DateTime)e.OldValue, (DateTime)e.NewValue)); 389CalendarMode mode = (CalendarMode)e.NewValue; 548if (c.SelectionMode != CalendarSelectionMode.None || e.NewValue == null) 552addedDate = (DateTime?)e.NewValue;
src\Framework\System\Windows\Controls\ComboBox.cs (3)
222bool newValue = (bool) e.NewValue; 632peer.RaiseValuePropertyChangedEvent((string)e.OldValue, (string)e.NewValue); 634cb.TextUpdated((string)e.NewValue, false);
src\Framework\System\Windows\Controls\ContentControl.cs (6)
255ctrl.SetValue(HasContentPropertyKey, (e.NewValue != null) ? BooleanBoxes.TrueBox : BooleanBoxes.FalseBox); 257ctrl.OnContentChanged(e.OldValue, e.NewValue); 364ctrl.OnContentTemplateChanged((DataTemplate) e.OldValue, (DataTemplate) e.NewValue); 413ctrl.OnContentTemplateSelectorChanged((DataTemplateSelector) e.NewValue, (DataTemplateSelector) e.NewValue); 460ctrl.OnContentStringFormatChanged((String) e.OldValue, (String) e.NewValue);
src\Framework\System\Windows\Controls\ContentPresenter.cs (8)
191if (e.NewValue == BindingExpressionBase.DisconnectedItem) 217object newDataType = DataTypeForItem(e.NewValue, ctrl, out type); 228String newString = (String)e.NewValue; 248ctrl.DataContext = e.NewValue; 283ctrl.OnContentTemplateChanged((DataTemplate) e.OldValue, (DataTemplate) e.NewValue); 344ctrl.OnContentTemplateSelectorChanged((DataTemplateSelector) e.OldValue, (DataTemplateSelector) e.NewValue); 394ctrl.OnContentStringFormatChanged((String) e.OldValue, (String) e.NewValue); 810StyleHelper.UpdateTemplateCache(c, (FrameworkTemplate) e.OldValue, (FrameworkTemplate) e.NewValue, TemplateProperty);
src\Framework\System\Windows\Controls\ContextMenu.cs (2)
159if ((bool) e.NewValue) 643if((bool)e.NewValue == false)
src\Framework\System\Windows\Controls\Control.cs (1)
449StyleHelper.UpdateTemplateCache(c, (FrameworkTemplate) e.OldValue, (FrameworkTemplate) e.NewValue, TemplateProperty);
src\Framework\System\Windows\Controls\DataGrid.cs (9)
536if (e.OldValue != e.NewValue) 1264var newValue = (double)e.NewValue; 2786if ((bool)e.NewValue) 2824object newItem = e.NewValue; 2867DataGridColumn newColumn = (DataGridColumn)e.NewValue; 2900DataGridCellInfo currentCell = (DataGridCellInfo)e.NewValue; 4455DataGridSelectionMode newSelectionMode = (DataGridSelectionMode)e.NewValue; 7924bool newValue = (bool)e.NewValue; 8478double newValue = (double)e.NewValue;
src\Framework\System\Windows\Controls\DataGridCell.cs (4)
185cell.OnColumnChanged((DataGridColumn)e.OldValue, (DataGridColumn)e.NewValue); 225if ((bool)e.NewValue && dataGrid != null) 465((DataGridCell)sender).OnIsEditingChanged((bool)e.NewValue); 669bool isSelected = (bool)e.NewValue;
src\Framework\System\Windows\Controls\DataGridColumn.cs (2)
228DataGridLength newWidth = (DataGridLength)e.NewValue; 1525Visibility newVisibility = (Visibility)eventArgs.NewValue;
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (3)
172OnColumnDisplayIndexChanged((DataGridColumn)d, (int)e.OldValue, (int)e.NewValue); 188OnDataGridFrozenColumnCountChanged((int)e.OldValue, (int)e.NewValue); 1047RedistributeColumnWidthsOnAvailableSpaceChange((double)e.OldValue - (double)e.NewValue, totalAvailableWidth);
src\Framework\System\Windows\Controls\DataGridColumnFloatingHeader.cs (2)
46double width = (double)e.NewValue; 73double height = (double)e.NewValue;
src\Framework\System\Windows\Controls\DataGridColumnHeaderCollection.cs (1)
56e.NewValue,
src\Framework\System\Windows\Controls\DataGridRow.cs (6)
801d.GetValue(e.Property) == e.NewValue) 807if (e.NewValue != null) 920OnItemChanged(e.OldValue, e.NewValue); 924OnHeaderChanged(e.OldValue, e.NewValue); 929Dispatcher.BeginInvoke(new DispatcherOperationCallback(DelayedValidateWithoutUpdate), DispatcherPriority.DataBind, e.NewValue); 1084bool isSelected = (bool)e.NewValue;
src\Framework\System\Windows\Controls\DatePicker.cs (3)
341bool newValue = (bool)e.NewValue; 438addedDate = (DateTime?)e.NewValue; 579string newValue = e.NewValue as string;
src\Framework\System\Windows\Controls\DefinitionBase.cs (4)
172if (((GridLength) e.OldValue).GridUnitType != ((GridLength) e.NewValue).GridUnitType) 269if ((bool) e.NewValue) 517string sharedSizeGroupId = (string) e.NewValue; 599SharedSizeScope privateSharedSizeScope = (SharedSizeScope) e.NewValue;
src\Framework\System\Windows\Controls\DocumentViewer.cs (12)
2474double newOffset = (double) e.NewValue; 2494double newOffset = (double) e.NewValue; 2511dv.SetValue(CanMoveRightPropertyKey, dv.HorizontalOffset < ((double) e.NewValue - dv.ViewportWidth)); 2519dv.SetValue(CanMoveDownPropertyKey, dv.VerticalOffset < ((double) e.NewValue - dv.ViewportHeight)); 2527double newWidth = (double) e.NewValue; 2528dv.SetValue(CanMoveRightPropertyKey, dv.HorizontalOffset < (dv.ExtentWidth - (double) e.NewValue)); 2536double newHeight = (double) e.NewValue; 2552dv._documentScrollInfo.ShowPageBorders = (bool) e.NewValue; 2584double newZoom = (double) e.NewValue; 2635dv._documentScrollInfo.SetColumns((int) e.NewValue); 2662dv._documentScrollInfo.VerticalPageSpacing = (double) e.NewValue; 2678dv._documentScrollInfo.HorizontalPageSpacing = (double) e.NewValue;
src\Framework\System\Windows\Controls\Expander.cs (1)
134bool newValue = (bool) e.NewValue;
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (5)
1648if (viewer.CanSwitchToViewingMode((FlowDocumentReaderViewingMode)e.NewValue)) 1650viewer.SwitchViewingModeCore((FlowDocumentReaderViewingMode)e.NewValue); 1661peer.RaiseCurrentViewChangedEvent((FlowDocumentReaderViewingMode)e.NewValue, (FlowDocumentReaderViewingMode)e.OldValue); 1746viewer.DocumentChanged((FlowDocument)e.OldValue, (FlowDocument)e.NewValue); 1759if (!DoubleUtil.AreClose((double)e.OldValue, (double)e.NewValue))
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (3)
1634((FlowDocumentScrollViewer)d).DocumentChanged((FlowDocument)e.OldValue, (FlowDocument)e.NewValue); 1647if (!DoubleUtil.AreClose((double)e.OldValue, (double)e.NewValue)) 1765viewer._toolBarHost.Visibility = (bool)e.NewValue ? Visibility.Visible : Visibility.Collapsed;
src\Framework\System\Windows\Controls\Frame.cs (3)
293Uri uriToNavigate = BindUriHelper.GetUriToNavigate(frame, ((IUriContext)frame).BaseUri, (Uri)e.NewValue); 409bool fSandBox = (bool)e.NewValue; 451((Frame)d).OnJournalOwnershipPropertyChanged((JournalOwnership)e.NewValue);
src\Framework\System\Windows\Controls\Grid.cs (1)
3035grid.SetFlags((bool) e.NewValue, Flags.ShowGridLinesPropertyValue);
src\Framework\System\Windows\Controls\GridViewColumn.cs (2)
265ctrl.OnHeaderStringFormatChanged((String) e.OldValue, (String) e.NewValue); 405double newWidth = (double)e.NewValue;
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (3)
96Type newType = (e.NewValue != null) ? e.NewValue.GetType() : null; 99if (e.NewValue == BindingExpressionBase.DisconnectedItem)
src\Framework\System\Windows\Controls\HeaderedContentControl.cs (5)
86ctrl.SetValue(HasHeaderPropertyKey, (e.NewValue != null) ? BooleanBoxes.TrueBox : BooleanBoxes.FalseBox); 87ctrl.OnHeaderChanged(e.OldValue, e.NewValue); 161ctrl.OnHeaderTemplateChanged((DataTemplate) e.OldValue, (DataTemplate) e.NewValue); 211ctrl.OnHeaderTemplateSelectorChanged((DataTemplateSelector) e.OldValue, (DataTemplateSelector) e.NewValue); 257ctrl.OnHeaderStringFormatChanged((String) e.OldValue, (String) e.NewValue);
src\Framework\System\Windows\Controls\HeaderedItemsControl.cs (5)
76ctrl.SetValue(HasHeaderPropertyKey, (e.NewValue != null) ? BooleanBoxes.TrueBox : BooleanBoxes.FalseBox); 77ctrl.OnHeaderChanged(e.OldValue, e.NewValue); 149ctrl.OnHeaderTemplateChanged((DataTemplate) e.OldValue, (DataTemplate) e.NewValue); 196ctrl.OnHeaderTemplateSelectorChanged((DataTemplateSelector) e.OldValue, (DataTemplateSelector) e.NewValue); 242ctrl.OnHeaderStringFormatChanged((String) e.OldValue, (String) e.NewValue);
src\Framework\System\Windows\Controls\Image.cs (1)
469ImageSource newValue = (ImageSource)e.NewValue;
src\Framework\System\Windows\Controls\InkCanvas.cs (3)
295Transform transform = e.NewValue as Transform; 623StrokeCollection newValue = (StrokeCollection)e.NewValue; 746DrawingAttributes newValue = (DrawingAttributes)e.NewValue;
src\Framework\System\Windows\Controls\InkPresenter.cs (1)
141StrokeCollection newValue = (StrokeCollection)e.NewValue;
src\Framework\System\Windows\Controls\ItemsControl.cs (12)
195IEnumerable newValue = (IEnumerable)e.NewValue; 208else if (e.NewValue != null) 398ctrl.OnDisplayMemberPathChanged((string)e.OldValue, (string)e.NewValue); 483((ItemsControl) d).OnItemTemplateChanged((DataTemplate) e.OldValue, (DataTemplate) e.NewValue); 539((ItemsControl)d).OnItemTemplateSelectorChanged((DataTemplateSelector) e.OldValue, (DataTemplateSelector) e.NewValue); 592ctrl.OnItemStringFormatChanged((String) e.OldValue, (String) e.NewValue); 642ctrl.OnItemBindingGroupChanged((BindingGroup) e.OldValue, (BindingGroup) e.NewValue); 711((ItemsControl) d).OnItemContainerStyleChanged((Style) e.OldValue, (Style) e.NewValue); 767((ItemsControl) d).OnItemContainerStyleSelectorChanged((StyleSelector) e.OldValue, (StyleSelector) e.NewValue); 895((ItemsControl) d).OnItemsPanelChanged((ItemsPanelTemplate) e.OldValue, (ItemsPanelTemplate) e.NewValue); 1007((ItemsControl) d).OnGroupStyleSelectorChanged((GroupStyleSelector) e.OldValue, (GroupStyleSelector) e.NewValue); 1066int newAlternationCount = (int) e.NewValue;
src\Framework\System\Windows\Controls\ItemsPresenter.cs (1)
148StyleHelper.UpdateTemplateCache(ip, (FrameworkTemplate) e.OldValue, (FrameworkTemplate) e.NewValue, TemplateProperty);
src\Framework\System\Windows\Controls\Label.cs (1)
113UIElement newElement = (UIElement) e.NewValue;
src\Framework\System\Windows\Controls\ListBoxItem.cs (1)
94bool isSelected = (bool) e.NewValue;
src\Framework\System\Windows\Controls\ListView.cs (1)
91ViewBase newView = (ViewBase)e.NewValue;
src\Framework\System\Windows\Controls\MediaElement.cs (6)
817target._helper.SetVolume((double)e.NewValue); 832target._helper.SetBalance((double)e.NewValue); 847target._helper.SetIsMuted((bool)e.NewValue); 862target._helper.SetScrubbingEnabled((bool)e.NewValue); 882target._helper.SetUnloadedBehavior((MediaState)e.NewValue); 902target._helper.SetLoadedBehavior((MediaState)e.NewValue);
src\Framework\System\Windows\Controls\Menu.cs (1)
117if ((bool) e.NewValue)
src\Framework\System\Windows\Controls\MenuItem.cs (5)
410item.OnCommandChanged((ICommand) e.OldValue, (ICommand) e.NewValue); 597bool newValue = (bool) e.NewValue; 952if ((bool) e.NewValue) 1015menuItem.SetValue(IsHighlightedPropertyKey, e.NewValue); 1031menuItem.RaiseEvent(new RoutedPropertyChangedEventArgs<bool>((bool) e.OldValue, (bool) e.NewValue, MenuBase.IsSelectedChangedEvent));
src\Framework\System\Windows\Controls\Page.cs (3)
559StyleHelper.UpdateTemplateCache(p, (FrameworkTemplate) e.OldValue, (FrameworkTemplate) e.NewValue, TemplateProperty); 746page.OnContentChanged(e.OldValue, e.NewValue); 760p.OnWindowServiceChanged(e.NewValue as IWindowService);
src\Framework\System\Windows\Controls\Panel.cs (2)
244panel.OnIsItemsHostChanged((bool) e.OldValue, (bool) e.NewValue); 957int newValue = (int)e.NewValue;
src\Framework\System\Windows\Controls\Primitives\ButtonBase.cs (1)
285b.OnCommandChanged((ICommand)e.OldValue, (ICommand)e.NewValue);
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeader.cs (1)
573bool newIsVisible = (((Visibility)e.NewValue) == Visibility.Visible);
src\Framework\System\Windows\Controls\Primitives\DatePickerTextBox.cs (2)
168Debug.Assert(e.NewValue is bool); 169bool isEnabled = (bool)e.NewValue;
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1629((DocumentViewerBase) d).DocumentChanged((IDocumentPaginatorSource) e.OldValue, (IDocumentPaginatorSource) e.NewValue);
src\Framework\System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
274GridViewColumnCollection newCollection = (GridViewColumnCollection)e.NewValue;
src\Framework\System\Windows\Controls\Primitives\Popup.cs (4)
140UIElement newChild = (UIElement) e.NewValue; 352bool visible = (bool) e.NewValue; 563if ((bool)e.NewValue) 671ctrl.UpdatePlacementTargetRegistration((UIElement)e.OldValue, (UIElement)e.NewValue);
src\Framework\System\Windows\Controls\Primitives\RangeBase.cs (6)
109peer.RaiseMinimumPropertyChangedEvent((double)e.OldValue, (double)e.NewValue); 114ctrl.OnMinimumChanged((double)e.OldValue, (double)e.NewValue); 173peer.RaiseMaximumPropertyChangedEvent((double)e.OldValue, (double)e.NewValue); 177ctrl.OnMaximumChanged((double) e.OldValue, (double) e.NewValue); 246peer.RaiseValuePropertyChangedEvent((double)e.OldValue, (double)e.NewValue); 249ctrl.OnValueChanged((double) e.OldValue, (double) e.NewValue);
src\Framework\System\Windows\Controls\Primitives\ResizeGrip.cs (1)
81rg.OnWindowServiceChanged(e.OldValue as Window, e.NewValue as Window);
src\Framework\System\Windows\Controls\Primitives\SelectiveScrollingGrid.cs (1)
59SelectiveScrollingOrientation orientation = (SelectiveScrollingOrientation)e.NewValue;
src\Framework\System\Windows\Controls\Primitives\Selector.cs (3)
359int newIndex = (int) e.NewValue; 412s.SelectionChange.SelectJustThisItem(s.NewItemInfo(e.NewValue), false /* assumeInItemsCollection */); 1338if ((bool)e.NewValue)
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (4)
2162object value = e.NewValue; 2178textBox.ChangeUndoEnabled((bool)e.NewValue); 2193textBox.ChangeUndoLimit(e.NewValue); 2214bool value = (bool)e.NewValue;
src\Framework\System\Windows\Controls\Primitives\ToggleButton.cs (1)
172bool? newValue = (bool?) e.NewValue;
src\Framework\System\Windows\Controls\Primitives\Track.cs (1)
809if ((bool)e.NewValue)
src\Framework\System\Windows\Controls\RadioButton.cs (1)
57string groupName = e.NewValue as string;
src\Framework\System\Windows\Controls\RichTextBox.cs (2)
711richTextBox.TransferFormattingProperty(e.Property, e.NewValue); 747richTextBox.TransferBehavioralProperty(e.Property, e.NewValue);
src\Framework\System\Windows\Controls\SinglePageViewer.cs (3)
1428((FlowDocumentPageViewer)d).ZoomChanged((double) e.OldValue, (double) e.NewValue); 1437((FlowDocumentPageViewer)d).MaxZoomChanged((double) e.OldValue, (double) e.NewValue); 1446((FlowDocumentPageViewer)d).MinZoomChanged((double) e.OldValue, (double) e.NewValue);
src\Framework\System\Windows\Controls\Slider.cs (1)
627double newValue = (double)e.NewValue;
src\Framework\System\Windows\Controls\SoundPlayerAction.cs (1)
86soundPlayerAction.OnSourceChangedHelper((Uri)e.NewValue);
src\Framework\System\Windows\Controls\SpellCheck.cs (4)
217textEditor.SetSpellCheckEnabled((bool)e.NewValue); 218if ((bool)e.NewValue != (bool)e.OldValue) 220textEditor.SetCustomDictionaries((bool)e.NewValue); 237textEditor.SetSpellingReform((SpellingReform)e.NewValue);
src\Framework\System\Windows\Controls\StickyNote.cs (2)
824innerControl.SetValue(e.Property, e.NewValue); 841innerControl.SetValue(ForegroundProperty, e.NewValue);
src\Framework\System\Windows\Controls\TabItem.cs (1)
99bool isSelected = (bool)e.NewValue;
src\Framework\System\Windows\Controls\TextBlock.cs (1)
4076OnTextChanged(d, (string)e.NewValue);
src\Framework\System\Windows\Controls\TextBox.cs (3)
1049peer.RaiseValuePropertyChangedEvent((string)e.OldValue, (string)e.NewValue); 1054peer.RaiseIsReadOnlyPropertyChangedEvent((bool)e.OldValue, (bool)e.NewValue); 1568textBox.OnTextPropertyChanged((string)e.OldValue, (string)e.NewValue);
src\Framework\System\Windows\Controls\ToolBar.cs (1)
256if ((bool) e.NewValue)
src\Framework\System\Windows\Controls\ToolTip.cs (1)
180if ((bool)e.NewValue)
src\Framework\System\Windows\Controls\TreeViewItem.cs (2)
94bool isExpanded = (bool) e.NewValue; 161bool isSelected = (bool) e.NewValue;
src\Framework\System\Windows\Controls\Validation.cs (3)
121ValidationErrorCollection newErrors = e.NewValue as ValidationErrorCollection; 272DependencyObject newSite = (DependencyObject)e.NewValue; 340DependencyObject newSiteFor = (DependencyObject)e.NewValue;
src\Framework\System\Windows\Controls\ViewPort3D.cs (1)
114owner._viewport3DVisual.Camera = (Camera) e.NewValue;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (1)
3965if (!(bool)e.NewValue)
src\Framework\System\Windows\Controls\WrapPanel.cs (1)
172p._orientation = (Orientation) e.NewValue;
src\Framework\System\Windows\Data\BindingGroup.cs (1)
949if (e.NewValue == BindingExpressionBase.DisconnectedItem)
src\Framework\System\Windows\Data\CollectionContainer.cs (1)
344cc.HookUpToCollection((IEnumerable) e.NewValue, true);
src\Framework\System\Windows\Data\CollectionViewSource.cs (2)
123ctrl.OnSourceChanged(e.OldValue, e.NewValue); 185Type newCollectionViewType = (Type) e.NewValue;
src\Framework\System\Windows\Documents\DocumentReference.cs (2)
161if (!object.Equals(e.OldValue, e.NewValue)) 164Uri newSource = (Uri) e.NewValue;
src\Framework\System\Windows\Documents\FixedHyperlink.cs (1)
60NavigationService newService = (NavigationService) e.NewValue;
src\Framework\System\Windows\Documents\Hyperlink.cs (2)
177h.OnCommandChanged((ICommand)e.OldValue, (ICommand)e.NewValue); 939Uri navigateUri = (Uri)e.NewValue;
src\Framework\System\Windows\Documents\Run.cs (1)
242string newText = (string)e.NewValue;
src\Framework\System\Windows\Documents\TableCell.cs (2)
598peer.OnColumnSpanChanged((int)e.OldValue, (int)e.NewValue); 618peer.OnRowSpanChanged((int)e.OldValue, (int)e.NewValue);
src\Framework\System\windows\Documents\TextEditor.cs (1)
1707if ((bool)e.NewValue == true && This._textstore != null)
src\Framework\System\Windows\FrameworkContentElement.cs (2)
162StyleHelper.UpdateStyleCache(null, fce, (Style) e.OldValue, (Style) e.NewValue, ref fce._styleCache); 1174if (e.NewValue == BindingExpressionBase.DisconnectedItem)
src\Framework\System\Windows\FrameworkElement.cs (4)
183StyleHelper.UpdateStyleCache(fe, null, (Style) e.OldValue, (Style) e.NewValue, ref fe._styleCache); 233bool newValue = (bool)e.NewValue; 2743if (e.NewValue == BindingExpressionBase.DisconnectedItem) 3682fe.IsRightToLeft = ((FlowDirection)e.NewValue) == FlowDirection.RightToLeft;
src\Framework\System\Windows\Interop\HwndHost.cs (2)
1096bool boolNewValue = (bool)e.NewValue; 1113bool vis = (bool)e.NewValue;
src\Framework\System\Windows\Navigation\NavigationWindow.cs (2)
98bool fSandBox = (bool)e.NewValue; 616Uri uriToNavigate = BindUriHelper.GetUriToNavigate(navWin, d.GetValue(BaseUriHelper.BaseUriProperty) as Uri, (Uri)e.NewValue);
src\Framework\System\Windows\Shell\ThumbButtonInfo.cs (1)
182var newCommand = (ICommand)e.NewValue;
src\Framework\System\Windows\Shell\WindowChrome.cs (1)
72var newChrome = (WindowChrome)e.NewValue;
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (1)
171var cw = (WindowChromeWorker)e.NewValue;
src\Framework\System\Windows\StyleHelper.cs (2)
4867newState = conditions[0].Match(changedArgs.NewValue); 4945newState = conditions[i].Match(changedArgs.NewValue);
src\Framework\System\Windows\Window.cs (15)
671var newBar = (TaskbarItemInfo)e.NewValue; 5261w.OnIconChanged(e.NewValue as ImageSource); 5375w.OnWindowStateChanged((WindowState) e.NewValue); 5512w.OnWindowStyleChanged((WindowStyle) e.NewValue); 5543w.OnTopmostChanged((bool) e.NewValue); 5615bool visibilityValue = VisibilityToBool((Visibility) e.NewValue); 5919w.OnSizeToContentChanged((SizeToContent) e.NewValue); 5981w.OnHeightChanged((double) e.NewValue); 6006w.OnMinHeightChanged((double) e.NewValue); 6045w.OnMaxHeightChanged((double) e.NewValue); 6085w.OnWidthChanged((double) e.NewValue); 6104w.OnMinWidthChanged((double) e.NewValue); 6145w.OnMaxWidthChanged((double) e.NewValue); 6390w.OnTopChanged((double) e.NewValue); 6465w.OnLeftChanged((double) e.NewValue);
PresentationFramework.Aero (9)
Microsoft\Windows\Themes\BulletChrome.cs (2)
123if (((bool)e.NewValue)) 345if (((bool)e.NewValue))
Microsoft\Windows\Themes\ButtonChrome.cs (3)
121if (((bool)e.NewValue)) 212if (((bool)e.NewValue)) 301if (((bool)e.NewValue))
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
142if (((bool)e.NewValue))
Microsoft\Windows\Themes\ScrollChrome.cs (3)
111if (((bool)e.NewValue)) 225if (((bool)e.NewValue)) 329if (((bool)e.NewValue))
System.Activities.Core.Presentation (14)
System\Activities\Core\Presentation\FlowDecisionDesigner.xaml.cs (2)
204if (e.NewValue != DependencyProperty.UnsetValue) 207designer.OnShowAllConditionsChanged((bool)e.NewValue);
System\Activities\Core\Presentation\FlowSwitchDesigner.xaml.cs (2)
262if (e.NewValue != DependencyProperty.UnsetValue) 265designer.OnShowAllConditionsChanged((bool)e.NewValue);
System\Activities\Core\Presentation\FlowSwitchLink.cs (3)
159bool value = (bool)e.NewValue; 272T newValue = (T)e.NewValue; 388string newValue = (string)e.NewValue;
System\Activities\Presentation\DynamicArgumentDesigner.xaml.cs (1)
525string newName = e.NewValue as string;
System\ServiceModel\Activities\Presentation\BindingEditor.xaml.cs (1)
94object newValue = args.NewValue;
System\ServiceModel\Activities\Presentation\CorrelationDataDesigner.xaml.cs (2)
112var item = e.NewValue as ModelItem; 121(sender as CorrelationDataDesigner).correlationInitializers.ItemsSource = e.NewValue as ObservableCollection<CorrelationDataWrapper>;
System\ServiceModel\Activities\Presentation\CorrelationInitializerDesigner.xaml.cs (1)
131var activity = e.NewValue as ModelItem;
System\ServiceModel\Activities\Presentation\MessageQuerySetDesigner.xaml.cs (2)
218var activity = e.NewValue as ModelItem; 230var container = e.NewValue as ModelItem;
System.Activities.Presentation (65)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryList.cs (1)
581bool hasKeyboardFocus = (bool)e.NewValue;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\EditModeSwitchButtonKeyboardFix.cs (1)
95if (object.Equals(e.NewValue, true))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagPanel.cs (1)
38Type flagType = args.NewValue as Type;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\SubPropertyEditor.cs (4)
248PropertyEntry newValue = e.NewValue as PropertyEntry; 278bool newIsExpanded = (bool)e.NewValue; 315theThis._quickTypeView.MoveCurrentTo(e.NewValue); 362OnOwningPropertyContainerChanged((PropertyContainer)e.OldValue, (PropertyContainer)e.NewValue);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryContainer.xaml.cs (3)
199if (e.NewValue != null) 214if (e.NewValue != null) 216CategoryBase category = (CategoryBase)e.NewValue;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (2)
257FocusScopeManager.Instance.UpdateFocusScopePriorityForElement(d as UIElement, (int)e.OldValue, (int)e.NewValue); 275bool newValue = (bool)e.NewValue;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (1)
594if (!object.Equals(e.OldValue, e.NewValue))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\StringEditor.cs (1)
142bool isNowEditing = (bool)e.NewValue;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyToolBar.cs (3)
242PropertyViewManagerStateContainer.Instance.StorePropertyViewManager(theThis.PersistenceId, e.NewValue as IPropertyViewManager); 277if (e.NewValue != null) 279theThis.HookEvents(e.NewValue as CategoryList);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Selection\PropertySelection.cs (4)
221if (bool.Equals(e.OldValue, false) && bool.Equals(e.NewValue, true)) 225else if (bool.Equals(e.OldValue, true) && bool.Equals(e.NewValue, false)) 364if (e.OldValue != null && e.NewValue == null) 368else if (e.NewValue != null && e.OldValue == null)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\EditModeSwitchButton.cs (1)
157PropertyContainer newContainer = (PropertyContainer)e.NewValue;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyContainer.cs (3)
123if (e.NewValue != null) 124theThis.AssociatePropertyEventHandlers((PropertyEntry)e.NewValue); 166if (object.Equals(e.NewValue, PropertyContainerEditMode.Dialog))
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxControl.cs (1)
194string fileName = args.NewValue as string;
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (2)
328if ((Boolean)e.NewValue == true) 514ModelItem newItem = e.NewValue as ModelItem;
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (4)
259viewStateService.StoreViewState(modelTreeManager.Root, e.Property.Name, e.NewValue); 871designerView.Context.Items.SetValue(new ReadOnlyState() { IsReadOnly = (bool)e.NewValue }); 968WorkflowViewElement currentRoot = (WorkflowViewElement)e.NewValue; 992if ((bool)e.NewValue == false)
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (2)
429ExpressionEditor.ValidateExpressionActivityEditorName((string)e.NewValue); 434this.HintTextSetbyUser = (string)e.NewValue;
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (2)
112if (null != args.NewValue) 114designer = (DesignerView)args.NewValue;
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindow.cs (3)
230((ExtensionWindow)sender).OnDataChanged(args.OldValue, args.NewValue); 235((ExtensionWindow)sender).OnPositionChanged((Point)args.NewValue); 240((ExtensionWindow)sender).OnVisibilityChanged((Visibility)e.OldValue, (Visibility)e.NewValue);
System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (3)
141if ((bool)e.NewValue == true) 169if ((Boolean)e.NewValue) 186if (bool.Equals(true, e.NewValue))
System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (3)
504if (!(bool)args.NewValue) 521ctrl.lastSelection = (Type)args.NewValue; 549((ObservableCollection<Type>)args.NewValue).CollectionChanged += ctrl.OnMostRecentlyUsedTypesChanged;
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (2)
494if (bool.Equals(true, e.NewValue)) 553if (!object.Equals(e.OldValue, e.NewValue))
System.Activities.Presentation\System\Activities\Presentation\View\VersionEditor.xaml.cs (1)
63this.ViewModel.Version = (Version)e.NewValue;
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (6)
1156ModelItem expression = e.NewValue as ModelItem; 1198this.OnPathToArgumentChanged((string)e.NewValue); 1744if (!string.Equals(SR.ExpressionDefaultText, e.NewValue) && !string.Equals(e.OldValue, e.NewValue)) 1754this.expressionEditorInstance.AcceptsReturn = (bool)e.NewValue; 1762this.expressionEditorInstance.AcceptsTab = (bool)e.NewValue;
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (1)
232if (this.modelTreeManager != null && (bool)e.NewValue == false)
System.Activities.Presentation\System\Activities\Presentation\WorkflowElementDialog.cs (1)
183dialog.OnModelItemChanged(e.NewValue);
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (1)
429object newItem = e.NewValue;
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (3)
193itemsPresenter.UpdateHintTextVisibility(e.NewValue as string); 199itemsPresenter.OnItemsChanged((ModelItemCollection)e.OldValue, (ModelItemCollection)e.NewValue); 205itemsPresenter.panel.ItemsPanel = (ItemsPanelTemplate)e.NewValue;
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (5)
60viewElement.OnExpandStateChanged((bool)e.NewValue); 66viewElement.OnPinStateChanged((bool)e.NewValue); 79viewElement.OnShowExpandedChanged((bool)e.NewValue); 85viewElement.OnReadOnlyChanged((bool)e.NewValue); 901viewElement.OnModelItemChanged(e.NewValue);