DesignerStylesDictionary 类

定义

提供设计器样式词典。Provides a dictionary for designer styles.

public ref class DesignerStylesDictionary sealed : System::Windows::ResourceDictionary, System::Windows::Markup::IComponentConnector
public sealed class DesignerStylesDictionary : System.Windows.ResourceDictionary, System.Windows.Markup.IComponentConnector
type DesignerStylesDictionary = class
    inherit ResourceDictionary
    interface IComponentConnector
Public NotInheritable Class DesignerStylesDictionary
Inherits ResourceDictionary
Implements IComponentConnector
继承
DesignerStylesDictionary
实现

属性

Count

获取基 ResourceDictionary 中的项数。Gets the number of entries in the base ResourceDictionary.

(继承自 ResourceDictionary)
DeferrableContent

获取或设置此资源字典的可推迟内容。Gets or sets the deferrable content for this resource dictionary.

(继承自 ResourceDictionary)
InvalidatesImplicitDataTemplateResources

获取或设置一个值,指示 ResourceDictionary 对象引发的失效是否会导致 ContentPresenter 对象重新评估其所选的模板。Gets or sets a value that indicates whether the invalidations fired by the ResourceDictionary object cause ContentPresenter objects to reevaluate their choice of template. 某个隐式数据模板资源发生改变时,将发生失效。The invalidations happen when an implicit data template resource changes.

(继承自 ResourceDictionary)
IsFixedSize

获取此 ResourceDictionary 是否具有固定大小。Gets whether this ResourceDictionary is fixed-size.

(继承自 ResourceDictionary)
IsReadOnly

获取此 ResourceDictionary 是否为只读。Gets whether this ResourceDictionary is read-only.

(继承自 ResourceDictionary)
Item[Object]

获取或设置与给定键相关联的值。Gets or sets the value associated with the given key.

(继承自 ResourceDictionary)
Keys

获取此 ResourceDictionary 中包含的所有键的集合。Gets a collection of all keys contained in this ResourceDictionary.

(继承自 ResourceDictionary)
MergedDictionaries

获取 ResourceDictionary 字典的集合,这些字典构成了合并字典中的各种资源字典。Gets a collection of the ResourceDictionary dictionaries that constitute the various resource dictionaries in the merged dictionaries.

(继承自 ResourceDictionary)
SequenceStyle

获取此 DesignerStylesDictionary 实例中存储的序列样式。Gets the sequence style stored in this DesignerStylesDictionary instance. 如果此序列样式未密封,还会对其进行密封。Also, seals the sequence style if it is not already sealed.

Source

获取或设置要从其加载资源的统一资源标识符 (URI)。Gets or sets the uniform resource identifier (URI) to load resources from.

(继承自 ResourceDictionary)
Values

获取与此 ResourceDictionary 中包含的键关联的所有值的集合。Gets a collection of all values associated with keys contained in this ResourceDictionary.

(继承自 ResourceDictionary)

方法

Add(Object, Object)

通过键将资源添加到此 ResourceDictionary 中。Adds a resource by key to this ResourceDictionary.

(继承自 ResourceDictionary)
BeginInit()

开始此 ResourceDictionary 的初始化阶段。Begins the initialization phase for this ResourceDictionary.

(继承自 ResourceDictionary)
Clear()

清除基 ResourceDictionary 中的所有键(以及值)。Clears all keys (and values) in the base ResourceDictionary. 这不会清除任何合并的字典项。This does not clear any merged dictionary items.

(继承自 ResourceDictionary)
Contains(Object)

确定是否 ResourceDictionary 包含带有指定键的元素。Determines whether the ResourceDictionary contains an element with the specified key.

(继承自 ResourceDictionary)
CopyTo(DictionaryEntry[], Int32)

ResourceDictionary 元素复制到位于指定索引处的一维 DictionaryEntry 中。Copies the ResourceDictionary elements to a one-dimensional DictionaryEntry at the specified index.

(继承自 ResourceDictionary)
EndInit()

结束初始化阶段,并使上一个树无效,以便在初始化阶段对键所做的更改都可以得到解决。Ends the initialization phase, and invalidates the previous tree such that all changes made to keys during the initialization phase can be accounted for.

(继承自 ResourceDictionary)
Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
FindName(String)

此字典实现不支持该方法。Not supported by this Dictionary implementation.

(继承自 ResourceDictionary)
GetEnumerator()

返回一个可用于循环访问 IDictionaryEnumeratorResourceDictionaryReturns an IDictionaryEnumerator that can be used to iterate through the ResourceDictionary.

(继承自 ResourceDictionary)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
InitializeComponent()

从特定资源位置处的 XAML 文件初始化当前词典实例。Initializes the current dictionary instance from a XAML file at a specific resource location.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
OnGettingValue(Object, Object, Boolean)

ResourceDictionary 接收资源请求时发生。Occurs when the ResourceDictionary receives a request for a resource.

(继承自 ResourceDictionary)
RegisterName(String, Object)

此字典实现不支持该方法。Not supported by this Dictionary implementation.

(继承自 ResourceDictionary)
Remove(Object)

从基字典中移除带有指定键的项。Removes the entry with the specified key from the base dictionary.

(继承自 ResourceDictionary)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)
UnregisterName(String)

此字典实现不支持该方法。Not supported by this Dictionary implementation.

(继承自 ResourceDictionary)

显式界面实现

ICollection.CopyTo(Array, Int32)

有关此成员的说明,请参见 CopyTo(Array, Int32)For a description of this member, see CopyTo(Array, Int32).

(继承自 ResourceDictionary)
ICollection.IsSynchronized

有关此成员的说明,请参见 IsSynchronizedFor a description of this member, see IsSynchronized.

(继承自 ResourceDictionary)
ICollection.SyncRoot

有关此成员的说明,请参见 SyncRootFor a description of this member, see SyncRoot.

(继承自 ResourceDictionary)
IComponentConnector.Connect(Int32, Object)

将事件和名称附加到已编译的内容。Attaches events and names to compiled content.

IEnumerable.GetEnumerator()

有关此成员的说明,请参见 GetEnumerator()For a description of this member, see GetEnumerator().

(继承自 ResourceDictionary)
IUriContext.BaseUri

有关此成员的说明,请参见 BaseUriFor a description of this member, see BaseUri.

(继承自 ResourceDictionary)

扩展方法

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于