binding

WPF ComboBox SelectedValue not updating from binding source.

Here's my binding source object: Public Class MyListObject Private _mylist As New ObservableCollection(Of String) Private _selectedName As String Public Sub New(ByVal nameList As List(Of String), ByVal defaultName As String) For Each name In nameList _mylist.Add(name) Next _selectedName = defaultNam...

How do you bind the TextWrapping property of a TextBox to the IsChecked value of a MenuItem?

The TextWrapping property of the TextBox has three possible values: Wrap NoWrap WrapWithOverflow I would like to bind to the IsChecked property of a MenuItem. If the MenuItem is checked, I want to set the TextWrapping property of a TextBox to Wrap. If the MenuItem is not checked, I want to set the TextWrapping property of the TextB...

How to enable assembly bind failure logging (FUSION) in .NET

How to enable assembly bind failure logging (FUSION) in .NET. ...

Understanding Dynamic Binding

I understand how the implementation of dynamic binding works and also the difference between static and dynamic binding, I am just having trouble wrapping my brain around the definition of dynamic binding. Basically other than it is a run-time binding type. ...

WPF: Bind an element to two sources

I currently have two text boxes in which accept any number. I have text block that takes the two numbers entered and calculates the average. I was wondering if there was a way I could bind this text block to both text boxes and utilize a custom converter to calculate the average? I current am catching the text changed events on both text...

Detecting changes to the source data using the XmlDataProvider and a bound TextBox

I have a TreeView bound to an XmlDataProvider. The name of a node is reflected in the tree and the data of the node is in a TextBox. When you click on a tree item, it loads the data in the TextBox. What is the best way to determine when a user has changed the source data referenced by the XmlDataProvider. I would like to put an aster...

Java Binding Vs Manually Defining Classes

Hi, I have a XML schema that I will need to create Java classes for. It is not a particularly large schema, I'd say it will result in around 20 classes. I am trying to weigh up whether to use an automatic binding program (like the one supplied in JAXB or JiBX) or whether to manually write my own classes and use something like XStream fo...

In C++ if a member function is virtual when can static binding be used?

In C++ when can a virtual function use static binding? If it is being accessed through a pointer, accessed directly, or never? ...

WPF: Binding source is string with path to property

I am unsure if this is even possible, but I thought I would ask. First off, for my purposes, I require this to work in the C# portion and not the XAML part. This is what I have and it works: public partial class MyClass1 : Window { public MyClass2 MyClass2Object { get; set; } public MyClass1() { InitializeCompo...

C# Binding: How can I disable the CurrencyManager in BindingList so Current Item position is not maintained and not signaled?

Hi, I've got two ListBox'es that are databound to the same BindingList. The issue is that when changing the selected item from the GUI it's changing the position in the BindingList and then the BindingList signals the other ListBox to change its selected item. So I've got the two ListBoxes Selected Item also synchronized which is not ...

Anyone know of a set of C# bindings for FFMPEG?

Does anyone know of a set of bindings for C# to drive the FFMpeg library directly ? I could shell to ffmpeg.exe directly but I found it hard to sync/control as a separate process. any help would be appreciated. ...

Custom datatable with metadata used for binding to a Gridview?

I'm binding a datatable to a gridview control, and when I format each column I need to format the data based on whether that column has a particular custom attribute. In this case, a column can represent: a text box (in which case I just display the text from the textbox in the gridview), a checkbox (in which case I display "Checked" ...

Is there a way to bind the results of a public method in xaml.cs to a control in xaml?

Let's take a very simple example: In my window1.xaml, i have a label control named 'lblProduct'. In my window1.xaml.cs, i have a public method called CalculateProduct(Int Var1, Int Var2). CalculateProduct will, as you may have guessed, calculate the product of the variables passed in. I'd like to simply bind the results of 'Calculat...

How to just load the latest version of dll from GAC

Hi I've written a batch execution framework and in it I want (in some scenarios) to load an assembly from the GAC where there may be multiple versions but I just want to load the latest version. Is this even possible? TIA ...

silverlight 2 binding data to transforms?

I am working on creating a tag cloud in Silverlight 2 and trying to bind data from a List collection to a Scale transform on a TextBlock. When running this I get an AG_E_PARSER_BAD_PROPERTY_VALUE error. Is it possible to data bind values to transforms in Silverlight 2? If not could I do something to the effect of FontSize={Binding Weigh...

Why WCF class Binding doesn't have member ReaderQuotas?

I'm wondering why the class Binding in WCF doesn't have a property ReaderQuotas, while its subclasses BasicHttpBinding and WSHttpBinding does. This fact makes coding a little hard. For me, I use below code to extract binding information from MEX endpoint URI. However, it just got Binding. If I want to change ReaderQuotas of the binding,...

Why do I have an Issue with binding to an image from a control template?

Hi, I have a style for an items control that binds to an image in the target, it only appears if the target also binds to the image and I have no idea why.. can anyone shed any light on it for me? A simplified version of my style: <Style x:Key="testStyle" TargetType="ItemsControl"> <Setter Property="Control.Template"> <Se...

WCF bindings, basicHttpBinding versus wsHttpBnding

Hi, My WCF never worked with wsbinding, but when I switched to basic it worked fine. What do I have to do to make wsbinding work? Update when I say it didn't work, I mean the client was never able to consume the services endpoints. Do I have to add a username/password somewhere? ...

WPF - Pass the value of one control to a Converter to set the width on another control

I want to set the width of a TextBlock based on the width of its container, minus the margins set on the TextBlock. Here is my code <TextBlock x:Name="txtStatusMessages" Width="{Binding ElementName=LayoutRoot,Path=ActualWidth }" TextWrapping="WrapWithOverflow" Foreground="White" Ma...

WPF UserControl expose ActualWidth

How do I expose the ActaulWidth property of one of the components of my user control to users? I have found plenty of examples of how to expose a normal property by creating a new dependency property and binding, but none on how to expose a read-only property like ActualWidth. cheers. ...