Wir definieren einen lokalen Stil für diesen spezifischen TextBlock, aber wie in den vorherigen Artikeln gezeigt, hätte der Stil auch global definiert werden können, wenn wir wollten, dass er auf alle TextBlock-Controls in der Anwendung angewendet wird.
We define a local style for this specific TextBlock, but as shown in the previous articles, the style could have been globally defined as well, if we wanted it to apply to all TextBlock controls in the application.
Hier haben wir ein Beispiel bei dem wir Text in mehreren Farben anzeigen, indem wir mehrere TextBlock-Controls innerhalb eines Knopfs verwenden
Here's an example where we have text in different colors on the same button by using several TextBlock controls inside of the Button
Autres résultats
So können Sie einfach ein TextBlock-Control hinzufügen und dann die Formatierung ändern, z.B. die Farbe des Textes.
So you can just add a TextBlock control and then change the formatting, e.g. the color of the text.
Jede der Registerkarten hat nun ein TabControl.header-Element, das ein StackPanel enthält, das wiederum ein Image- und ein TextBlock-Control enthält.
Each of the tabs now has a TabControl.Header element, which contains a StackPanel, which in turn contains an Image and a TextBlock control.
Der Inhalt des Expanders kann nur ein Control sein, wie in unserem ersten Beispiel, in dem wir ein TextBlock-Control verwenden, aber nichts hindert Sie daran, z.B. ein Panel zu nehmen, das dann so viele Child Controls aufnehmen kann, wie Sie es möchten.
The Content of the Expander can only be one control, like in our first example where we use a TextBlock control, but nothing prevents you from making this e.g. a Panel, which can then hold as many child controls as you want it to.
Im Hintergrund wird der einfache Text im Content des Buttons in eine TextBlock Control umgewandelt. Das heißt auch, dass man dieselben Aspekte des Formatierens wie bei TextBlock Contols steuern kann.
Internally, simple text inside the Content of the Button is turned into a TextBlock control, which also means that you can control the same aspects of the text formatting.
Beachten Sie, wie ich einfach ein Panel als Inhalt der Header-Eigenschaft hinzufüge, innerhalb dessen kann ich alles tun, was ich will, z.B. ein Image hinzufügen und ein TextBlock-Control mit eigener Formatierung: Zusammenfassung
Notice how I simply add a Panel as the content of the Header property and inside of that, I can do whatever I want, like adding an Image and a TextBlock control with custom formatting: Summary
Das Control Textblock ist dazu gedacht, einzelne Texte darzustellen oder irgendetwas zu beschriften.
The Control Textblock is intended to display individual texts or to label something.
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.
Aucun résultat pour cette recherche.
Synonymes et analogies de "TextBlock-Controls" en allemand