17,357 questions
Best practices
0
votes
0
replies
37
views
How to add a request timestamp not to many forms with Spring Boot with possible override in testing scenarios
We want to ad a request timestamp to some forms in Spring Boot. We need the timestamp in production and testing for various reasons.
public interface TimestampForm {
ZonedDateTime getTimestamp();
...
3
votes
1
answer
59
views
Binding data to a ContentView in Syncfusion Popup (MAUI)
I'm trying to have a Syncfusion Popup in my app. Because of the size and for reusability I put the Popup's content into a separate ContentView. However this makes the Binding to the content fail. I ...
0
votes
0
answers
20
views
Visual Studio: 3rd party SDK not being found when trying to load it via custom project type
I have a 3rd party SDK which was installed via VSIX / NuGet package.
Let's call it FoodFight/CoolKids for Windows.
I'm working on a VSIX that does a wizard implementation of this SDK as part of its ...
2
votes
1
answer
43
views
Xceed DockingManager dropdownbutton not showing content
I have an Xceed DockingManager that is bound to an observable collection of objects. The docking manager populates a dropdown button based on the number of objects within the observablecollection. ...
0
votes
1
answer
87
views
SwiftUI: reset @State before re-rendering the view
I have this view, for example:
struct MyChartView: View {
let chart: MyChart
@State private var selectedPoint: Int? = nil
var body: some View {
//... draw chart, set/move ...
0
votes
0
answers
111
views
problem with llama_backend_init in flutter with llama.cpp
I'm trying to make an app with flutter dart for android.
the app that I will made is that a chatbot (like chat gpt) using built in model (the ai model will have .gguf extension). So the ai model will ...
2
votes
1
answer
179
views
How can I edit text inside Avalonia DataGrid cell and take the new text value of that cell to make a query?
I'm developing an Avalonia Application and I'm trying to figure out how can I make a DataGrid cell editable, here's my DataGrid to make it more clear:
<DataGrid IsReadOnly="False" ...
0
votes
1
answer
92
views
Bindings visible on Android but not on Windows in .NET MAUI app
I am developing an application on .NET MAUI and I'm using it because I need the multi-platform feature through mobile and Windows, but I'm having some problems when I run the application on Windows.
...
0
votes
0
answers
116
views
Autocompleting TextField inside a TableView?
I'm trying to add autocompletion to a TextField that acts as a data column in a TableView.
In particular, I want to use an Array of String values as suggestions, but not require that the value of the ...
2
votes
1
answer
167
views
Angular - bootstrap carousel - How to bind active item
How to achieve this :
When I click on right arrow of the carousel, I want to trigger a method with the item index as parameter.
Some thing like <button ... (...)="eventHandler(index)" .....
-1
votes
1
answer
103
views
Proper way to pass a class around SwiftUI views [closed]
I have a SwiftData class that I get with @Query private var items: [Item] in a SwiftUI view. Then I pass it to a sub view that passes it to other sub views. What is the best way to pass the class ...
2
votes
2
answers
64
views
Binding a var from struct array under an ObservableObject
I have an environment object Order, containing a list of OrderItem (aka an item + a quantity)
I'm presenting a list with steppers so quantity can be modified for each item.
struct MenuItem: Codable, ...
0
votes
2
answers
77
views
Binding on SelectedItem when it is NULL?
I bind a Text property of a TextBox to listView.SelectedItem, which is dynamically populated from a collection of objects:
<TextBox x:Name="setName" Text="{Binding ElementName=...
0
votes
1
answer
55
views
Consequences of calling BindingOperations.EnableCollectionSynchronization from a background thread
I have just realized that several of my view-models violate a key rule of the function BindingOperations.EnableCollectionSynchronization The docs state that it must be called from the UI thread. I ...
0
votes
3
answers
93
views
Collection view single preselection doesn't work
I'm working on .net maui and I'm facing a strange issue; I have a CollectionView with bounded ItemsSource and SelectedItem.
I'm trying to do a simple preselection to set CollectionView's SelectedItem ...
0
votes
0
answers
31
views
How to use the Binding DataGridTextColumn inside CellStyle, ElementStyle and EditingElementStyle in WPF
I would like to modify the Template of the CellStyle, ElementStyle and EditingElementStyle of the DataGridTextColumn (and also DataGridComboBox and DataGridTemplateColumn later on).
Let's say I have ...
1
vote
1
answer
65
views
Is it possible to use BindingContext to an appstate and a viewModel?
This is a basic question, somewhat... that You ask a teacher after not understanding the documentation, just to be sure. I'll delete it if asked to do it. My understanding it is that is not possible, ...
0
votes
0
answers
51
views
dotnet-android Java binding library (usb-serial-for-android): CS0535 'does not implement interface member'
I am using the usb-serial-for-android library from GitHub with a dotnet Visual Studio project type Android Java library binding.
Just added this to my project file
<ItemGroup>
<...
2
votes
1
answer
138
views
When are the dynamic/static libraries linked on compile, link, load or run time?
I found this question about the difference between .a and .so files
First Linking the dynamic libraries:
One answer says:
The advantage of .so (shared object) over .a library is that they are linked ...
0
votes
0
answers
23
views
Trigger OnEditorActionListener doesnt work
I'm trying to pass OnEditorActionListener to my view. However, the OnEditorActionListener isn't triggered.
class WMScanEmpfaengerFragment : TransactionNavigationFragment<WMScanEmpfaengerViewModel&...
0
votes
2
answers
63
views
SwiftUI MacOS app : toggle binding to modelView in subviews do not work
My main ContentView contains a ChecklistView, which contains several CheckViews, which contains a Toggle view. When clicking on a checkbox, the information is passed to the ContentViewModel, but does ...
2
votes
2
answers
128
views
C# Refreshable ListView Binding Issue
In a resource dictionary I am defining a DataTemplate with x:Key="AnimalsDataTemplate". The resource dictionary is registered under Application.Resources in App.xaml.
In my main page, I have ...
0
votes
1
answer
82
views
What kind of object should I create to have its property be bound to a control's property
I created a class derived from DependencyObject and added properties to it which were registered as DependencyProperty:
public class DependencyPair : DependencyObject
{
public static readonly ...
0
votes
1
answer
71
views
Bind two textfields and a ListView to activate a button in JavaFX
I try to find a solution for my problem, but I'm at a dead end of my attempt and my small JavaFX skills.
Long story short, I want to activate a Button when two TextFields contains valid values and a ...
0
votes
0
answers
71
views
Workspace ONE SDK binding issue for .NET MAUI: AWController not publicly accessible
We are developing a .NET MAUI-based mobile application for iOS, and we would like to integrate the Workspace ONE SDK. However, since there is no direct support for MAUI, we are trying to convert the ...
-1
votes
1
answer
92
views
Binding with DataTemplate according to DataType [closed]
Binding a ContentControl to the selected item of a treeview I can't get DataTemplate to show something according to DataType:
<ContentControl Grid.Column="1" Grid.RowSpan="3" ...
0
votes
3
answers
179
views
Custom SwiftUI container view using UIViewRepresentable - How to do it correctly?
The SwiftUI ScrollView lacks some features I need, so I used UIViewRepresentable to create a custom container based on UIScrollView. I found different tutorials showing how to create custom container ...
0
votes
2
answers
75
views
Bind address error when node is elected for driver on which the spark submit job is not invoked on. (cluster deploy mode vs client deploy mode)
When running in "cluster" deploy mode and another node is elected as the driver then the app fails with address bind issues.
When running in "client" deploy mode from any of the ...
0
votes
1
answer
175
views
How to Bind to property within @Observable from within @Observable using SwiftUI?
I am not sure if it is a good concept, but let's start from it here.
I have a simple View:
struct InAppPurchaseView: View {
private let viewModel = InAppPurchaseViewModel()
var body: some View ...
0
votes
0
answers
26
views
In main activity binding gonna be unresolved after cleanup inspection errors and view binding is also true
this is after cleanup the inspection error
while all dependencies are still same and viewBind is also true
How to solve this?
override fun onCreate(savedInstanceState: Bundle?) {
super....
0
votes
1
answer
104
views
Picker selection, ForEach an binding property
I'm trying to make a view with some pickers. The selections should be connected to a property of an binding array:
@Binding var limits: [Limit]
var body: some View {
ForEach(limits) { limit in
...
-1
votes
1
answer
83
views
DataBinding From UserControl to Code-Behind of Window
I have a question for you: I'm trying to bind 2 strings, one from the user control to the code-behind of the window.
This is the usercontrol style:
<UserControl
x:Class="PasswordManager....
2
votes
1
answer
161
views
Crash on WinUI 3 with ObservableCollection<> binded to ItemsSource, only in Release mode
In my WinUI 3 app, I get no errors when the app is in Debug mode, but when I turn the Release mode, I get a System.NullReferenceException.
Looking at the stack it seems to me that the problem is ...
1
vote
1
answer
75
views
What is the precedence of parameter binding?
I am a PowerShell novice. Suppose that I wish to call
Get-Service -Name winrm, netlogon
Due to parameter binding, this will be parsed as if we typed @("winrm", "netlogon") rather ...
0
votes
1
answer
74
views
Wpf dependency property fails to initially bind, then works correctly after window displayed
I have a user control that shows a logo, which has a triggered animation. It has a couple of dependency properties for border and background brushes, and it all works well.
In the control's xaml, ...
3
votes
0
answers
55
views
JavaFX Chained MappedBindings Repeated Executions
I noticed that some of my mappings were being executed multiple times and decided to investigate. I found out that chaining multiple ObservableValue#map calls, then adding a listener to the result ...
0
votes
1
answer
47
views
How to key bind a snippet in Sublime Text?
I had some trouble figuring out how to add a Key Binding to my new Snippet in Sublime.
This answer may save some people some time...
0
votes
1
answer
31
views
Trouble Binding InputSelect (drop down list) in Blazor from Database
I'm new to Blazor and the next issue I'm having is trying to bind dynamic data from a lookup table onto an InputSelect deal
Here's the Create Code:
@page "/movies/create"
@rendermode ...
0
votes
0
answers
28
views
How to understand Ad Hoc Binding?
I found one a bit official definition for these in this book:
deep binding uses the environment at the time the passed function was created
shallow binding uses the environment of the expression that ...
1
vote
2
answers
111
views
Why does .fullScreenCover(isPresented: $someBinding) requires a binding instead of a simple bool?
I wonder why .fullScreenCover(isPresented:) requires a Binding instead of a simple Bool. I understand that .sheet requires a binding report back that it was closed, e.g. through a swipe gesture.
....
-3
votes
1
answer
78
views
Binding gets broken when presenting .sheet - But where and why?
A SwiftUI view should show different .sheets. For example some EditorView with a picker view in a .sheet for a number of different values.
Instead of using different @State vars and .sheet blocks for ...
0
votes
1
answer
101
views
WPF Datagrid enum combobox column
In a WPF DataGrid, if I use AutoGenerateColumns and bind it to my collection of class objects, it displays enums as a combobox automatically where I can choose between all options available in the ...
0
votes
0
answers
27
views
ComboBox FontWeight binding in a CellTemplate of a DataGrid from the Main VM and not DG ItemSource
I have a DataGrid that is bound to a ObservableCollection of named Views (ViewItem). I have a CellTemplate column that I have a ComboBox inside a DockPanel that I am binding to an ObservableCollection ...
2
votes
1
answer
363
views
Binding to parent Context using RelativeSource in a DataTemplate (MAUI, XAML)
I have a MAUI .Net 8 project. I have a DataTemplate which is used in the SyncFusion ListView control. The dataTemplate is defined in a Style XAML file in my Resources folder of the project since the ...
0
votes
0
answers
74
views
CXF XJC generation force List<String> to return null instead of empty list with JABX bindings
I'm using cxf xjc plugin version 4.0 to transform a schema to a java class, but this is generating a class that when a list is null, it returns an empty list, but I need the null, so I'm using JAXB ...
-2
votes
1
answer
38
views
The most optimized way to bind variables in Angular when dealing with objects
I read the manual of binding object properties in Angular, however I struggle to find the perfect most optimized solution.
Let's say i have a model User
export class User {
public _id: number;
...
0
votes
0
answers
42
views
WPF Combobox ItemsSource binding not working [duplicate]
I have a custom combobox, and if I want to show items via binding it does not work. But if I just give the combobox a name and in the MainWindow constructor I put myCombobox.ItemsSource = list it ...
0
votes
0
answers
66
views
WPF Devexpress binding templated parent RowData.Row
I have a very specific custom control, I need to set a DataTemplate for all GridControl cells. I can't create a binding to Row Data.Row.[property name] because it will apply to all cells. How to bind ...
1
vote
1
answer
339
views
Work-around for warning with Compiled bindings
I am attempting to improve runtime performance and running into an issue.
I have a button on my ContentPage named MyCommand, this receives an Item (from a DataTemplate) and processes it. I have a few ...
1
vote
1
answer
116
views
Which type is the portable equivalent to the C type FILE in FreePascal
I have to write a wrapper for the C-API of the library GDAL to generate FreePascal bindings under Debian 12 and GDAL version 3.2.2.
One of the functions is:
void CPL_DLL OGR_G_DumpReadable( ...