Télécharger pour Windows Premium
Publicité
TextBlock controls

Traduction de "TextBlock controls" en allemand

Nous n’avons pas trouvé cette entrée. Affichage de résultats approximatifs. Vérifiez l’orthographe ou proposez d’ajouter ce terme au dictionnaire.
TextBlock-Controls
Here's an example where we have text in different colors on the same button by using several TextBlock controls inside of the Button
Hier haben wir ein Beispiel bei dem wir Text in mehreren Farben anzeigen, indem wir mehrere TextBlock-Controls innerhalb eines Knopfs verwenden
In this example, I just store a simple string, which I then use from two different TextBlock controls.
In diesem Beispiel speichere ich eine einfache Zeichenfolge, die ich dann für zwei verschiedenen Steuerelemente (hier TextBlock) verwende.
So, we have three TextBlock controls, each with a different color (using the Foreground property) for an easier overview.
<Jetzt haben wir drei TextBlock Steuerelemente, welche für eine bessere Übersicht unterschiedlich gefärbt sind.
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.
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.

Autres résultats

This is not the case for the TextBlock control, where you will have to specify it manually.
Dieses ist nicht der Fall beim TextBlock Steuerelement, bei dem dieser manuell angegeben werden muss.
So you can just add a TextBlock control and then change the formatting, e.g. the color of the text.
So können Sie einfach ein TextBlock-Control hinzufügen und dann die Formatierung ändern, z.B. die Farbe des Textes.
The last bullet point is actually one of the main reasons for using a Label over the TextBlock control.
Der letzte Punkt ist tatsächlich einer der Hauptgründe, ein Label einem TextBlock vorzuziehen.
Whenever you just want to render simple text, you should use the TextBlock control, since it's lighter and performs better than the Label in most cases.
Wann immer man einen einfachen Text rendern will, sollte man das TextBlock Steuerelement verwenden, da es ressourcenschonender ist und damit in den meisten Fällen besser als das Label performt.
We'll do it by adding a TextBlock control to the Grid panel, with our aforementioned message as the content
Wir erreichen das, indem wir ein TextBlock Kontrollelement zum vorhandenen Grid panel hinzufügen, das die zuvor erwähnte Nachricht als Inhalt 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.
Jede der Registerkarten hat nun ein TabControl.header-Element, das ein StackPanel enthält, das wiederum ein Image- und ein TextBlock-Control enthält.
Since we now take control of the text using a TextBlock control, this also allows us to format the text in any way we want to.
Da wir den Text jetzt mit einem TextBlock-Kontrollobjekt steuern, können wir ihn beliebig formatieren.
If you just specify a piece of text, like I did in the example above, WPF will put it inside a TextBlock control and display it, but this is just a shortcut to make things easier for you.
Wenn Du nur ein Stück Text angibst, wie ich es im obigen Beispiel getan habe, wird WPF es in ein TextBlock-Steuerelement einfügen und anzeigen, aber das ist nur eine Abkürzung, um die Dinge für Dich einfacher zu machen.
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.
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.
Aucun résultat pour cette recherche.

Synonymes et analogies de "TextBlock controls" en anglais

Le mot et l’expression du jour
L’image du jour
jug: container with a handle and spout for liquids
Découvrir le mot
Publicité

Résultats: 27. Exacts: 4. Temps écoulé: 53 ms.