Relative Content

Tag Archive for c#wpf

c# wpf problems with newline

I am creating a test version of the page where text will be entered and adjusted, or rather compared with the original and, depending on this, the color of the symbol will be set (if the symbol is entered as in the text – white, otherwise red). The only problem I have is that in the textblock, for example, there is a word that is on a new line, in the textbox when entering, or rather during the process, the entered word will first be at the top and only after being completely written at the bottom (or even leave half of the text at the top, I am attaching a screenshot) . I honestly don’t know how to solve this, so I hope for your help! I will also be glad if you point out any mistakes made in working with the MVVM code (as I said, the code is test and the same binding in the view in the original will be removed and added to OnStarted)

C# WPF ComboBox Value in ini

I have a problem with writing the current Value of combobox into ini.
It is always the last value because I write the ini when value is changed.

Как открыть страницу в странице в WPF?

Добрый день пользователи данной площадки, возник трудный и нерешаемый у меня вопрос с которым мне не помог и Чат GPT, Суть проблемы вот в чём при выходе из полноэкранного режима на странице Филиалы и Офисы хочется чтобы открывалось окно MainWindow на которой открыта страница Мои документы на которой открыта страница Филиалы и офисы, (получилось только вызвать MainWindow и открыть Филиалы и офисы, но нет промежуточного этапа Мои документы), ранее делал открытие Общей информации но там прощее путь (Полноэкранное окно=>MainWindow=>Мои документы) вот прилепляю весь необходимый код:
Код из Полноэкранного окна

How to use the Command Line Args values received inside WPF App?

private static async Task<bool> CallTool(MyModel arguments, CancellationToken cancellationToken) { ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.Arguments = //here arguments are specified; //Start the application var exitCode = await ExecuteProcessAsync(startInfo, cancellationToken); } //Now inside my called application I parse the Args received into a Dictionary inside App.xaml.cs. //Problem Do not know how set received values into my […]