Questions tagged [data-binding]
A general technique that binds two data/information sources together and maintains them in sync.
data-binding
23,907
questions
0
votes
0
answers
16
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
46
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
37
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
30
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
45
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
27
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;...
-1
votes
0
answers
69
views
Go code is not blocking despite infinite for loop [closed]
Here's the code, woven in with its output and some comments, block by block:
func MakeAssignment(NewDF dataframe.DataFrame, win fyne.Window,
BT binding.UntypedList,dfnames []string,...
0
votes
1
answer
37
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
39
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
47
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)
{
...
0
votes
1
answer
26
views
WPF DataContext PropertyChanged is Null
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 ...
1
vote
2
answers
59
views
Binding an ItemClick Event on a Parent Window to a BarButtonItem on a child UserControl
I have a parent window (windowMain) that has a child UserControl (userOne) and another UserControl (userTwo) within userOne.
windowMain has a BarButtonItem and I need to bind that ItemClick event to a ...
-2
votes
0
answers
21
views
WPF - callback for when a control is getting updated after Visibility property changed
I need to figure when a control gets displayed as I set its visibility to visible
The aim is to display a wait message for the user BEFORE updating a data binding. avoiding a blank UI freeze
I tried ...
-1
votes
1
answer
52
views
How do I dynamically change the stringformat of a datepicker (WPF, c#)?
I have this datepicker element:
<DatePicker
Name="DataSelected"
Grid.Column="1" Grid.Row="2"
...
0
votes
0
answers
27
views
How to transform complex property values (additionalFilters) from yaml into domain objects (FilterCondition)?
I am using conversion service and custom converter to transform additionalFilter list element in FilterCondition object.
Now, When I'm starting my application, it should go to this converter at debug ...