binding Questions
7
When I press Ctrl + Shift + P in VSCode (shortcut for "Command Palette") nothing happens.
Side note: I've just installed VSCode on my new PC (Windows 10,) so it's a fresh installation if ...
Paperboard asked 29/4, 2021 at 20:44
5
Solved
Anybody have a good example how to deep clone a WPF object, preserving databindings?
The marked answer is the first part.
The second part is that you have to create an ExpressionConverter and i...
7
Solved
I feel like I'm missing something very basic, but this example SwiftUI code will not modify the view (despite the Binding updating) when the button is clicked
Tutorials I have read suggest this is...
5
Solved
How do I generate a preview provider for a view which has a binding property?
struct AddContainer: View {
@Binding var isShowingAddContainer: Bool
var body: some View {
Button(action: {
self.i...
3
I have tried everything and got nowhere so I'm hoping someone can give me the aha moment.
I simply cannot get the binding to pull the data in the datagrid successfully.
I have a DataTable that con...
Wardle asked 20/4, 2010 at 17:55
5
I'm trying to present a View in a sheet with a @Binding String variable that just shows/binds this variable in a TextField.
In my main ContentView I have an Array of Strings which I display with a ...
2
Does WinUI 3 support binding in a Style Setter? I've defined a Style for a NavigationView and the third line is:
<Setter Property="CompactPaneLength" Value="{Binding CurrentCompac...
6
Solved
I have a Person class:
public class Person : INotifyPropertyChanged
{
private string _name;
public string Name{
get { return _name; }
set {
if ( _name != value ) {
_name = value;
OnProperty...
Refinery asked 8/8, 2012 at 17:37
2
Solved
I was wondering if it is possible to hide a control on a view if the property to which the control is bound does not exist in the view model. For example, if I have the following:
<CheckBox Con...
Householder asked 27/3, 2012 at 16:36
12
Solved
I have this scroll-able frame (frame inside canvas actually).
import Tkinter as tk
class Scrollbarframe():
def __init__(self, parent,xsize,ysize,xcod,ycod):
def ScrollAll(event):
canvas1.config...
Northeasterly asked 28/6, 2013 at 1:33
5
Solved
Well, I needed to bind DateTime.Now to a TextBlock, I used that:
Text="{Binding Source={x:Static System:DateTime.Now},StringFormat='HH:mm:ss tt'}"
Now, how to force it to update? It get's the t...
5
Solved
I am trying to bind a checkbox to scope using ng-model. The checkbox's initial state corresponds to the scope model just fine, but when I check/uncheck the checkbox, the model does not change. Some...
Mccain asked 5/9, 2013 at 17:23
6
Solved
Is there a way to create a conditional binding in XAML?
Example:
<Window x:Name="Me" DataContext="{Binding ElementName=Me}">
<TextBlock>
<TextBlock.Text>
<SelectBinding Bi...
Caricature asked 6/12, 2010 at 13:42
2
Solved
When I try to set show a toggle inside a loop of value from a dictionary, I get very little help from the error message.
If I un-comment the 3 lines of commented code below, trying to add a toggl...
3
I have a very basic view that only shows a TextField:
View
struct ContentView: View {
@StateObject var viewModel = ViewModel()
var body: some View {
TextField("Enter a string...", t...
Brusa asked 16/1, 2022 at 21:34
5
Solved
I want set Tag property with int value in xaml. But defining int in resources and then reference this resource as binding looks not a perfect way for me. It is easier just to convert string value t...
3
Solved
I am following a tutorial and it says
ES modules uses live bindings. It means a feature to support cyclical
dependencies.
But I don't clearly understand this concept. What does this mean?
Viafore asked 6/9, 2018 at 19:54
4
Solved
I'm reading this great book called Eloquent JavaScript but I'm confused by the use of the word "binding" in this example:
It is possible to include symbol properties in object expressions and
c...
Scarlet asked 5/4, 2018 at 0:3
11
Solved
I have some problems when I try to bind the height and width of a window to properties in my view model. Here is a small sample app to illustrate the problem. This is the code in app.xaml.xs
publi...
Grape asked 20/4, 2010 at 8:20
5
Solved
I need to set a table from a database to be the DataSource of a GridGrid in WPF. In Windows Forms the property is called DataSource but in WPF no such property exists, so how can i do it?
Whitleywhitlock asked 22/3, 2011 at 22:5
5
Solved
18
Solved
I'm using a BooleanToVisibilityConverter in WPF to bind the Visibility property of a control to a Boolean. This works fine, but I'd like one of the controls to hide if the boolean is true, and show...
Tunic asked 10/2, 2009 at 22:41
2
One of the third party JAR I am using uses this class and unable to find javax.jws.soap.SOAPBinding$Style implementation.
Any help?
3
how can i bind Listbox's or texblock's Language attribute (or xml:lang attribute).
i want to show month names in the specific language setting
ex:
<TextBlock x:Name="Date" xml:lang="{Binding ...
3
Solved
I am experiencing an issue with SwiftUI where a bound @State variable (displayString) does not seem to get updated in time when a sheet is presented. The code provided consists of a parent view (Si...
Stonebroke asked 25/9, 2023 at 0:30
1 Next >
© 2022 - 2025 — McMap. All rights reserved.