I have a GroupBox, which is defined like this
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Groupbox"
>
<Style TargetType="local:GroupBox">
<Setter Property="BorderBrush" Value="DarkGray"/...
I have two listview's, one of which accepts Drag/Drops of files, to list the file names. What I want to do is to have the second listview create a custom object, based on the filename of the item in the first list view.
I have the second list views ItemSource bound to the first, and whenever I drag a file into the first, it will show in...
Can WPF bind to a generic class I created?
It is basically Class<T> where T:MyInterface
Can I Bind to Class<T> and use MyInterface to Bind It?
...
I currently already decorate properties in my business objects with attributes related to validation in Windows Forms.
I would like to add attributes that would determine how the data is formatted. This would hopefully work seamlessly with data binding.
Is there a way to do this?
...
I have a dropdownlist that list or major models, when selected it filters down to specific model on my 2nd dropdownlist, the problem is when I select on the 2nd dropdownlist the first time I get the correct selected value , the 2nd time I get the same model like it didn't refreshed. To illustrate:
1st dropdownlist
General Model 1
Gener...
hello,
i have datagridview and Object data source :
public class Data
{
public general general { get; set; }
public Person Person { get; set; }
}
public class general
{
public int Id { get; set; }
public int Name { get; set; }
}
public class Person
{
public int Tag { get; set;}
}
}
i want to bind first colu...
I have a datagridview with a datasource of type binding list.
I understand that when the datagridview changed this will update the items in the binding list.
I also know that if the objects in the bindinglist implement Inotifypropertychanged
then if the obects are changed outside the grid then the objects will notify the bindlist which...
Hi guys,
I am upgrading my application from vb6 to vb.net.
I used to populate my data in datalist control in vb6 forms. I am not finding it in vb.net windows form application. Which one control is the equivalent to it?
How can i list my data in that control?
just like:
I had a table with data like id, name
I want the name should be...
I have an ObservableCollection of items of my class "PlaylistItem" that implements INotifyPropertyChanged. The collection is databound to a ListBox and everything else is working.
I want to know what markup to use to trigger a style change of the wrapping ListBoxItem based on a property (e.g. "Playing", bool) of the PlaylistItem. How ...
I've used an early binding of a dictionary<string, string> to a gridview to show Urls Text and its HRef as key-value and it works like a charm.
But since I want to replace the dictionary with this one :
dictionary<string, LinkInfo>
the binding goes wrong! Should I handle some events like as onItemDataBound or something?
and the LinkI...
Hello,
all day long I am sitting and trying to find out why binding to AvalonEdits Document property isn't working. AvalonEdit is an advanced WPF text editor - part of the SharpDevelop project.(it's going to be used in SharpDevelop v4 Mirador).
So when I set up a simple project - one TextEditor (that's the AvalonEdits real name in the ...
I'm using some CLR objects that use the INotifyPropertyChanged interface and use the PropertyChanged function to update in WPF bindings.
Pretty boilerplate:
protected void RaisePropertyChanged(string propertyName)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}...
Hello,
I've got a strange problem - binding created through XAML (both ways by markup extension or normal) isn't working(BindingOperations.IsDataBound returns false and in fact there is no Binding object created). When I do literally the same from code everything is working perfectly.
One more thing is that the Binding in XAML is create...
I'm using DataGrid from CodePlex.
[Summary: How to use bind dynamic data (a property of an object specified by dynamic name) when using template selectors? Alternative solutions would be accepted as well. I've been thinking about making my own based on BoundColumn, but someone was having problems with that approach.]
I have objects (IC...
Hello, everyone. I fell in the following situation:
I have a main UserControl with a DataGrid (which contains List). I need to show different panels depending on properties of the selected row(object). So i've created 2 controls and included them into this main control. Main control has 2 public properties -
public List<ComplexObject> ...
I have a windows forms application. I have a main form and I have a button on this form to set a "Qualified" date/time stamp. I have a Databound label control that I set the value when the user clicks the button. This date/time stamp is working as far as displaying but when you click the save button it either shows blank or the previous ...
I have a custom control I created from a expression design I created and exported to xaml. I have put in it a bound itemtemplate/datatemplate of a ListBox contorl. It doesn't seem to be rendering more than once and/or it is rendering each item in the same place(kind of like the same x,y coordinates.
It would seem to me that this should ...
I would like to do something that is seemingly quite simple, but I cannot figure out how to do it. I have a ColorAnimation that is triggered when the MouseEnter event occurs. It simply changes the background color of a Border from one color to another color.
Unfortunately, I can't figure out how to put anything but hardcoded colors in...
(For this example) ListBox l is bound to CustomObjectCollection c.
Does l call c's Constructor?
What if c is a Generic Object?
**In XAML (1)**
<ListBox Content={Binding CustomObjectCollection}/>
**In Codebehind**
CustomObjectCollection<MyClass> c;
**In XAML (2)**
<ListBox Content={Binding CustomObjectCollection}/>
Suppose in c, I po...
Hi,
What I did is, I have made 2 user controls. One control is inside the other.
NoW one control has a buttton and a data grid and datalist in it. When pressing button I am filling datagrid while datalist visiblity false. This is working fine. But now when I press some link button in datalist data, it should call item_command event but ...