UIElement.StylusPlugIns Własność
Definicja
Ważny
Niektóre informacje dotyczą produktów przedpremierowych, które mogą zostać znacznie zmodyfikowane przed premierą. Microsoft nie udziela żadnych gwarancji, ani wyraźnych, ani domniemanych, dotyczących informacji podanych tutaj.
Pobiera kolekcję wszystkich obiektów wtyczki rysika (dostosowywanie) skojarzonych z tym elementem.
protected:
property System::Windows::Input::StylusPlugIns::StylusPlugInCollection ^ StylusPlugIns { System::Windows::Input::StylusPlugIns::StylusPlugInCollection ^ get(); };
protected System.Windows.Input.StylusPlugIns.StylusPlugInCollection StylusPlugIns { get; }
member this.StylusPlugIns : System.Windows.Input.StylusPlugIns.StylusPlugInCollection
Protected ReadOnly Property StylusPlugIns As StylusPlugInCollection
Wartość nieruchomości
Kolekcja wtyczek rysików, jako wyspecjalizowanej kolekcji.
Przykłady
Poniższy przykład tworzy DynamicRenderer wystąpienie i dodaje je do StylusPlugIns kolekcji dla niestandardowej kontrolki obsługi pisma oddyskowego.
// Create a DrawingAttributes to use for the
// DynamicRenderer.
DrawingAttributes inkDA = new DrawingAttributes();
inkDA.Width = 5;
inkDA.Height = 5;
inkDA.Color = Colors.Purple;
// Add a dynamic renderer plugin that
// draws ink as it "flows" from the stylus
DynamicRenderer dynamicRenderer1 = new DynamicRenderer();
dynamicRenderer1.DrawingAttributes = inkDA;
this.StylusPlugIns.Add(dynamicRenderer1);
inkPresenter1.AttachVisuals(dynamicRenderer1.RootVisual,
dynamicRenderer1.DrawingAttributes);
' Create a DrawingAttributes to use for the
' DynamicRenderer.
Dim inkDA As New DrawingAttributes()
inkDA.Width = 5
inkDA.Height = 5
inkDA.Color = Colors.Purple
' Add a dynamic renderer plugin that
' draws ink as it "flows" from the stylus
Dim dynamicRenderer1 As New DynamicRenderer()
dynamicRenderer1.DrawingAttributes = inkDA
Me.StylusPlugIns.Add(dynamicRenderer1)
inkPresenter1.AttachVisuals(dynamicRenderer1.RootVisual, dynamicRenderer1.DrawingAttributes)
Uwagi
Przykładem kontrolki, która wypełnia tę kolekcję, jest InkCanvas. InkCanvas DynamicRenderer Dodaje element jako element kolekcji, który umożliwia DynamicRenderer interakcję z danymi wejściowymi rysika i generowanie unikatowego renderowania w odpowiedzi na zdarzenia sterowane rysikami.
Aby uzyskać informacje na temat tworzenia niestandardowych wtyczek, które mogą odbierać i interpretować dane wejściowe rysika, zobacz Przechwytywanie danych wejściowych z stylus.