0
голосов
1ответов
234 просмотров

css validation error moz binding?

Hi I'm a photoshop designer. I have some knowledge of css? Does anyone know what this validation error means? Am I missing something in the css? 38 marquee Property -moz-binding doesn’t exist : none URI : http://etcetc.co.uk /css/page.css 1085 input.postcode Lexical error at line 1081, colum...

0
голосов
1ответов
434 просмотров

How to bind a WPF CollectionItem's element's Visible state to its collection index?

Assume that the below XAML is a Style applied to a Path that is a visual element of an item data template for a collection, I want to bind to the collection in such a way that if this is the first element of a collection, the path is collapsed. How can I go about doing this? <Style x:Key="Pa...

1
голосов
2ответов
1975 просмотров

Silverlight - Button Content does not refresh when binding to same instance but modified

I have a Button and the button content is binded to a custom class called MyClass Button button = new Button(); MyClass myClass = new MyClass() { A = 1, B = 2 }; button.Content = myClass; stackPanel.Children.Add(button); .... // later, on my running code Button button = (Button)stackPanel.Chil...

1
голосов
2ответов
368 просмотров

Binding a wpf combobox to an element

A very basic question : I want to bind a wpf ComboBox to a selected element, so it displays the same value as the TextBox: <StackPanel DataContext="{Binding ElementName=comboBox1, Path=SelectedItem}"> <TextBox Text="{Binding Path=Id}"></TextBox> <ComboBo...

0
голосов
1ответов
505 просмотров

BitmapFrame in WPF ComboBox

I have a dialog that lets the user pick a custom icon. Loaded icons are displayed in a combobox in which the user makes the selection. Here is the XAML code for the combobox: <ComboBox Style="{DynamicResource IconComboBox}" ItemTemplate="{StaticResource IconTemplate}" ItemsSource...

3
голосов
1ответов
4197 просмотров

how to bind a property of a class which is in another assembly in WPF?

In WPF, is it possible to bind a property of class which is other assembly to the control which is in different assembly .Please help. Thanks

10
голосов
2ответов
3243 просмотров

GUI for Standard ML?

I started learning Standard ML recently out of curiosity. So what I know is that is has an efficient compiler (MLton) which allows us to freely use abstractions without worrying about performance. It would be perfect if I could do some GUI programming with Standard ML, too. Is there anything lik...

2
голосов
3ответов
1755 просмотров

Dynamic options dialog (using reflection)

Does anyone know of a good component (C# WinForms) which would allow creating an options (settings) form, given a custom class with a bunch of properties? I am not looking for something shiny, but something merely better than a property grid. I can easily take care of the visual part, but I simpl...

0
голосов
1ответов
115 просмотров

jQuery Binding Woes

I have a function: function foo() { console.log('i run!'); } And a binding to a button: $(function() { $('#myButton').click(foo); }); I am almost positive that the console should not show 'i run!' until the button is clicked. I have no other #myButtons on the page (I have forple checked...

3
голосов
2ответов
2932 просмотров

WPf : Binding with more than one property at a time

I have a list view in which I use binding to display my information. I use a simple data template. Is there a way to bind two data in one control. What I mean would to be replace something like : to something like Thanks

0
голосов
2ответов
2290 просмотров

How to set bindings for generic properties of custom activity in workflow foundation

I have a custom class called "Parameter" and a custom activity with generic collection property called "Parameters", and I want to set bindings for one of Parameters in the generic list of Parameters Property,I've tried with activitybind, but it is not working, is there any way to do it with work...

0
голосов
1ответов
1618 просмотров

How do I fix this? TwoWay databinding not working

I'm trying to wire up a slider and textbox such that the textbox controls the slider position and the slider position is reflected in the textbox. This is a basic two-way element-to-element binding. What I have - The slider position displays in the text box. Adjusting the slider is reflected by ...

1
голосов
1ответов
832 просмотров

Binding Dictionary.Keys.Count to a Label

I have a Dictionary and want to display the number of items in this dictionary with a Label, without updating the label manually each time I add or remove an item from the dictionary. I tried it with the Binding class: Binding bindingNodeCount = new Binding("Text", _graphDisplay.data.nodes.Keys...

0
голосов
1ответов
1659 просмотров

C# - DataSets and Data Binding in multiple Forms

I have the following scenario: A database A DataSet that is filled by the database Two Forms: The first Form contains a ComboBox that shows a certain set of categories. The ComboBox is binded to a DataTable "categories" in the DataSet. The second Form is supposed to be a category manager wher...

0
голосов
3ответов
1187 просмотров

Advanced combobox binding from code

Suppose I have a business object 'obj1' that has property 'P'. Let's also assume that I have a list of business objects: 'List<BussObj> list' and each BussObj object contains 2 properties: 'A' and 'B'. This list is bound to combobox: combobox.ItemsSource = list;. I would like to specify ...

26
голосов
3ответов
36633 просмотров

Binding to a WPF ToggleButton's IsChecked state

I would like to use a WPF ToggleButton to expand and collapse some controls in my application. How can I use XAML to accomplish this? I'm thinking that I could somehow bind the Visibility attribute of some controls to the ToggleButton's IsChecked state, but I do not know how to do this. Maybe I...

3
голосов
2ответов
3525 просмотров

Creating C# bindings

i have a library written in C++, how can i create bindings to C# so i can expose the functionality of that library to C#? And i don`t mean "port" (using SWIG possibly). I mean that when calling some functions in C#, pure C++ code is executed so it is fast. I've searched around in google but i cou...

0
голосов
2ответов
3171 просмотров

ASP.NET binding to a UserControl property

This should be really easy but I can't figure out how to make it work... I have an ASP.NET UserControl (.ascx) with the following property: public string LabelCssClass { get { return _labelCssClass; } set { _labelCssClass = value; } } I want to bind tha...

1
голосов
2ответов
2246 просмотров

asp.net mvc binding string to ienumerable<int></int>

just wondering if there is something built into asp.net mvc where I can override how a specific member is bound. For example, imagine I have a form: &lt;form ...&gt; &lt;input type="text" name="Things" /&gt; ... &lt;/form&gt; And I have the controller action that handles the postback: pu...

16
голосов
3ответов
18732 просмотров

Silverlight UserControl Custom Property Binding

What is the proper way to implement Custom Properties in Silverlight UserControls? Every "Page" in Silverlight is technically a UserControl (they are derived from the UserControl class). When I say UserControl here, I mean a Custom UserControl that will be used inside many different pages in ma...

0
голосов
1ответов
884 просмотров

WPF DataGrid - Problem Customizing a ComboBox

I have a Datagrid with a combo box bound column that works great as follows: &lt;tk:DataGridComboBoxColumn SelectedValueBinding="{Binding DefaultLocationID}" SelectedValuePath="LocationID" DisplayMemberPath="LocationName" Header="Defaul...

2
голосов
1ответов
2795 просмотров

WPF - Filtering/Searching multiple collection views within a treeview

I have a treeview that is bound to a collection and each item in the collection is bound to another collection. (using hierachle data templates) I would like to use the collection view .Filter event handler to search the tree. The problem is that I need multiple collection views. What would be ...

2
голосов
2ответов
4979 просмотров

Two-Way-Binding Possible In ASP.NET MVC?

Let's say I have a product object (pretty much empty) and I bind it to a Product view. Then I click update in the view. In my CustomModelBinder my bindingContext.Model is always null on the update request. Is there a recommended way of me retrieving the prior model at this point or do I always...

3
голосов
1ответов
11488 просмотров

WPF binding Dictionary<string list> to listView, ListBox how?</string>

how to bind Dictionary to ListView and Text box? namespace Models { public class DynamicList { #region Constructor public DynamicList() { _propDict = new Dictionary&lt;string, object&gt;(); dynimicListProps = new List&lt;DynimicListProperty&gt;(); } #endr...

68
голосов
3ответов
19347 просмотров

Let vs. Binding in Clojure

I understand that they're different since one works for setting *compile-path* and one doesn't. However, I need help with why they're different. let creates a new scope with the given bindings, but binding...?

0
голосов
2ответов
578 просмотров

Wpf binding to class with unknown properties count

I have class Products with unknown numbers of properties such as "Name", "Price" and so on. I retreive them only when parsing some txt file. How should I: write a Product class to emplement dynimicly adding Properies Bind this collection of Products with unknonwn numbers of properties to ListV...

14
голосов
5ответов
8782 просмотров

What's a good library to do computational geometry (like CGAL) in a garbage-collected language?

I need a library to handle computational geometry in a project, especially boolean operations, but just about every feature is useful. The best library I can find for this is CGAL, but this is the sort of project I would hesitate to make without garbage collection. What language/library pairs c...

6
голосов
2ответов
16207 просмотров

Binding UpdateSourceTrigger=Explicit, updates source at program startup

I have following code: &lt;Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300"&gt; &lt;Grid&gt; &lt;TextBox Text="{Binding Path=Name, ...

5
голосов
4ответов
6700 просмотров

How to bind GradientStop Colours or GradientStops Property in Silverlight?

I want to be able to have a dynamic Gradient in Silverlight, such as below: &lt;RadialGradientBrush GradientOrigin="0.20,0.5" Center="0.25,0.50" RadiusX="0.75" RadiusY="0.5"&gt; &lt;GradientStop Color="{Binding Path=GradientStart}" Offset="0" /&gt; &lt;GradientStop Colo...

40
голосов
10ответов
62615 просмотров

PropertyChanged event always null

I have the following (abbreviated) xaml: &lt;TextBlock Text="{Binding Path=statusMsg, UpdateSourceTrigger=PropertyChanged}"/&gt; I have a singleton class: public class StatusMessage : INotifyPropertyChanged { private static StatusMessage instance = new StatusMessage(); private Sta...