I have a textbox that is bound (oneway) to a datatable that updates a couple of time a second.
So the textbox value continually reflects changes in datatable.
When I enter the textbox to manually set a value, the binding causes the value to continually be overwritten. How do I stop this?
When I have entred a value (textbox lost focus) I...
Hi All,
A have an Order class with a ReadOnly TotalPrice property that calcutaltes from other properties of the class. Throught an ObservableCollection I make a binding to a DataGrid. The code is below.
Order Class
public class Order
{
public String Name { get; set; }
public Double Price { get; set; }
public Int32 Quantity...
I currently have a windows form application composed of a textbox and two buttons (previous and next) The textbox is bound to the name of a Person on a list. Previous and Next button changes the position of the BindingManager by 1 (either increment or decrement).
using System;
using System.Collections.Generic;
using System.ComponentMo...
I have the following xaml:
<ItemsControl>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Button Content="{Binding Name}"></Button>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
In my code I have an event that gives me access to the button. How can I take the button object and get the ob...
Why will not this work:
<Button Width="200" Height="50">
<Button.Style>
<Style TargetType="Button">
<Setter Property="Height" Value="{Binding RelativeSource={RelativeSource Self}, Path=Height}"/>
<Setter Property="Background" Value="Blue"/>
<Style.Triggers>
<Trigger Property="Button.Is...
The following code should bind the "value" property of the text box to the string "Test".
Instead the binding expression "{{test}}" is left unparsed as the text box content.
The binding expression within the sibling element is parsed correctly however.
<html>
<head>
<title></title>
<style type="text/css">
.sys-templa...
Hello,
i have a jlabel and using netbeans i have bound it to a property on the form.
the problem is how do i refresh the binding values when the property that the label text has been bound to has changed.
this.firePropertyChange works but smells bad... i would like someonething like this.bindingGroup.refresh or this.refresh that will up...
I am trying to figure out how to bind a WPF DataGrid's column header and main data to a data source using an MVVM pattern. The result I'm looking for would look like this:
I've successfully styled the headers here, but I'm unsure how to bind the values in the headers. Specifically, the IsChecked property of the check-box, the selected...
Hi,
I am working on a legacy Java Enterprise server project, and currently I am trying to set up nightly builds. We are using Maven 2, JBoss 4.2 and Bamboo. The idea is that we have a Bamboo agent on one of our dev servers, and the Maven build is configured to hard deploy the resulting .ear file, then restart the server. (We can't use s...
I have a WPF Window with several TextBoxes on it.
I have an XSD dataset attached to a SQL server database, and the window is bound to a row from the tableadapter:
public partial class PersonForm : Window
{
public PersonForm(int id)
{
InitializeComponent();
MyDatasetTableAdapters.personTableAdapter tableAdapter ...
I have the following code running to create a dropdown accordion that reveals the hidden div "#top_mailing_hidden" when the div "#top_mailing" is hovered. The problem is that when I interrupt the animation by mousing Out and then mousing Over again it aborts the animation and screws up.
I have the following code:
//Top Mailing List Dr...
I've created a Form using DevExpress' BarManager and PanelControl. Inside the Panel Control is a XTraTabControl that in turn contains a TextEdit. This textbox is bound to a list of Individuals' name.
In the BarManager, I have two buttons Previous and Next. They are used to increment or decrement the BindingManager's position.
My p...
What I try to do: I have a list of person profiles in the background that I use with my combobox. The trigger is to change the background based on the gender of the person (bool Role.IsFemale). When I handle the SelectionChangedEvent in the code, I can see the Selectedvalue is true or false. I could now change the background directly or ...
I'm using Silverlight 3 with RIA services. I've got a simple RIA DomainDataSource named "source" with a couple of ListBoxes bound to it. The method that the source queries returns a simple graph of objects: a collection of Parents, where each parent has a collection of Children.
My UI has two listboxes. ParentListBox binds ItemsSource ...
Hi.
I have user control to which I bind a viewmodel, this implements the INotifyPropertyChanged, thru the datacontext, this has a property that is a IList that I bind to the itemsdatasource of a grid, then on the code, in another class I add some values to the list, but the UI doesn't reflect this change although in debug I can see that...
I'm creating an attached behavior in order to set a regular property of a class:
public class LookupHelper
{
public static readonly DependencyProperty ItemsSourceProperty = DependencyProperty.RegisterAttached("ItemsSource", typeof(object), typeof(LookupHelper), new UIPropertyMetadata(null, OnItemsSourceChanged));
private static...
Hey everyone,
Within a repeater control, is there a way of de-binding certain items before the page is rendered?
Currently we have a collection of items being bound to a repeater and if the item is not part of the current language, we hide the item.
I'm wanting to be able to do a count on the repeater and get a valid number back. A co...
I have a dialog with two textboxes and a button. The button's IsEnabled style is set dynamically based on whether the data validation of the two textboxes succeeded.
<Button Content="Finish" x:Name="btnFinish" Click="btnFinish_Click">
<Button.Style>
<Style TargetType="{x:Type Button}">
<Setter Pro...
I have several menu items like this:
<navigation:RadMenuItem Header="New Assignment">
<navigation:RadMenuItem.Icon>
<Image Source="/Images/New_Assignment.jpeg" Width="20" Height="20" />
</navigation:RadMenuItem.Icon>
</navigation:RadMenuItem>
<navigation:RadMenuItem Header="New Course">
<navigation:RadMenuItem.Icon...
I'm having trouble using values from an XML file as parameters for a web service request.
I'm using an HTTPService to load the config file:
<mx:HTTPService id="configService" url="config.xml" resultFormat="e4x" result="configLoaded(event)"/>
The XML file looks something like this:
<root>
<data>
<wsdl>https://WEBSERVICEURL.foo/ws...