Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
97 views

I want to create a custom control that will act as a draggable control (drag and drop), and use it in a window. my problem is that I cant get the binding to work. Data context is being set in window....
bamec's user avatar
  • 53
0 votes
0 answers
50 views

I'm using a DataGrid in my .NET 8 WPF app. The datagrid is set to a data context from a third-party library. I'd like to add a button column (as a DatagridTemplateColumn) to call a function in my own ...
donsay's user avatar
  • 11
0 votes
1 answer
37 views

I have two WPF components, one is containing a list of the other one. I set the DataContext in the parent WPF component, so I can define a property. Unfortunately, the PropertyChanged of my model is ...
Xavjer's user avatar
  • 9,414
-1 votes
1 answer
53 views

On my Window, I init DataContext this way: public partial class MainWindow : MetroWindow { private ViewModelData data; ResourceManager? resourceManager; public MainWindow() { ...
markzzz's user avatar
  • 48.3k
0 votes
1 answer
48 views

I have the following code: <ListView ItemsSource="{Binding Creature.FriendlyEnvironment}" x:DataType="vm:PlantDetailsViewModel"> <ListView.ItemTemplate> ...
Mortens's user avatar
  • 67
0 votes
1 answer
877 views

I have two label fields TabName and DisplayDate and a Collection Tasks bound to a ViewModel, and the value of the Label fields are initially set but changes don't appear. Hovering over the label ...
Eric V.'s user avatar
  • 13
0 votes
1 answer
623 views

I'm refactoring some code at the moment, and am attempting to make a custom 'TabControl'. Ideally I would just style the built-in one but there's some quirks to our codebase and I have to keep the ...
Andrew Williamson's user avatar
-1 votes
1 answer
73 views

I am currently working with .NET 6 WPF and got some strange behaviour using custom classes and assigning as DataContext. My code looks like this: public partial class EditImage : Window { public ...
Teim0's user avatar
  • 9
2 votes
2 answers
3k views

I am learning .NET MAUI at the moment, and I have run into an issue with data binding. I have read the section on data binding on the Microsoft docs, but I am still none the wiser of why it isn't ...
David Turley's user avatar
0 votes
0 answers
257 views

I've created a XAML structure with a grid inside a ListView which should hold multiple text boxes. I am attempting to pass SQL information from a database query into the ObservableCollection which ...
progroque's user avatar
0 votes
1 answer
72 views

I have a custom TabControl with an ItemsSource binded to it. Inside the ItemTemplate is a Button which Command I want to bind to a RelayCommand from my DataContext (ViewModel). The Problem is, that ...
SideSky's user avatar
  • 343
0 votes
1 answer
90 views

I am still a beginner and I'm trying to make a application where a user gets to choose a file. For that I use OpenFileDialog, which has worked fine for me in the past. The file path and content should ...
Biswind's user avatar
  • 25
0 votes
0 answers
30 views

I can not seem to figure out the problem making my second screen in WPF. If I only make 1 screen my datacontext works fine. If I make a second it doesn't seem to work anymore (looks like it doesn't ...
Irish's user avatar
  • 9
0 votes
1 answer
69 views

I have multiple Windows in my Project, to have only one Instance of an ViewModel Ive got this Class: public sealed class ApplicationService { private ApplicationService() { } public ...
Carl101's user avatar
  • 11
1 vote
2 answers
677 views

I currently have a view that looks like the following: <Window> <DockPanel> <Menu> ... </Menu> <StackPanel>...
Harry Adams's user avatar
2 votes
1 answer
497 views

I'm using a datacontext in my powershell app (a first for me) and from what I can tell all datacontext properties and values are set with JSON and all values are strings. Example: $DataObject = ...
Matthew McDonald's user avatar
-2 votes
1 answer
3k views

I'm just getting started with WPF in C#, currently using Visual Studio 2019, WPF application in .NET Framework 4.7.2. I've been struggling with data binding for a few days now, going through numerous ...
NateLFO's user avatar
  • 39
0 votes
1 answer
126 views

I have: regular visitors merchants and of course our admins and internal team Do I store all user accounts in the [regular visitors] database, then separate "sensitive" data into a [...
pizzaboy's user avatar
1 vote
1 answer
272 views

everyone. I want to create a ListView that lists items from the Orders class. The list should be grouped by Process. When I create it as a simple ListView it works fine. I created it following this ...
Rupert's user avatar
  • 13
0 votes
0 answers
51 views

I am using Linq in a .net C# application. I am trying to retrieve results from a Table in my DataContext based on a join with a local list of objects. I am running into the following error message: ...
JohnB's user avatar
  • 4,469
1 vote
2 answers
555 views

I've been searching and playing around with GetType() for a while, but I keep getting the name of the column (which I already have) and not the value. I'm trying to build a csv file from the results ...
adrianstovall's user avatar
0 votes
1 answer
61 views

When the selection is changed, the values of the form should be updated but is only updated the name of the task. <TextBlock HorizontalAlignment="Center" FontSize="20" ...
KelvinJPS's user avatar
0 votes
1 answer
88 views

I have a small App where I have a model tree and I want that depending the Item double clicked a different view should appear in the ContentControl. enter image description here I have created a ...
Xelato's user avatar
  • 29
0 votes
0 answers
447 views

I am getting a rather annoying error in the XAML editor that I can't get rid of. Maybe someone has also had the error and solved it. The line local:DeviceViewModel/ is underlined with a blue wavy line....
Brainfuck's user avatar
0 votes
1 answer
392 views

I have this Ellipse with a RadialGradientBrush, where the colors are bind to the colors Light and Dark: <Grid x:Name="gridEllipse"> <Ellipse x:Name="ellipseMPCenter"> ...
SideSky's user avatar
  • 343

1
2 3 4 5
30