Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / Controls / StyleSelector.cs / 1 / StyleSelector.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: StyleSelector allows the app writer to provide custom style selection logic. // // Specs: http://avalon/connecteddata/M5%20General%20Docs/Data%20Styling.mht // //--------------------------------------------------------------------------- using System.Windows.Shapes; using System.Windows.Media; using System.Windows.Data; using System.ComponentModel; using System; namespace System.Windows.Controls { ////// public class StyleSelector { ////// StyleSelector allows the app writer to provide custom style selection logic. /// For example, with a class Bug as the Content, /// use a particular style for Pri1 bugs and a different style for Pri2 bugs. ///
////// An application writer can override the SelectStyle method in a derived /// selector class and assign an instance of this class to the StyleSelector property on ///
///class. /// /// Override this method to return an app specific /// The data content /// The element to which the style will be applied ///. /// an app-specific style to apply, or null. public virtual Style SelectStyle(object item, DependencyObject container) { return null; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: StyleSelector allows the app writer to provide custom style selection logic. // // Specs: http://avalon/connecteddata/M5%20General%20Docs/Data%20Styling.mht // //--------------------------------------------------------------------------- using System.Windows.Shapes; using System.Windows.Media; using System.Windows.Data; using System.ComponentModel; using System; namespace System.Windows.Controls { ////// public class StyleSelector { ////// StyleSelector allows the app writer to provide custom style selection logic. /// For example, with a class Bug as the Content, /// use a particular style for Pri1 bugs and a different style for Pri2 bugs. ///
////// An application writer can override the SelectStyle method in a derived /// selector class and assign an instance of this class to the StyleSelector property on ///
///class. /// /// Override this method to return an app specific /// The data content /// The element to which the style will be applied ///. /// an app-specific style to apply, or null. public virtual Style SelectStyle(object item, DependencyObject container) { return null; } } } // 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
- TextRangeEditTables.cs
- ByteStreamMessageUtility.cs
- MemoryMappedViewStream.cs
- FileDialog_Vista_Interop.cs
- PlatformNotSupportedException.cs
- JsonFormatReaderGenerator.cs
- EntityObject.cs
- XmlRawWriter.cs
- SessionStateUtil.cs
- HtmlImageAdapter.cs
- DSASignatureFormatter.cs
- Literal.cs
- DeferredReference.cs
- ExceptionTrace.cs
- ManagedWndProcTracker.cs
- MouseGestureConverter.cs
- CodeTypeMember.cs
- ResourceReader.cs
- Oid.cs
- RepeaterItemEventArgs.cs
- Container.cs
- ProfileBuildProvider.cs
- WmlSelectionListAdapter.cs
- PrivilegedConfigurationManager.cs
- SplitterPanel.cs
- ResourcesChangeInfo.cs
- DrawItemEvent.cs
- Transform3DCollection.cs
- ZipIOExtraField.cs
- BaseDataList.cs
- PageCodeDomTreeGenerator.cs
- odbcmetadatacollectionnames.cs
- StyleHelper.cs
- FlowDocument.cs
- EventManager.cs
- TriState.cs
- CommentEmitter.cs
- TemplateField.cs
- XmlSchema.cs
- DropSource.cs
- FunctionMappingTranslator.cs
- IISMapPath.cs
- MatrixCamera.cs
- ToolbarAUtomationPeer.cs
- HashLookup.cs
- UndoEngine.cs
- TableCellCollection.cs
- Table.cs
- SQlBooleanStorage.cs
- SamlAudienceRestrictionCondition.cs
- ObjectDataSourceChooseTypePanel.cs
- TextFindEngine.cs
- DelegateHelpers.Generated.cs
- Matrix.cs
- QueryConverter.cs
- SynchronizationValidator.cs
- UIElementPropertyUndoUnit.cs
- ConfigurationException.cs
- XamlFilter.cs
- DataSourceControlBuilder.cs
- ReflectionUtil.cs
- LineVisual.cs
- OdbcConnection.cs
- Win32MouseDevice.cs
- ConnectionManagementSection.cs
- PropertyDescriptorGridEntry.cs
- Verify.cs
- ModifierKeysValueSerializer.cs
- MailDefinition.cs
- StylusPointDescription.cs
- DateTimePicker.cs
- CodeBlockBuilder.cs
- UnorderedHashRepartitionStream.cs
- ErrorStyle.cs
- DeviceContext.cs
- NewExpression.cs
- _NtlmClient.cs
- LinkConverter.cs
- GPRECTF.cs
- DefaultTextStore.cs
- Style.cs
- CodeConstructor.cs
- Oci.cs
- ToggleButtonAutomationPeer.cs
- Italic.cs
- DataColumnCollection.cs
- SimpleRecyclingCache.cs
- StateMachineAction.cs
- UnmanagedBitmapWrapper.cs
- HTMLTagNameToTypeMapper.cs
- LinearGradientBrush.cs
- QilTargetType.cs
- DefaultSection.cs
- Activator.cs
- PageCatalogPart.cs
- AuthenticationModuleElement.cs
- EntityDataSourceStatementEditorForm.cs
- NameValueConfigurationElement.cs
- InkSerializer.cs
- DbProviderFactoriesConfigurationHandler.cs