I want to use prosody or maybe another xmpp server to test my xmpp bot. I want it to only accept connection from the address/localhost(don't want to configure firewall to block access). I would like to know the easiest way to accomplish this.
...
I got two Comboboxes and both of them have binding with the same Source.
<ComboBox ItemsSource="{Binding Source={StaticResource UsersViewSource}}"
And when I change something in the first one, it reflects also to the second one. And I dunno how to keep their SelectedItem values separately, using the same ItemsSource.
...
The jQuery documentation for the .toggle() method states:
The .toggle() method is provided for convenience. It is relatively straightforward to implement the same behavior by hand, and this can be necessary if the assumptions built into .toggle() prove limiting.
The assumptions built into .toggle have proven limiting for my curren...
Hello all.
I'm writing a one-window UI for a simple ETL tool. The UI consists of the window, the code behind for the window, a view model for the window, and the business logic. I wanted to provide functionality to the users to save the state of the UI because the content of about 10-12 text boxes will be reused between sessions, but ...
Hi All,
This might be something very straight forward and I really think it should work as is, but it doesn't... I have the following scenario:
var itemSource = new Binding
{
Path = new PropertyPath("ItemList"),
Mode = BindingMode.OneTime
};
comboBox.SetBinding(ItemsControl.ItemsSourceProperty, itemSource);
ItemList ...
I have an NSTextField in my view. Its value is bound to an NSNumber *number in my controller. The controller simply calls through to the model (value) to get the appropriate value.
// In the controller
- (NSNumber *)number {
return [NSNumber numberWithFloat:[model value]];
}
- (void)setNumber:(NSNumber *)aNumber {
[model setValu...
Hello,
i have a class 'MyTextBox' that derives from the default TextBox in Silverlight. This class currently contains no additional code.
I set up a binding in xaml to bind the Text-Property of MyTextbox to another Textbox to reflect the input made in the Textbox. The effect is that MyTextBox doesn´t update and not display the text of...
Consider this source:
public partial class FormTest : Form
{
private Test test { get; set; }
public FormTest()
{
this.InitializeComponent();
this.test = new Test();
this.text_box.DataBindings.Add(new CustomBinding("Text", this.test, "some_int", false, DataSourceUpdateMode.OnPropertyChanged));
}
...
I have a WPF UI that is bound to an object. I'm using a ValueConverter to convert a property to a specific image by a business rule:
public class ProposalStateImageConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
var proposal...
Given an XML schema (XSD) and arbitrarily many sample files (XML) based on that schema, I need to create an XML parser/binder to load those files. The parser must be available from within a C++ program.
All open source or commercial tools I looked at do not support keyrefs, which are heavily used in the XSD at hand.
Do you know any too...
I have a datagrid on a view that is bound to a viewmodel. When I initialze the view, the datagrid is populated with data from the viewmodel (ObservableCollection) as it should. However, with I try to do a search against the data, the datagrid does not get refreshed from the viewmodel. When I breakpoint the code in my viewmodel, I can see...
Hi all
Is it possible to specify the position of the mouse as the value of the Parameter property of a Command in XAML. Something like the following:
<UserControl.ContextMenu>
<ContextMenu>
<MenuItem Header="Create Link"
Command="{Binding CreateLink}"
CommandParameter="{Bi...
Hi,
I am loading an embedded swf file into a Flex 3 application and I would like to pass some data that is bound to my flex app to the embedded flash.
The problem is that I can't seem to get a reference to the bound data at any point in the Flex load time right up until the applicationComplete event (which I believe is the last event) ...
Hi
I have problems with my keyup binding when cloning an element. Here's the scenario:
I have an html markup like this:
<tr class="rijbasis">
<td>
<input type="text" class="count" />
</td>
<td>
<span class="cost">10</span>
</td>
<td>
<span class="total">10</span>
</td>
</tr>
I'm binding an keyup...
Hi everybody!
Building my first SL MVVM application (Silverlight4 RC) and have some issues i don't understand.
Having a WPF background i don't know what is going on here:
ViewModel has several properties, in which one is called SelectedRecord. This is a get only property and is defined like this:
public Culture SelectedRecord { ...
If i use some really simple code like :
$('#elm').tipTip();
It will do what the plugin is intended for. Is there a way to destroy this binding to the plugin tipTip() will no long bind itself to this element?
UPDATE
The reason is, it's not that I want to stop the tips from popping up, I have one main data div that the user sees, and ...
Hi,
I have a particular situation:
a service started by a broadcast receiver starts an activity. I want to make it possible for this activity to communicate back to the service. I have chosen to use AIDL to make it possible. Everything seems works good except for bindService() method called in onCreate() of the activity. bindService(), ...
I am working on a group project in vb.net, in which all my team members are working on individual tables of a database. All of us are using binding navigator,where the GUI is created by drag and drop from the table.
Is it possible to attach all these pieces together with imports or references?
Will the changes made to the database whil...
Hi Guys
I´ve got a ListView which is bound to the ObservableCollection mPersonList. The Class Person got an enum Sex. What i want to do is to set the background of the ListViewItem to green if the person is male and to red if the person is female.
Thanks for the answers!
i tried it like this but whats wrong with it?
<Style x:Key="Cust...
Hello,
I need to use reflection to get the binding value in a control that is a DataGridTemplateColumn (e.g HyperLinkButton). Does anyone know how I might do this? It seems simple enough to do this with a TextBlock because it has a “TextProperty” dependency property, but I can’t seem to get a binding expression from a control that does ...