WPF C# – Share Function across pages
So i have been banging my head around this problem for about 26 hrs now, and tried a lot of different situations and cant seem to find a solution.
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)
When I open a WPF window in my application, other system windows also come to front along with my window
I have a scenario where if I open a WPF child window from my application, if there were other system windows were open like MSpaint, or file explorer or any other application, then along with my child window, all those windows also come to front.
Drawing connecting lines on multi-level tree diagram
I’m trying to build a multi-level tree diagram with connectors between, where you can have an indeterminate number of nodes branching off.
Programmatically open WPF Popup control without losing Main Window focus
I have an UserControl
that contains a ToggleButton
and a Popup
attached to it. Something like this:
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.
Change Button Status on ComboBox Selection Change
I’m working on a code that works as below:
Как открыть страницу в странице в 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 […]
WPF displays a white blank window when using Show()
I’m working on a trivia kahoot style game, where the client is based on the WPF framework (hello to all fellow magshimim students with the same issue)