ResourceDictionary Klasa

Definicja

IDictionary, który mapuje ciągi identyfikatorów na dowolne obiekty zasobów.

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>>
Dziedziczenie
System.Object
ResourceDictionary
Implementuje
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

Konstruktory

ResourceDictionary()

Tworzy nowy pusty ResourceDictionary obiekt.

Właściwości

Count

Liczba wpisów w pliku ResourceDictionary.

Item[String]

System.Object Pobiera wartość skojarzona z kluczem index.

Keys

Kolekcja identyfikatorów string, które są kluczami w obiekcie ResourceDictionary.

MergedDictionaries

Pobiera kolekcję słowników scalonych w tym słowniku.

MergedWith
Przestarzałe.

Pobiera lub ustawia typ obiektu, z którym jest scalony słownik zasobów.

Source

Pobiera lub ustawia identyfikator URI scalonego słownika zasobów.

Values

Pobiera wartości elementu ResourceDictionary.

Metody

Add(ResourceDictionary)

Dodaj mergedResourceDictionary do scalonych słowników w this słowniku zasobów.

Add(String, Object)

Dodaje key elementy i value do ResourceDictionary elementu jako parę klucz-wartość.

Add(Style)

Dodaje niejawny styl do elementu ResourceDictionary.

Add(StyleSheet)

this Dodaje styleSheet listę arkuszy stylów w słowniku zasobów.

Clear()

Opróżnia element ResourceDictionary.

ContainsKey(String)

Określa, ResourceDictionary czy element zawiera parę klucz-wartość zidentyfikowaną przez element key.

GetEnumerator()

Zwraca wartość typu System.Collections.Generic.IEnumerator`1ResourceDictionary"s System.Collections.Generic.KeyValuePair`2".

Remove(String)

Usuwa klucz i wartość zidentyfikowaną przez key element z elementu ResourceDictionary.

SetAndLoadSource(Uri, String, Assembly, IXmlLineInfo)

Do użytku wewnętrznego przez platformę Xamarin. Forms platformy.

TryGetValue(String, Object)

IDictionary, który mapuje ciągi identyfikatorów na dowolne obiekty zasobów.

Jawne implementacje interfejsu

ICollection<KeyValuePair<String,Object>>.Add(KeyValuePair<String,Object>)

Dodaje element do kolekcji.

ICollection<KeyValuePair<String,Object>>.Contains(KeyValuePair<String,Object>)

Zwraca wartość wskazującą, czy słownik zawiera wartość w itempliku , indeksowany przez klucz w itempliku .

ICollection<KeyValuePair<String,Object>>.CopyTo(KeyValuePair<String,Object>[], Int32)

Do użytku wewnętrznego przez platformę Xamarin. Forms platformy.

ICollection<KeyValuePair<String,Object>>.IsReadOnly

Pobiera wartość wskazującą, czy słownik zasobów jest tylko do odczytu.

ICollection<KeyValuePair<String,Object>>.Remove(KeyValuePair<String,Object>)

Do użytku wewnętrznego przez platformę Xamarin. Forms platformy.

IEnumerable.GetEnumerator()

Do użytku wewnętrznego przez platformę Xamarin. Forms platformy.

IResourceDictionary.ValuesChanged

IDictionary, który mapuje ciągi identyfikatorów na dowolne obiekty zasobów.

Metody rozszerzania

ForEach<T>(IEnumerable<T>, Action<T>)

Do użytku wewnętrznego przez platformę Xamarin. Forms platformy.

GroupToDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>)

Do użytku wewnętrznego przez platformę Xamarin. Forms platformy.

IndexOf<T>(IEnumerable<T>, T)

Do użytku wewnętrznego przez platformę Xamarin. Forms platformy.

IndexOf<T>(IEnumerable<T>, Func<T,Boolean>)

Do użytku wewnętrznego przez platformę Xamarin. Forms platformy.

Prepend<T>(IEnumerable<T>, T)

Do użytku wewnętrznego przez platformę Xamarin. Forms platformy.

Dotyczy