23,948 questions
0
votes
1
answer
93
views
How can I resolve issue about BindingExpression in WPF c#?
I am working on a configuration editor and I was having issues binding ObservableCollection to combobox items in XAML.
My setup:
I am using Prism
I am also using MaterialDesignThemes in the project
...
1
vote
1
answer
63
views
Why in a WinUI3 app, does DataContext binding work when debugging but causes exception when deployed and run [closed]
I have a WinUI3 app that I am trying to use in an MVVM pattern.
I have a ViewModel that implements INotifyPropertyChanged. In that ViewModel I have a simple string property (TextBoxContent) that calls ...
0
votes
1
answer
78
views
VB.NET DataGridView not showing label row with EmpId and EmpName before attendance rows
What are you trying to do?
I'm building an attendance summary grid in VB.NET (Windows Forms). For each employee, I want to insert a label row before their daily attendance rows. This label row should ...
0
votes
1
answer
101
views
How do I create dynamic rows in a WPF Grid [closed]
I have a WPF app that loads a grid table through a db query. This works as expected. I want to add a tile layout, something like this. This image represents one row.
The two different views are a ...
2
votes
1
answer
71
views
How to prevent popup reopen
I have the below code:
<ToggleButton x:Name="toggleBtn" Content="Open Popup" />
<Popup x:Name="pp"
Placement="Bottom"
StaysOpen="...
1
vote
1
answer
90
views
How to add list of MenuItem controls using MVVM binding?
I'm trying to render an MRU files menu item list using MVVM and data binding. However, I'm not able to …
assign an access key
assign a mnemonic
assign a command
This is the code I'm using:
<...
0
votes
0
answers
60
views
User control dependency property as static resource
In my AvaloniaUI app I have a user control with a Boolean dependency property:
public partial class MyUC: UserControl {
public readonly static StyledProperty<bool> IsSpecialProperty = ...
2
votes
3
answers
97
views
Trouble binding data to an IDrawable
I'm trying to put together an app, but I've run into problems trying to get data into an IDrawable graph display. The app is just supposed to show a plot of random data from a float[] which is then ...
0
votes
0
answers
16
views
Setting the WPF ComboBoxItem Background Color when an ObjectDataProvider binding is used to populate ComboBox
I have a ComboBox with an ObjectDataProvider binding to an enum of colors. I have the enum descriptions displaying. I would like to have the ComboBoxItem background color match the designated color. I'...
0
votes
1
answer
122
views
User Control with binding showing in Designer but not in runtime
I have a main Window that opens a second Window. In this second Window I have many custom UserControls generated in runtime that work just fine. But a group of custom UserControls are declared in the ...
1
vote
1
answer
127
views
How to bind List item inside DataTemplate
I have a ListView that I fill with a list of items of type FooBar, which contains only one public member Foo of string. I have my own UserControl called FooBarControl, which has a member FooBar from ...
0
votes
0
answers
42
views
Angular - how to display the selected's label of dropdown on the md-table when data is bind
The md-table is bind to data assets where application_id is an integer.
The dropdown is populated with possible values with:
Value = application_id, Label = application_name
The table is editable ...
0
votes
0
answers
28
views
How to handle a generic type param being changed when pattern matching is required for the child fragments that do the editing
I have the following Blazor component:
@using System.Linq.Expressions
@typeparam T
@switch(Value)
{
case bool boolValue:
<InputCheckbox @bind-Value=boolValue @bind-Value:after=...
0
votes
1
answer
151
views
Property not updating view when getting changed from another VM
I am using Avalonia with CommunityToolkit MVVM. When I change the Property (integer) within the original VM, where it is defined, it does update the view. When I change the Property from a child class,...
0
votes
0
answers
36
views
See Changes on Models Properties in View to View Data Binding Using .NET MAUI
I have two .NET MAUI Content Views binding a model from parent view named IdentifyCntrl to child View named ChildControl. I'm binding a model named IdentHeightModel from ParentControl to ChildControl. ...