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
178 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 ...