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
- DeploymentExceptionMapper.cs
- HierarchicalDataBoundControl.cs
- dtdvalidator.cs
- ResponseBodyWriter.cs
- EventHandlerList.cs
- RouteValueDictionary.cs
- OciHandle.cs
- AssemblySettingAttributes.cs
- Errors.cs
- WhiteSpaceTrimStringConverter.cs
- BamlResourceDeserializer.cs
- Journal.cs
- DistributedTransactionPermission.cs
- EpmSourceTree.cs
- MetabaseReader.cs
- SQLBoolean.cs
- Triangle.cs
- ErrorWebPart.cs
- TokenizerHelper.cs
- StylusCollection.cs
- FaultCallbackWrapper.cs
- newinstructionaction.cs
- PrivilegedConfigurationManager.cs
- CheckBoxList.cs
- PathTooLongException.cs
- SiteMapNodeCollection.cs
- ISAPIApplicationHost.cs
- HebrewNumber.cs
- EncoderBestFitFallback.cs
- SoapIgnoreAttribute.cs
- UnhandledExceptionEventArgs.cs
- AuthorizationSection.cs
- BaseParagraph.cs
- Visitors.cs
- DocumentViewerBase.cs
- Parameter.cs
- IdleTimeoutMonitor.cs
- ProcessRequestArgs.cs
- ComplusEndpointConfigContainer.cs
- FilterEventArgs.cs
- RelatedView.cs
- PackageStore.cs
- EmptyCollection.cs
- MarkupCompilePass1.cs
- ResponseStream.cs
- MsmqUri.cs
- SafeProcessHandle.cs
- CommonRemoteMemoryBlock.cs
- ObjectTag.cs
- CodeCastExpression.cs
- ChangePasswordAutoFormat.cs
- StringDictionaryEditor.cs
- DbProviderConfigurationHandler.cs
- DependencyPropertyHelper.cs
- FixedPageAutomationPeer.cs
- StreamWriter.cs
- HttpValueCollection.cs
- OperationResponse.cs
- FixedPageProcessor.cs
- CipherData.cs
- UrlPath.cs
- sqlmetadatafactory.cs
- ValidationUtility.cs
- DynamicActivityProperty.cs
- ConnectionStringSettingsCollection.cs
- AutomationAttributeInfo.cs
- StartUpEventArgs.cs
- ParagraphVisual.cs
- EndEvent.cs
- RoutedEventHandlerInfo.cs
- RangeValueProviderWrapper.cs
- SqlDataSourceCache.cs
- WindowsComboBox.cs
- unsafenativemethodsother.cs
- SqlDataAdapter.cs
- PageThemeBuildProvider.cs
- PartialCachingControl.cs
- WorkItem.cs
- CheckBoxFlatAdapter.cs
- XmlNamespaceMappingCollection.cs
- Int32EqualityComparer.cs
- VideoDrawing.cs
- Variable.cs
- BooleanToVisibilityConverter.cs
- QuaternionAnimation.cs
- SqlTypesSchemaImporter.cs
- MachineSettingsSection.cs
- AuthenticationSection.cs
- SqlUserDefinedAggregateAttribute.cs
- FixedSOMLineRanges.cs
- CollectionView.cs
- TransactionTable.cs
- DataSourceCache.cs
- TabletDevice.cs
- OdbcCommandBuilder.cs
- ContentValidator.cs
- XmlDocumentSurrogate.cs
- PrintPageEvent.cs
- RenderData.cs
- Cursor.cs