ArrayExtension Klasa
Definicja
Implementuje x:Array
obsługę usług .NET XAML.Implements x:Array
support for .NET XAML Services.
public ref class ArrayExtension : System::Windows::Markup::MarkupExtension
public ref class ArrayExtension : System::Windows::Markup::MarkupExtension, System::Windows::Markup::IAddChild
[System.Windows.Markup.ContentProperty("Items")]
[System.Windows.Markup.MarkupExtensionReturnType(typeof(System.Array))]
public class ArrayExtension : System.Windows.Markup.MarkupExtension
[System.Windows.Markup.ContentProperty("Items")]
[System.Windows.Markup.MarkupExtensionReturnType(typeof(System.Array))]
public class ArrayExtension : System.Windows.Markup.MarkupExtension, System.Windows.Markup.IAddChild
[<System.Windows.Markup.ContentProperty("Items")>]
[<System.Windows.Markup.MarkupExtensionReturnType(typeof(System.Array))>]
type ArrayExtension = class
inherit MarkupExtension
[<System.Windows.Markup.ContentProperty("Items")>]
[<System.Windows.Markup.MarkupExtensionReturnType(typeof(System.Array))>]
type ArrayExtension = class
inherit MarkupExtension
interface IAddChild
Public Class ArrayExtension
Inherits MarkupExtension
Public Class ArrayExtension
Inherits MarkupExtension
Implements IAddChild
- Dziedziczenie
- Atrybuty
- Implementuje
Uwagi
ArrayExtension jest klasą, która implementuje x:Array
zachowanie rozszerzenia znacznika i x:ArrayExtension
element informacji z [MS-XAML].ArrayExtension is the class that implements the x:Array
markup extension behavior, and the x:ArrayExtension
information item from [MS-XAML]. x:Array
obsługuje funkcję języka XAML, która umożliwia dodawanie dowolnego elementu podrzędnego w tablicy przy użyciu określonej składni rozszerzenia znacznika.x:Array
supports a XAML language feature that allows adding arbitrary child elements within an array, through a particular markup extension enabled syntax. Składnia rozszerzenia znaczników wymaga jawnego Type atrybutu użycia rozszerzenia znaczników i składni zawartości służącej do określenia Items .The markup extension syntax requires an explicit Type attribute on the markup extension usage, and a content syntax for specifying the Items. Aby uzyskać więcej informacji i szczegóły dotyczące składni, zobacz X:Array Markup Extension.For more information and details on the syntax, see x:Array Markup Extension.
Ta klasa jest implementacją rozszerzenia znaczników.This class is a markup extension implementation. Klasy rozszerzeń znaczników istnieją głównie do zapewnienia obsługi infrastruktury dla pewnego aspektu implementacji procesora XAML, a elementy członkowskie udostępniane przez klasę rozszerzenia znaczników nie są zwykle wywoływane z kodu użytkownika.Markup extension classes exist mainly to provide infrastructure support for some aspect of a XAML processor implementation, and the members exposed by a markup extension class are not typically called from user code. To rozszerzenie obsługuje użycie rozszerzenia X:Array Markup from xaml dla .NET Framework implementacji usług XAML w języku XAML i jego czytników XAML i autorów XAML.This extension supports the x:Array Markup Extension usage from XAML for .NET Framework XAML Services implementation of XAML and its XAML readers and XAML writers.
W poprzednich wersjach .NET Framework Ta klasa istniała w PresentationFramework.dll zestaw specyficzny dla platformy WPF.In previous versions of the .NET Framework, this class existed in the WPF-specific assembly PresentationFramework.dll. Począwszy od .NET Framework 4, ArrayExtension znajduje się w zestawie System. XAML.Starting with the .NET Framework 4, ArrayExtension is in the System.Xaml assembly. Dzięki temu można x:Array
korzystać z platform i technologii, takich jak Windows Workflow Foundation, które są oparte na .NET Framework usługach XAML.This makes the x:Array
usage available to frameworks or technologies such as Windows Workflow Foundation that are built on .NET Framework XAML Services. Aby uzyskać więcej informacji, zobacz typy migrowane z WPF do System. XAML.For more information, see Types Migrated from WPF to System.Xaml.
Zestaw system. XAML używa XmlnsDefinitionAttribute do mapowania typów z System.Windows.Markup przestrzeni nazw CLR w zestawie do przestrzeni nazw XAML dla języka XAML ( http://schemas.microsoft.com/winfx/2006/xaml
).The System.Xaml assembly uses XmlnsDefinitionAttribute to map types from the System.Windows.Markup CLR namespace in the assembly to the XAML namespace for the XAML language (http://schemas.microsoft.com/winfx/2006/xaml
). W typowym znaczniku XAML deklaruje prefiks dla http://schemas.microsoft.com/winfx/2006/xaml
w mapowaniu elementu głównego i użyj prefiksu x
.In typical XAML markup, you declare a prefix for http://schemas.microsoft.com/winfx/2006/xaml
in a root element mapping and use the prefix x
.
Konstruktory
ArrayExtension() |
Inicjuje nowe wystąpienie klasy ArrayExtension.Initializes a new instance of the ArrayExtension class. Spowoduje to utworzenie pustej tablicy.This creates an empty array. |
ArrayExtension(Array) |
Inicjuje nowe wystąpienie ArrayExtension klasy w oparciu o podaną tablicę nieprzetworzoną.Initializes a new instance of the ArrayExtension class based on the provided raw array. |
ArrayExtension(Type) |
Inicjuje nowe wystąpienie ArrayExtension klasy i inicjuje typ tablicy.Initializes a new instance of the ArrayExtension class and initializes the type of the array. |
Właściwości
Items |
Pobiera zawartość tablicy.Gets the contents of the array. Settable in XAML za poorednictwem składni kolekcji XAML.Settable in XAML through XAML collection syntax. |
Type |
Pobiera lub ustawia typ tablicy, która ma zostać utworzona podczas wywoływania ProvideValue(IServiceProvider) .Gets or sets the type of array to be created when calling ProvideValue(IServiceProvider). |
Metody
AddChild(Object) |
Dołącza podany obiekt do końca tablicy.Appends the supplied object to the end of the array. |
AddText(String) |
Dodaje węzeł tekstowy jako nowy element tablicy.Adds a text node as a new array item. |
Equals(Object) |
Określa, czy dany obiekt jest taki sam, jak bieżący obiekt.Determines whether the specified object is equal to the current object. (Odziedziczone po Object) |
GetHashCode() |
Służy jako domyślna funkcja skrótu.Serves as the default hash function. (Odziedziczone po Object) |
GetType() |
Pobiera Type bieżące wystąpienie.Gets the Type of the current instance. (Odziedziczone po Object) |
MemberwiseClone() |
Tworzy skróconą kopię bieżącego elementu Object .Creates a shallow copy of the current Object. (Odziedziczone po Object) |
ProvideValue(IServiceProvider) |
Zwraca tablicę o rozmiarze odpowiadającym liczbie obiektów dostarczonych w Items wartości.Returns an array that is sized to the number of objects supplied in the Items values. |
ToString() |
Zwraca ciąg reprezentujący bieżący obiekt.Returns a string that represents the current object. (Odziedziczone po Object) |