Visual Studio WPF editor worked fine all the time. Yesterday, it started complaining about the aforementioned error. I don't recall fiddling with its settings or anything. What's up?
I want to fix the editor and not wade through my code adding Path=. everywhere.
...
I have a masked text box bound to a nullabe datetime, but when the date is blanked out, the validation on the masked text box won't complete. Is there a way to force this behaviour? I want a blanked out text box to equal a null DateTime.
When the textbox is already null, the validation works. It only breaks when there is a date alrea...
Gosh! I hate this. Why it is so complicated?
What I'm trying to do:
I have a form with several UserControls each with a DataGrid. Each grid bind with ObservableCollection through .ItemSource property, everytime when program catches an event, it makes changes in one of the implied collections. But a picture of a grid doesn't update.
...
Following my earlier post I am now trying now to bind the visibility of DataGridColumns to a VM notification property. MSDN suggests I should be able to do this with ease.
I already have a value convertor and VM notification property that I know works (I have tested these on another element on my page:
<CheckBox x:Name="chkAllTeams" Vi...
Simple question, I guess.
For a long time I've blindly followed a (supposedly) common pattern when programmatically databinding my ASP.NET controls. Namely:
gridView1.DataSource = someList;
gridView1.DataBind();
However, if I were setting my GridView to bind to a DataSource control via the DataSourceID property, the call to DataBind(...
I have a GridView that I use to show my users the result of a search. I want to allow them to choose which columns are shown on the GridView when performing their search. Simple enough, yes? I wanted to try doing this using just databinding, no events. Unfortunately, my code fails to update the GridView using checkboxes bound to the colu...
My non-databound TabControl looks fine:
<TabControl Width="225" Height="150">
<TabItem Header="One">
<TextBlock Margin="10" Text="This is the text block"/>
</TabItem>
<TabItem Header="Two"/>
<TabItem Header="Three"/>
<TabItem Header="Four"/>
</TabControl>
But my databound TabControl looks like this:
<W...
I'm attempting to bind a combo to a collection of objects:
Dim t As New TradeOrderStatus()
Dim ts As List(Of TradeOrderStatus) = t.GetStatuses
With Me.cboTradeStatus
.DataSource = ts
.SelectedItem = Nothing
End With
This works fine and I see the list of items in the combo. However when I try to set the...
I've made a markup extension for translating strings based on a key. Example
<TextBlock Text="{Translate myKey}" />
Now I want to be able to use nested bindings for providing my keys. Example:
<TextBlock Text="{Translate {Binding KeyFromDataContext}}" />
When I do this I get a System.Windows.Data.Binding object. By calling ProvideV...
Is there a way to get WPF to automatically apply a Converter to all bindings of a specific type?
I've seen this question, but it covers a different case (localisation) and thus has no satisfying answers.
My problem: I've got model classes containing Commands, which I would like to bind to WPF Commands. Since the model classes are toolk...
I have been searching around to find the best option of doing this.
Basically, I want to do two way databinding of multiple controls (textbox, dropdownlist, checkbox, etc) to a single instance of custom class/entity, ie: Person.
It seems, the (only?) way to do this is using an like so:
<asp:FormView ID="FormView1" runat="server" Data...
I would like to use a DataGrid within the RowDetailsTempalte of another Datagrid. This inner Datagrid should have its columns bound to a property of the current object in the outer Datagrid. For example, if the outer Datagrid is displaying all contacts by first name and last name, if I select a row I should be able to see another Datag...
Typically, when I use the standard TreeView control that comes with C#/VB I write my own methods to transfer data in and out of the Tree's internal hierarchy store.
There might be ways to "bind" the GUI to a data store that I can point to (such as XML files), and when the user edits the tree items, it should save it back into the store....
Two of our apps are web applications with a Flex 3 front end and a SOAP-style WCF back end. To communicate with the back end, I generate web service client classes through Flex Builder 3. Everything's functional, but maintaining those generated classes has been quite annoying, and I'm looking for a better way to do things (without havi...
I've made two user controls A and B. Each of them has a TextBlock inside, and are places inside the root control (Page/RootVisual)
How do i bind the two "Text" properties, so that the text in B changes when the text in A changes(and not from B to A)
I cannot figure out the way to type this in XAML. What do i write as (x) in:
Text="{Bi...
I want to verify that a generated class (single entity or collection) from an O/RM tool is data binding compatible.
I read that supported data binding types in WCF are: one time, one way, two way, one way from source in WCF. But how about "old school" .NET 1.1 data binding ?
It looks kind of difficult to check in code what kind of dat...
The question is asked with respect to an Object DataSource. So Consider that I have a class
public class Customer{
public String name;
public int age;
public Customer(String name, int age) {
this.name = name;
this.age = age;
}
}
And I have databound a list box to a list of these objects. So I say
...
I've got a list of Definition objects (definitions), each Definition object has a list of its Arguments and Parameters. This code works fine:
private void BindDefinitions()
{
definitionsComboBox.DataSource = definitions;
argumentsComboBox.DataBindings.Add("DataSource", definitions, "Arguments");
...
I've got a list of Validation objects - validations.
public class Validation
{
public IList<KeyValuePair<string, string>> Arguments
{ //(...) }
}
On a form there is a list bound to validations list and a DataGridView bound to Arguments list of current Validation from validations list. I allow user to edit selected Valida...
I am trying to add a property to a type using TypeDescriptor.CreateProperty in order to display an additional property in a property grid, however this new property is not added and when I call TypeDescriptor.GetProperties on that type to inspect the properties, this property does not exist.
It there something I might be missing or over...