❔ [WPF] How to use method at other file without static, making object ?
I wanna use StickyNotesMainView.cs file's MainAddTextBox_Click method to StickyNotesView.cs file without static and making constructor.
If i use static, then I can't allocate variance in MainAddTextBox_Click method.
and If i use constructor like picture, then I can't do what I want that add textblock in MainView App.. https://paste.mod.gg/jehvlfifxyyi/3 <- this is my code
BlazeBin - jehvlfifxyyi
A tool for sharing your source code with the world!
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1115720926793842698/image.png)
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1115720927104208927/image.png)
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1115720927532036137/image.png)
2 Replies