Here is peace of the XAML code from my page:
<ComboBox Grid.Row="2" Grid.Column="1" Name="Player2" MinWidth="50"
ItemsSource="{Binding PlayersTest}" DisplayMemberPath="ShortName">
custom object is binded to the page data context:
page.DataContext = new SquadViewModel();
Here is part the source co...
Hi,
Let's say that I have created a WCF proxy from a WCF service (which is configured with wsHttpBinding) using Add Service (in Visual Studio 2008).
Later I want to use basicHttpBinding so I'll go and change the WCF service to use basicHttpBinding. But what about the WCF proxy? Can I just change this via Web.config or do I need to crea...
If I have a property in my C#;
public CollectionView Months
{
get
{
CollectionView retList = new Enumerations.Months().ToCollectionView<Enumerations.Months>();
return retList;
}
}
And I have a ComboBox;
<ComboBox x:Name="ddlMonth" Grid.Row="3" Grid.Column="1"
ItemsSource="...
I have a user control that contains a border somewhere in it. I am able to edit both the User Control Width and the Border Width from binding to two textboxes. I need to include validation when I create the binding in code so that the Border Width can't be higher than the User Control Width.
...
Hi,
I am trying to find out what would be the best way to bind first element of ISet (Iesi.Collection) as a first element.
So basically I only have to use some kind of collection that has an indexer (and ISet doesn't) then I can write code like this (which works perfectly well):
<%: Html.EditorFor(x => x.Company.PrimaryUsers[0].Email)...
Coming from ASP.NET I'm having a hard time with basic ADF concepts.
I need to bind a table on a button click, and for some reason I don't understand (I'm leaning towards page life cycle, which I guess is different from ASP.NET) it's not working.
This is my ADF code:
<af:commandButton text="#{viewcontrollerBundle.CMD_SEARCH}"
id="c...
I'm trying to make a bar graph Usercontrol. I'm creating each bar using a DataTemplate.
The problem is in order to compute the height of each bar, I first need to know the height of its container (the TemplatedParent). Unfortunately what I have:
Height="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Height, Converter={...
I have the following class (abreviated for simplicity). The app it multi-threaded so the Set and Get are a bit more complicated but should be ok.
namespace News.RSS
{
public class FeedEngine : DependencyObject
{
public static readonly DependencyProperty _processing = DependencyProperty.Register("Processing", typeof(bo...
Hello, I'm just getting started with silverlight.
Basically I have a silverlight user control that has various dataGrids and a combobox, their item sources set to the properties of a custom plain c# object.
My problem is that I have a dropdown list that when a user selects an item from the list a new row should appear in one of the grids...
Hi,
If i have a ListView (called "MainList") and want to bind to elements in a collection, how is this done.
Main.Items.Add(new ObserableCollection() { "hello", "world" }
then
Why doesnt this work? Ive tried loads of other combinations of bindings as well....
Thanks
U.
...
I have some controls bound to a BindingSource control.
I want to do a calculation when the value changes in one control and set the result on another control.
Do i update the textbox the property is bound to or do i update the underlying entity which would update the control anyway(i hope)?
When i change comboboxA(onpropertychange).....
Im using WPFToolkit datagrid control and do the binding in such way:
<WpfToolkit:DataGrid x:Name="dgGeneral" SelectionMode="Single"
SelectionUnit="FullRow"
AutoGenerateColumns="False"
CanUserAddRows="False"
CanUserDele...
So imagine this scenario, I have a list and it has a bit of pagination going on, when the user clicks next, the link is hijacked by jQuery, it uses the $.ajax function (of which I've provided below) to go and get the next page contents and display them in the original container. This includes the pagination links as well as we want them ...
I am binding to an ADAM instance from a C# client using the ADSI provider. When the bind fails I get a generic error condition back that indicates a failure. If I look at a network trace of the traffic I can see that the ADAM instance itself send extended error information back to my client indicating why this authentication has failed, ...
I wrote a CSharpScriptBinding roughly equivalent to the PyBinding on CodePlex. It uses the C# script engine from http://www.csscript.net.
After I wrote it, I kind of decided it might not really be something good to use. Although it caches the compiled script code as an already compiled Assembly, my concern is that I will have one temp...
After trying to develop our own control to display a table of data we stumbled on the WPF toolkit DataGrid and thought we were saved. A couple hours later I'm scratching my head trying to figure out if it can do what we really want it to do. The DataGrid seems to be based on displaying various properties of a single object, where I thi...
So I have this issue I've been trying various ways to tackle all day and nothing's catching and working for it. Basically I have a XAML object called ChromeWindow (derived from Window) which has in it's code-behind a DependencyProperty called AppChrome which stores a reference to an associated ApplicationChrome XAML object (derived from ...
In Javascript, if we are aliasing a function (or, assign a "reference to a function" to another variable), such as in:
f = g;
f = obj.display;
obj.f = foo;
all the 3 lines above, they will work as long as the function / method on the right hand side doesn't touch this? Since we are passing in all the arguments, the only way it can me...
hello,
I have a datagrid in which I have grouped the rows according to the author.
I have bound the datagrid with collection of Author class objects.
where, Author class have three properties as Book, Publication and Number of copies which would correspond to the columns in the group in datagrid.
My problem is I want to display the su...
Hi,
I have a main window and many user controls that I want to show/hide depending on the user choice. For example there is a user control called Customer that should get all the customers from a database or a user control that is a form to sign up for a service. And so on. Each of this controls have viewmodel that should get the data fr...