Questions tagged [data-binding]
A general technique that binds two data/information sources together and maintains them in sync.
data-binding
23,908
questions
0
votes
0
answers
7
views
Duplicate Items while converting an object to a node inside two observablelists JavaFX
I am creating a Report Management Software that have a list of clients as it's property.
I have two observablelists(data object, node) that I've mapped which creates a node based on the data model, ...
0
votes
0
answers
18
views
WPF Multibiding how to enter ElementName when the target element is in a different UserControl
In my WPF Window i have button with command
<Button.CommandParameter>
<MultiBinding Converter="{converters:Converter_MultipleCommandParameters}">
<...
0
votes
1
answer
39
views
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:
<TextBlock Text="Product Engineer:" Style="...
0
votes
1
answer
26
views
Binding by ElementName/RelativeSource fails on ListBox but works on items inside it
I have a simple WPF test app. It is a Window with a Grid, holding a ListBox showing Image elements. When I first ran it, the images expanded past the boundaries of the Window, so I bound their ...
0
votes
1
answer
45
views
WPF Dynamically add columns using a pre-defined DataTemplate
I have a DataTemplate defined in the resources area of my custom WPF UserControl which renders a bunch of colored squares for a bunch of "flags". The goal is to dynamically add columns to ...
-1
votes
0
answers
42
views
WPF MVVM application with nested ViewModels - UserControl don't show data
I am developing a WPF MVVM application. In it, I have a ViewModel (MainViewModel) that contains several ViewModels (ChildViewModels) corresponding to different tabs. Within these ViewModels, I need to ...
0
votes
0
answers
21
views
Kotlin databinding for a custom view (canvas) for a recyclerview with multiple viewtypes
Previously I used kotlin synthetics, but now I'm trying to upgrade to data binding.
I have a recyclerview in a fragment and it will have multiple view types all of which will be custom-draw with a ...
0
votes
0
answers
50
views
How to Bind Image Class into Xaml WPF?
I have a class library which contains Images. This class library is being referred in another WPF solution where i need to access this Images. I tried several methods, but other than the relative path,...
0
votes
0
answers
46
views
What's the point of making Shell.Items a getter only Bindable Property?
Shell.Items Property:
public System.Collections.Generic.IList<Microsoft.Maui.Controls.ShellItem> Items { get; }
Shell.ItemsProperty Field:
public static readonly Microsoft.Maui.Controls....
0
votes
0
answers
31
views
WPF databinding *sometimes* binds wrong element
I have a very strange issue with an WPF (.NET 7.0) project.
I use databinding to display elements of an (ordered) list in a WrapPanel:
foreach (DatenElement element in BruteForce_Ordered.Do(randomData....
0
votes
1
answer
60
views
How to implement the TextChanged the CommunityToolkit MVVM way
I am using the .Net Maui's community toolkit and have some mvvm binding going on in a project.
I have a collectionview and a Searchbar connected to a ViewModel. I wish to implement the Searchbar's is ...
3
votes
0
answers
29
views
Make a Texture3D writeable on the GPU in Unity
I have a Texture3D that I've defined:
tex = new Texture3D(8, 8, 8, TextureFormat.RFloat, false);
for (int x = 0; x < 8; x++) {
for (int y = 0; y < 8; y++) {
for (int z = 0; z < 8;...
0
votes
1
answer
38
views
How to pass information from the view model to a validation rule
I'm quite new to programming C# and WPF. I have two TextBoxes where I want to validate user input with validation rules:
<TextBox
x:Name="TextBox1">
<TextBox.Text>
...
0
votes
0
answers
40
views
Passing list of notes with SwiftData to subviews
I am building a SwiftUI application using SwiftData. I have a list of Note objects that I need to display in different subviews grouped by year, month, and day. However, I'm running into issues ...
0
votes
0
answers
48
views
keep track of TCP client connection status
my current implementation contains a public propriety that is binded to a toggle button
{
get => _isListening;
private set
{
if (_isListening != value)
{
...