LowDown: I am trying to create a Document Viewer in WPF. It will allow the user to preview selected documents and if they want, compare the documents in WPF. So they can view them side by side.
The layout is this: Left side is a full list box. On the right side is a Collection or an Items control. Inside the items control will be a co...
I don't remember which blog I was reading, because it seemed academic at the time, but there was a library being discussed where you could take a two concrete classes and bind the properties together if the names matched. Think ASP.NET MVC model binding.
...
Hi,
I'm having trouble correctly binding a listbox to an XML datasource (text .xml file).
I'm learning how to use WPF and LINQ to XML by following the Microsoft example with the books list, which binds to an inline XML source, shown here...
http://msdn.microsoft.com/en-us/library/bb669149.aspx
What I am trying to do is change this a...
Ok, i got a viewmodel as follows:
public class PageViewModel
{
public Item Item { get; set; }
...
public PageViewModel
{ }
public PageViewModel(Item itemWebPage)
{
...
}
}
I use a form to edit this Item using a route like:
/Controller/Edit/43
The controller uses this code:
[AcceptVerbs("GET")]
p...
In my View I got a ListView bound to a CollectionView in my ViewModel, for example like this:
<ListView ItemsSource="{Binding MyCollection}" IsSynchronizedWithCurrentItem="true">
<ListView.View>
<GridView>
<GridViewColumn Header="Title" DisplayMemberBinding="{Binding Path=Title}"/>
<GridViewColumn Header="Name" Display...
<Style TargetType="{x:Type TextBox}">
<Setter Property="Margin" Value="1"></Setter>
<Setter Property="Background" Value="{x:Null}"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="ToolTip">
<Setter.Value>
<DockPanel Background="Gray">
<TextBlock Text="{Binding Source={...
I have seen a lot of codes regarding how to bind property in Flex project. Such as this code in Flex Help:
var watcherSetter:ChangeWatcher =
BindingUtils.bindSetter(updateMyString, myTI, "text");
However, I am creating Actionscript class within Actionscript Project, and I cannot import mx.binding.uti...
I have a custom implementation of WPF's ICommand, that executes its bindings in a BackgroundWorker, so that the UI stays responsive.
I would like to display a custom effect while the bindings are being executed. For now, the effect is simplified to setting command source's IsEnabled property to False. Later, our designer will come up wi...
Why is it in the following silverlight application that when I:
change the default text in the first textbox
move the cursor to the second text box (i.e. take focus off first textbox)
click the button
that inside the button handler, the property InputText still has the old value "default text"?
What do I have to do to get the bindin...
I'm currently working on my first WPF application, and I'm curious as to whether I'll hit a snag down the line with performance by doing something like this:
Dim binding As New Binding("PropertyOnObject.Property1.Property2.Value")
binding.Source = Object
vs doing
Dim binding As New Binding("Value")
binding.Source = Object.PropertyOnO...
Hello,
I have a comprehension question about Android Services. I have a Service that performs background http operations and a Activity that should display the current state of these http operations.
So I implementet the Binder interface and so on. I can call the bindService method and onServiceConnected of my ServiceConnnection is ge...
I am using E4X to bind some values from xml in flex 3.
There is a problem when xml tag's (or attribute's) name has special character in it: having xml content
var xml:XML = <tag>
<special-name att="val" />
</tag>
special-name could not be accessed using xml.special-name.@att because it is interpreted as subtraction, on the other ...
Hi,
I have a collection of hex strings that represent colours and I am binding a combobox's ItemsSource to that collection.
The combobox items are templated to have a filled rectangle with the relevant colour. I therefore need to use a converter to convert the hex value to a string. Easy enough.
However, Blend is telling me that this ...
I have a button that does something to the selected text in NSTextView. If nothing is selected then nothing happens when the button is pressed... so can the enabled property of a button be bound to whether or not some text is selected?
...
Hi
I have object created using jquery where each object has it's own binding.
function closeButton(oAny){
var div = create_div();
$(div).attr("id","btn_"+$(oAny).attr("id"));
var my_parent = this;
$(div).html("<img src='"+ my_parent._base_url +"/assets/images/close.gif'>");
$(div).click(function(){
alert("do some action here")...
Hi,
I was writing a simple login form, everything works fine (validation etc.) but I can't get the values, there's my code:
public function executeIndex(sfWebRequest $request)
{
$this->getUser()->clearCredentials();
$this->getUser()->setAuthenticated(false);
$this->form = new LoginForm();
if ($request->isMet...
What's (in simple terms) the difference between setting a binding (LET) and symbols (=variables) in common lisp?
...
My Company registered in certain services on the Web and are relying on the company's IP to use these services, Director asked me to allow some staff to enter these sites from outside the company, after authorized staff enter to comany's site.
How could they use the company's IP to allow them to browse services sites?
Do I need to use...
I am working on a large WPF project and during debug my output window is filled with these annoying warnings:
System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid > fallback value exists; using default instead.
BindingExpression:Path=HorizontalContentAlignment; DataItem=null; target element is...
I have a server application that binds to a port and listens on it. I've set up the router to forward the data on this port to the server.
Now, on the client side, I don't actually bind() the socket to any port, and I usually end up with a different port everytime. In that case, how can I prepare the router to forward that port to the c...