Relative Content

Tag Archive for c#wpfdata-binding

Data Binding an image to the UI [duplicate]

This question already has answers here: Image UriSource and Data Binding (6 answers) Closed 8 mins ago. I am making Tetris using WPF C# and currently I am able to hold a piece and store the held piece in a stack. The problem I am having right now is with being able to give a […]

Data Binding an image to the UI [duplicate]

This question already has answers here: Image UriSource and Data Binding (6 answers) Closed 8 mins ago. I am making Tetris using WPF C# and currently I am able to hold a piece and store the held piece in a stack. The problem I am having right now is with being able to give a […]

WPF: Unable to locate resources in my namespaces in XAML code

y’all. This is a tricky problem that I’ve encountered. I’ve picked up an existing repository with some especially sloppy WPF that doesn’t adhere to MVVM best practices at all. I plan to refactor, but I have near term release targets I want to hit. So, until then, I’m going to follow best practices.

WPF Combobox Binding not updating

I have a WPF app with two comboboxes that represent production/mfg engineers assigned to a job, where CurrentEngNotice is the relevant job:

Setting the DataContext does not affect the UI

Hey I have a question about the DataContext. I built myself a NavigationService because I wanted to try it out. I am caching the ViewModel from a page and reuse it when navigating back (I know there is a built in Navigation History but I wanted to try this myself).