binding

Create a Custom Binding

Hi all, I'm wondering if it is possible to create a custom WCF binding. I want to simulate msmq using a set of database tables to achieve the same principle. There is a lot of negative attention attached to MSMQ at the company where I work due to previous projects that failed attempting to use it. I myself have never had an issue whe...

Activity Databinding in wf 4.0

Hi there, i want to display some datatypes in a combobox. the datatypes are wrapped in the following class: public class TDataTypeBinder: INotifyPropertyChanged { private string name; public string Name { get { return name ; } set { name = value; On...

DomainDataSource - filtering on the client

What is the best way to filter a DomainDataSource(DDS) on the client? My DDS connects to the WCF Ria Service and downloads a number of items. I want to show bits of this information in different controls. eg a few ItemsControls showing items from the DDS filtered by various values. I know I could create a new DDS for each control and fi...

Bind ItemsControl with ItemsSource to the array index

Hi I want to bind an ItemsControl to an array of object, using ItemsSource and DataTemplate. And I want to show the index of each item. Like Customer 1: Name: xxxx Age:888 Customer 2: Name: yyy Age: 7777 ...

OpenGL 3.2 C# bindings

Hi all. I was developing a my idea on sourceforge. The project links the Tao Framework, but after having read the source code, I tried to generate my OpenGL bindings, with deprecate functions removed. In only two weeks, I've got an initial result (missing some compilable code, again). What I want to ask, is you opinion about: Name su...

can you load a new page into a jquery ui dialog with asp.net mvc

i have a regular html Grid and i am binding my asp.net mvc view to a strongly typed array called MyObject[]. MyObject has 40 properties but i only populate 10 of them because that is what is shown on the main grid. this is in the index view. i want to add a column to my grid to have a link that says "Edit Details". this would bring u...

Restful WCF (webhttpbinding) in IIS breaks after adding https binding

I have a WCF service hosted in IIS (7.0) which implements multiple service contracts and therefore defines multiple endpoints (one for each contract). It has been working fine but I have just added an https binding to the IIS web application and I am now getting an activation exception specifying that the service implements multiple cont...

DepedencyProperty within a MarkupExtension

Is it possible to have a DependencyProperty within a MarkupExtension derived class ? public class GeometryQueryExtension : MarkupExtension { public XmlDataProvider Source { get; set; } public string XPath { get; set; } public static readonly DependencyProperty ArgumentProperty = DependencyProperty.RegisterAttached( ...

Launch my app using email attachement

Hi, I want to bind my app to some file extension so when I receive an email with an attached file with the correct extension, clicking on it will launch my app and pass it the attached file. Is it possible ? How ? Thx --G. ...

Is a variable binding to a collection item possible

Hello everyone, I'm trying to bind to an item inside a collection but the index for that item needs to be "variable". Take the following pseudo syntax for example: <TextBlock Text="{Binding Fields[{Binding Pos}]}" /> Is something like this possible? If my property Pos is 1 it should bind to the first item out of the collection "Field...

ASP.NET MVC: Binding to multiple models

I'm playing with an ASP.NET MVC application and I've run into a bit of a problem. I am pretty new to ASP.NET MVC and just barely understand the basics to get things to work at this point. I have a PersonModel, a PersonController, and a bunch of views that let a user add a new person, edit a person and search for people. I am not using ...

asp.net mvc and linq to entities: how to test model custom binding?

I'm trying to build a test for my custom model binder, but not having any success. The call to base.BindModel always returns a null. Is there a way to test custom binding when using LINQ to Entities? foo in this case is a table in the db with two fields - a numeric and a text value. fooBinder.cs: public override Object BindModel(Con...

Setting Silverlight DataGrid to just throw an exception when binding field does not exist

I just wasted invested a good chunk of time trying to determine why a specific datagrid among many was showing shrunken rows with no text. After many trial and errors attempts to figure out what made this grid special, I finally found that the class used for the row items was marked private. That is a perfectly good reason, but I would...

jquery add more to a click function

I have a function that is bound for a page object in some Javascript files that are loaded on each page. I need to add some more functionality to that already defined event handler. Here is an example of what i mean. The object with the currently defined click event closes a pop-up div that appears on the screen. When this is clicked (...

Declaring list and binding property values via XAML for a custom silverlight control

I feel like I've missed something obvious, but when creating a custom control in Silverlight I can declare properties as public and they will be exposed when making XAML declarations, so I can easily do something like this: public class MyControl : UserControl { public string Title {get; set;} } And this: <local:MyControl Title="...

WPF ComboBox DropDown using PlacementTarget

I have a ContentControl comprised from left to right of a Button, partition and a ComboBox. I want the ComboBox dropdown to line up with the left side of the control as opposed to the left side of the combobox. I received a method in code but I was wondering whether if it could be accomplished in xaml. This gives me the name of the con...

How to choose a WCF binding?

WCF binding chooser algorithm I have watched a speak at a TechEd conference that showed a simple algorithm for choosing a WCF binding. I can't find this algorithm but I remember some of the main ideas: If your WCF service will have non-.NET clients choose Http Soap If your WCF will have .NET clients in other machines choose Net Tcp If...

WPF - Binding in XAML to an object created in the code behind

Can an object created in the code (ie C#) be used for binding in the XAML? For example: public class MyForm { private MyComplexObject complexObject; public MyForm() { InitializeComponent(); } public OnButtonClick(object sender, RoutedEventArgs e) { complexObject = new MyComplexObject(); } }...

Binding a DataGridView to multiple Tables in DataViewManager or DataSet

I have created three data tables by pulling data from an sql database. DT1, DT2, DT3. I have added these three tables to a data set, myDS. I have added relations between these three tables. I then dragged a DataGridView onto my form and I want to bind the three tables to the DataGridview. So I added my dataset DS to a dataview ma...

WPF Data Binding - Data Template is not Getting Values

I have the following DataTemplate: <DataTemplate DataType="{x:Type Client:WorkItem}"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <Co...