ResourceDictionary 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
可将标识符字符串映射到任意资源对象的 IDictionary。
public class ResourceDictionary : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,object>>, System.Collections.Generic.IDictionary<string,object>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>>, Xamarin.Forms.Internals.IResourceDictionary
type ResourceDictionary = class
interface IResourceDictionary
interface seq<KeyValuePair<string, obj>>
interface IEnumerable
interface IDictionary<string, obj>
interface ICollection<KeyValuePair<string, obj>>
- 继承
-
System.ObjectResourceDictionary
- 实现
-
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>> System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>> System.Collections.Generic.IDictionary<System.String,System.Object> System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,System.Object>> System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>> System.Collections.Generic.IEnumerable<T> System.Collections.IEnumerable IResourceDictionary
构造函数
| ResourceDictionary() |
创建一个新的空 ResourceDictionary 对象。 |
属性
| Count |
ResourceDictionary 中的条目数。 |
| Item[String] |
检索与键 |
| Keys |
标识符 |
| MergedDictionaries |
获取合并到此字典中的字典集合。 |
| MergedWith |
已过时.
获取或设置合并资源字典的对象类型。 |
| Source |
获取或设置合并资源字典的 URI。 |
| Values |
检索 ResourceDictionary 的值。 |
方法
| Add(ResourceDictionary) |
将 |
| Add(String, Object) |
将 |
| Add(Style) |
向 ResourceDictionary 添加隐式样式。 |
| Add(StyleSheet) |
将 |
| Clear() | |
| ContainsKey(String) |
ResourceDictionary 是否包含由 |
| GetEnumerator() |
返回 ResourceDictionary 的 System.Collections.Generic.KeyValuePair`2 的 System.Collections.Generic.IEnumerator`1。 |
| Remove(String) |
从 ResourceDictionary 中删除 |
| SetAndLoadSource(Uri, String, Assembly, IXmlLineInfo) |
供 Xamarin.Forms 平台内部使用。 |
| TryGetValue(String, Object) |
可将标识符字符串映射到任意资源对象的 IDictionary。 |
显式接口实现
| ICollection<KeyValuePair<String,Object>>.Add(KeyValuePair<String,Object>) |
向集合中添加一项。 |
| ICollection<KeyValuePair<String,Object>>.Contains(KeyValuePair<String,Object>) |
返回一个值,该值指示字典是否包含 |
| ICollection<KeyValuePair<String,Object>>.CopyTo(KeyValuePair<String,Object>[], Int32) |
供 Xamarin.Forms 平台内部使用。 |
| ICollection<KeyValuePair<String,Object>>.IsReadOnly |
获取指示资源字典是否为只读的值。 |
| ICollection<KeyValuePair<String,Object>>.Remove(KeyValuePair<String,Object>) |
供 Xamarin.Forms 平台内部使用。 |
| IEnumerable.GetEnumerator() |
供 Xamarin.Forms 平台内部使用。 |
| IResourceDictionary.ValuesChanged |
可将标识符字符串映射到任意资源对象的 IDictionary。 |
扩展方法
| ForEach<T>(IEnumerable<T>, Action<T>) |
供 Xamarin.Forms 平台内部使用。 |
| GroupToDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>) |
供 Xamarin.Forms 平台内部使用。 |
| IndexOf<T>(IEnumerable<T>, T) |
供 Xamarin.Forms 平台内部使用。 |
| IndexOf<T>(IEnumerable<T>, Func<T,Boolean>) |
供 Xamarin.Forms 平台内部使用。 |
| Prepend<T>(IEnumerable<T>, T) |
供 Xamarin.Forms 平台内部使用。 |