Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / HierarchicalDataTemplate.cs / 1 / HierarchicalDataTemplate.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: HierarchicalDataTemplate adds hierarchy support to DataTemplate. // // Specs: [....]/coreui/Specs%20%20Property%20Engine/Styling%20Revisited.doc // //--------------------------------------------------------------------------- using System.Windows.Controls; using System.Windows.Data; namespace System.Windows { ////// HierarchicalDataTemplate adds hierarchy support to DataTemplate. /// public class HierarchicalDataTemplate : DataTemplate { #region Constructors //------------------------------------------------------------------- // // Constructors // //------------------------------------------------------------------- ////// HierarchicalDataTemplate Constructor /// public HierarchicalDataTemplate() { } ////// HierarchicalDataTemplate Constructor /// public HierarchicalDataTemplate(object dataType) : base(dataType) { } #endregion Constructors #region Public Properties //-------------------------------------------------------------------- // // Public Properties // //------------------------------------------------------------------- ////// ItemsSource binding for this DataTemplate. This is applied /// to the ItemsSource property on a generated HeaderedItemsControl, /// to indicate where to find the collection that represents the /// next level in the data hierarchy. /// public BindingBase ItemsSource { get { return _itemsSourceBinding; } set { CheckSealed(); _itemsSourceBinding = value; } } ////// ItemTemplate for this DataTemplate. This is applied /// to the ItemTemplate property on a generated HeaderedItemsControl, /// to indicate how to display items from the next level in the /// data hierarchy. /// public DataTemplate ItemTemplate { get { return _itemTemplate; } set { CheckSealed(); _itemTemplate = value; _itemTemplateSet = true; } } ////// ItemTemplateSelector for this DataTemplate. This is applied /// to the ItemTemplateSelector property on a generated HeaderedItemsControl, /// to indicate how to select a template to display items from the /// next level in the data hierarchy. /// public DataTemplateSelector ItemTemplateSelector { get { return _itemTemplateSelector; } set { CheckSealed(); _itemTemplateSelector = value; _itemTemplateSelectorSet = true; } } #endregion Public Properties #region Internal Properties //-------------------------------------------------------------------- // // Internal Properties // //-------------------------------------------------------------------- internal bool IsItemTemplateSet { get { return _itemTemplateSet; } } internal bool IsItemTemplateSelectorSet { get { return _itemTemplateSelectorSet; } } #endregion Internal Properties #region Data private BindingBase _itemsSourceBinding; private DataTemplate _itemTemplate; private DataTemplateSelector _itemTemplateSelector; private bool _itemTemplateSet; private bool _itemTemplateSelectorSet; #endregion Data } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MimeMapping.cs
- Exceptions.cs
- LocalIdKeyIdentifierClause.cs
- SqlHelper.cs
- ListBoxItemAutomationPeer.cs
- WebServiceData.cs
- RetrieveVirtualItemEventArgs.cs
- FormsAuthenticationUser.cs
- mactripleDES.cs
- FusionWrap.cs
- PackUriHelper.cs
- TextEmbeddedObject.cs
- SecurityUtils.cs
- DataGridViewRowEventArgs.cs
- KeyValuePairs.cs
- EdmEntityTypeAttribute.cs
- ApplicationProxyInternal.cs
- SubpageParaClient.cs
- RSAPKCS1SignatureFormatter.cs
- Property.cs
- connectionpool.cs
- MemberRelationshipService.cs
- JpegBitmapDecoder.cs
- AuthorizationRuleCollection.cs
- X509SecurityTokenProvider.cs
- OleAutBinder.cs
- CharUnicodeInfo.cs
- GenericTextProperties.cs
- SchemaImporterExtensionsSection.cs
- RequestTimeoutManager.cs
- CellPartitioner.cs
- indexingfiltermarshaler.cs
- SqlBulkCopy.cs
- TypedDataSourceCodeGenerator.cs
- ScrollChangedEventArgs.cs
- PropertyPathConverter.cs
- QueryOptionExpression.cs
- Timer.cs
- Validator.cs
- DataListCommandEventArgs.cs
- SafeRightsManagementHandle.cs
- TitleStyle.cs
- UnaryExpressionHelper.cs
- TransformProviderWrapper.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- NavigatingCancelEventArgs.cs
- GeometryCombineModeValidation.cs
- HttpPostedFile.cs
- LambdaCompiler.Binary.cs
- SamlDoNotCacheCondition.cs
- UrlPath.cs
- GridViewCommandEventArgs.cs
- SingleAnimation.cs
- DataSourceCache.cs
- GC.cs
- GenericsInstances.cs
- NamedElement.cs
- Tuple.cs
- PresentationTraceSources.cs
- nulltextcontainer.cs
- AssemblyResourceLoader.cs
- CodeMemberProperty.cs
- Int64Converter.cs
- ExternalCalls.cs
- ResourceCategoryAttribute.cs
- XamlPoint3DCollectionSerializer.cs
- CodeParameterDeclarationExpressionCollection.cs
- WebPartZoneBase.cs
- LockedActivityGlyph.cs
- BitStream.cs
- TrackingSection.cs
- KeyFrames.cs
- PropertyEntry.cs
- SafeLibraryHandle.cs
- BuildProvidersCompiler.cs
- DataKeyCollection.cs
- MarkupExtensionParser.cs
- SQLCharsStorage.cs
- XmlSchemaFacet.cs
- ConsoleCancelEventArgs.cs
- UnsupportedPolicyOptionsException.cs
- DrawingGroup.cs
- SessionEndingEventArgs.cs
- ExternalException.cs
- ProvideValueServiceProvider.cs
- MatrixAnimationUsingKeyFrames.cs
- ClientBuildManager.cs
- SectionVisual.cs
- GifBitmapEncoder.cs
- MSAANativeProvider.cs
- ClientRequest.cs
- ProcessHostFactoryHelper.cs
- BordersPage.cs
- LineBreakRecord.cs
- SignatureHelper.cs
- UnsafeNativeMethods.cs
- TableItemPattern.cs
- _HeaderInfoTable.cs
- ReadOnlyMetadataCollection.cs
- OutputCacheProviderCollection.cs