Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Media3D / ContainerUIElement3D.cs / 1 / ContainerUIElement3D.cs
//---------------------------------------------------------------------------- // //// Copyright (c) Microsoft Corporation. All rights reserved. // // // Description: // // History: // 4/12/2007: kurtb - Created // //--------------------------------------------------------------------------- using MS.Internal; using MS.Internal.Media; using MS.Internal.Media3D; using System; using System.Diagnostics; using System.Collections.Specialized; using System.ComponentModel; using System.Windows.Automation.Peers; using System.Windows.Media.Composition; using System.Windows.Markup; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media.Media3D { ////// ContainerUIElement3D is a UIElement3D which contains children of type Visual3D. /// It does not set the Visual3DModel property. /// [ContentProperty("Children")] public sealed class ContainerUIElement3D : UIElement3D { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Default ctor /// public ContainerUIElement3D() { _children = new Visual3DCollection(this); } #endregion Constructors ////// Derived class must implement to support Visual3D children. The method must return /// the child at the specified index. Index must be between 0 and GetVisual3DChildrenCount-1. /// /// By default a Visual3D does not have any children. /// /// Remark: /// During this virtual call it is not valid to modify the Visual tree. /// protected override Visual3D GetVisual3DChild(int index) { //Visual3DCollection does the range check for index return _children[index]; } ////// Derived classes override this property to enable the Visual3D code to enumerate /// the Visual3D children. Derived classes need to return the number of children /// from this method. /// /// By default a Visual3D does not have any children. /// /// Remark: During this virtual method the Visual tree must not be modified. /// protected override int Visual3DChildrenCount { get { return _children.Count; } } ////// Children of this Visual3D /// [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] public Visual3DCollection Children { get { VerifyAPIReadOnly(); return _children; } } ////// Called by the Automation infrastructure when AutomationPeer /// is requested for this element. /// protected override AutomationPeer OnCreateAutomationPeer() { return new UIElement3DAutomationPeer(this); } //------------------------------------------------------ // // Private Fields // //----------------------------------------------------- #region Private Fields private readonly Visual3DCollection _children; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------------- // //// Copyright (c) Microsoft Corporation. All rights reserved. // // // Description: // // History: // 4/12/2007: kurtb - Created // //--------------------------------------------------------------------------- using MS.Internal; using MS.Internal.Media; using MS.Internal.Media3D; using System; using System.Diagnostics; using System.Collections.Specialized; using System.ComponentModel; using System.Windows.Automation.Peers; using System.Windows.Media.Composition; using System.Windows.Markup; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media.Media3D { ////// ContainerUIElement3D is a UIElement3D which contains children of type Visual3D. /// It does not set the Visual3DModel property. /// [ContentProperty("Children")] public sealed class ContainerUIElement3D : UIElement3D { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Default ctor /// public ContainerUIElement3D() { _children = new Visual3DCollection(this); } #endregion Constructors ////// Derived class must implement to support Visual3D children. The method must return /// the child at the specified index. Index must be between 0 and GetVisual3DChildrenCount-1. /// /// By default a Visual3D does not have any children. /// /// Remark: /// During this virtual call it is not valid to modify the Visual tree. /// protected override Visual3D GetVisual3DChild(int index) { //Visual3DCollection does the range check for index return _children[index]; } ////// Derived classes override this property to enable the Visual3D code to enumerate /// the Visual3D children. Derived classes need to return the number of children /// from this method. /// /// By default a Visual3D does not have any children. /// /// Remark: During this virtual method the Visual tree must not be modified. /// protected override int Visual3DChildrenCount { get { return _children.Count; } } ////// Children of this Visual3D /// [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] public Visual3DCollection Children { get { VerifyAPIReadOnly(); return _children; } } ////// Called by the Automation infrastructure when AutomationPeer /// is requested for this element. /// protected override AutomationPeer OnCreateAutomationPeer() { return new UIElement3DAutomationPeer(this); } //------------------------------------------------------ // // Private Fields // //----------------------------------------------------- #region Private Fields private readonly Visual3DCollection _children; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CustomValidator.cs
- TabPage.cs
- PictureBox.cs
- FileSecurity.cs
- Scanner.cs
- AccessibleObject.cs
- DrawListViewSubItemEventArgs.cs
- Calendar.cs
- NullableLongSumAggregationOperator.cs
- TextEndOfLine.cs
- DbConnectionPoolOptions.cs
- StylusOverProperty.cs
- BrowserCapabilitiesFactory35.cs
- TabItemAutomationPeer.cs
- DropShadowBitmapEffect.cs
- PanningMessageFilter.cs
- ObjectConverter.cs
- ConnectionPoint.cs
- DbConnectionStringBuilder.cs
- AssociationTypeEmitter.cs
- ByteStack.cs
- WmlControlAdapter.cs
- ProjectionAnalyzer.cs
- PageFunction.cs
- EntitySqlException.cs
- AdvancedBindingPropertyDescriptor.cs
- ScriptControlDescriptor.cs
- JapaneseLunisolarCalendar.cs
- CheckBoxBaseAdapter.cs
- ReaderWriterLock.cs
- WebPartDescription.cs
- Int32.cs
- Constant.cs
- AuthorizationRuleCollection.cs
- DataDocumentXPathNavigator.cs
- PropertyDescriptorGridEntry.cs
- AmbientProperties.cs
- XmlAttribute.cs
- LinqDataSourceContextEventArgs.cs
- TypeInformation.cs
- CompositeActivityDesigner.cs
- TabPanel.cs
- TreeIterator.cs
- KnownTypesHelper.cs
- PeerMaintainer.cs
- PlainXmlDeserializer.cs
- ExpressionTextBox.xaml.cs
- ServiceActivationException.cs
- SimpleApplicationHost.cs
- XmlSchemaImport.cs
- CharacterMetricsDictionary.cs
- PrinterSettings.cs
- ExternalDataExchangeService.cs
- HttpCapabilitiesBase.cs
- TypeInfo.cs
- ToolBar.cs
- DataControlField.cs
- BooleanAnimationUsingKeyFrames.cs
- KoreanCalendar.cs
- EmptyEnumerable.cs
- Column.cs
- ControlIdConverter.cs
- Parameter.cs
- VarInfo.cs
- SqlDataSourceCommandEventArgs.cs
- KnownBoxes.cs
- DataServiceRequest.cs
- CustomTypeDescriptor.cs
- WpfWebRequestHelper.cs
- DataTemplate.cs
- ECDsaCng.cs
- CompiledWorkflowDefinitionContext.cs
- Emitter.cs
- SspiWrapper.cs
- ActivityPreviewDesigner.cs
- BindingNavigator.cs
- RelationshipEndCollection.cs
- DataGridViewRowEventArgs.cs
- SizeChangedInfo.cs
- CodeIdentifier.cs
- ConsumerConnectionPoint.cs
- ShaderEffect.cs
- BitVector32.cs
- TemplatePropertyEntry.cs
- Encoding.cs
- CodeCastExpression.cs
- PropertyCollection.cs
- TraceHandlerErrorFormatter.cs
- SchemaSetCompiler.cs
- SerializeAbsoluteContext.cs
- EntityViewGenerator.cs
- SettingsPropertyValue.cs
- TextDecorationUnitValidation.cs
- WindowsToolbarAsMenu.cs
- DataException.cs
- PrePostDescendentsWalker.cs
- URL.cs
- PaginationProgressEventArgs.cs
- RotateTransform3D.cs
- AnnotationHighlightLayer.cs