Динамическое изменение TextBlock в стилеC#

Место общения программистов C#
Гость
Динамическое изменение TextBlock в стиле

Сообщение Гость »


Я новичок в WPF, я создал собственный ToggleButton со своим стилем.
[img]https://i.stack. imgur.com/bIyzT.png[/img]
ToggleButton (в xaml): style (in an other xaml -> Style.xaml) : How can I change the Text content of a TextBlock dynamically (from a file with the content in different language) ?
As I understood it's impossible to change the style content at run time. Is it true ? What are my solutions if I want to change the text ?


Источник: https://stackoverflow.com/questions/781 ... k-in-style

Вернуться в «C#»