So the situation is this:
I have a collection of collections!
I have 2 list boxes!
ListBox A contains my collection of collections as it's itemsource and supports multiple selection (SelectionMode = Extended)
ListBox B needs to get it's itemsource from a composite of all collections selected in ListBox A.
Is there a good way to do t...
Hi All,
I have a ContentControl which has a DataTemplate defined as the ContentTemplate.
In the DataTemplate I have two TextBlocks and a ListBox.
I have the two entities(Parent/child) as the data source. What I want is to Bind the Two TextBlocks with the Parent fields and the ListBox with the Child record's list (Customer/Orders).
My qu...
I have a set of UserControl, which share the same business object (ViewModel), but only
display data from this in different way.
I select an active UserControl via combobox. Old UserControl I delete from StackPanel and add new UserControl.
var uiElement = thisObject.EditorsContainer.Children.FirstOrDefault();
if (uiElement != n...
I have GridView bound to some List. In layout I created following template field:
<asp:TemplateField HeaderText="Phrase">
<ItemTemplate>
<asp:TextBox ID="phraseTextBox" runat="server" Text='<%# Bind("Phrase") %>'/>
</ItemTemplate>
</asp:TemplateField>
But after changing the content of any TextBox in column "Phrase" my ...
I have a field in a DataGrid, bound to a value (Item.Amount), now inside the style for that field editor, i would like to bind the Format field to Item.QuantityDecimalPoints.
But I cannot seem to be able to go up the tree to the same Item that the record is bound to.
I have tried the following:
Format="{Binding Path=QuantityDecimalPoi...
I have a datagrid in which i manually specify the columns (AutoGenerateColumns="false"). I'm using MVVM and I would like to bind the column header (the text) so that I get it from my ViewModel. But I can't find a way to do that.
The closest thing I've found is this:
http://stackoverflow.com/questions/652240/wpf-toolkit-bind-datagrid-col...
Hi,
What is the right way to return empty arrays from webservices in Java? I need that empty arrays sholdn't be nulls on client. If I use Apache CXF or Axis 2 with default databinding I receive null insted of empty arrays.
If I use CXF and AegisDatabinding -- problem is solved, but when I calling this webservice from Axis 2 client -- I ...
I've been using databinding in several simple situations with pretty good success. Usually I just use INotifyPropertyChanged to enable my codebehind to modify the GUI values on screen, rather than implement dependency properties for everything.
I am playing with an LED control to learn more about databinding in user controls, and was f...
What are the differences in these tags?
<%
<%#
<%=
<%$
More importantly, how do I display a page property using declarative syntax in an ASP.NET control? I'm trying to do this in an ASP.NET control. The task is to set the text of a label but I do not want to do this pro grammatically in the event I want to change the output control. I ...
Is there a JAXB annotation to ignore a parent class, when you have an @XmlElement on a List of the child classes?
Just to clarify - I was wondering if there was a better way than marking all of the parent classes getters/setters as transient, and then having to go back to the child classes and add getters/setters and annotating those as...
I have a property on a label bound to a Setting in my App Setting file. What I am wondering,
Can I hook a OnPropertyChanged() up to this some how?
I know there are other ways I may accomplish this but this got my curiosity up so I thought I'd ask.
EDIT
The reason I am asking is when the bound property of my label - Tag(bool) chan...
I have a simple class that provides state codes like this:
public class StateProvider
{
static string[] _codes = new string[]
{
"AL",
"AK",
...
};
public string[] GetAll()
{
return _codes;
}
}
My model class that supports the view looks a little like this:
public class ProjectM...
We have a data grid on a window that is bound to a collection of objects. We are having very bad performance on this window; it can take up to 20 seconds to load, and then 5-7 seconds each time you 'scroll' the data grid. This is with a total of 12 items so far. When we investigated, it seemed that the primary cause of the slowdown w...
Lets say I have this class:
public class MyData
{
public bool IsActive{get;set;}
public String Data1 {get;set;}
public String Data2 {get;set;}
}
and an
ObservableCollection<MyData> data = new ObservableCollection<MyData>;
ListBox.ItemsSource = data;
Adding items to the ObservableCollectionworks as expected; however, I w...
Hi
Im a begginer in wpf. Actualy im styling a Combobox which receive data from a database.
The combobox work fine at this point (without style).
I have edited the Control template of the ComboboxItem control in stylesheet, lazing it like resource dictionary.
If the style apply to combobox with static data, the style work fine, but if th...
Hi folks, i´m looking for any other solution to XmlDataBinding in Delphi.
The native delphi wizard isn´t working for me, i have huge complex schemas with duplicate elements and other things who lead to strange errors that aren´t easy to fix manually.
Any ideias?
Thanks in advance.
...
I have a collection of Company objects contained in a CompaniesCollection which is inherited from Observable Collection. Via a CollectionViewSource, I am displaying these Companies in a list box. One of my requirements is that each company item must show the City and State of the first Address (of a collection of Addresses) attached to...
I have three databases, x, y, z. Let's assume MS can speak to all of them via odbc or something else.
When I was in webforms I would create a tableadapter and conduct a query. I could do this for each connection I had, so I had three queries.
I would drop each connection and dataset on my page. Each control I used would call the app...
Currently, I have this in MainWindow.xaml:
<Image Name="LogoImage" />
And this in MainWindow.xaml.cs:
public ImageSource LogoImageSource { get; set; }
....
var rm = new ResourceManager("Project.Properties.Resources", GetType().Assembly);
var logoBmp = (Bitmap) rm.GetObject("CompanyLogo");
if (logoBmp != null)
{
var hBitmap = l...
My employer uses Dotfuscator on all our .Net production software. Because of this, we are absolutely forbidden to use ANY built-in databinding or anything that reflects on property/function names - because dotfuscator changes them and therefore anything bound instantly and irredeemably breaks.
I keep rolling this logic over in my mind ...