I see there is an OpenCL binding for Java. Does this enable one to truly program in Java, using CPU / GPU etc. as processing cores, or does it merely give Java apps access to C++ OpenCL enabled methods?
Out of interest, is there an OpenCL binding for .Net?
...
I want to bind a column of my DataGrid to a nested property.
I have defined these two classes:
public class ViewObj
{
public cCar car { get; set; }
public string name { get; set; }
}
public class cCar
{
public int ps { get; set; }
public int wheels { get; set; }
}
The class cCar is a property of the class ViewObj.
...
Hi, I'm using the following code to enable the user to show or hide a photo description (#photoinfo) and a menu (.slidetable) using the up and down arrow keys. If one of these two divs is already open, pressing the opposite arrow closes that div before opening the other.
$(document).unbind('keypress');
$(document).keydown(function(even...
I would like to bind more than two different implementations of a class to a ListView and display the data in a Hierarchical structure (multi level).
Look at the Code below to understand where I'm coming from:
Thanks in advance
M.
public class AutoElements : CommonElements
{
public class results_dataset
{
...
I have an arrayCollection with strings in them, is there some way I can databind a RadioButtonGroup to the array collection? As we can do for combo boxes
var cBox:ComboBox = new ComboBox();
cBox.dataProvider = arrayCollection;
There is no RadioButtonGroup.dataprovider property. I know this has to be done manually, what is the most eff...
I'm working on my first true WPF MVVM pattern application.
Currently I have a number of ComboBoxes on various screens that are bound to Collection classes and properties of the relevant ViewModel class.
They always have an entry with the text <Add>, which is really an empty object class and I currently use it to trigger an AddNewObject...
Hello,
I am using Object as the data source to my Listview and trying to display data in a Hierarchical manner. I am not able to figure out how to bind these objects to my listviews. Below pasted is the code.
I am trying to place Listview inside another listview, inside another listview inorder to display data in a hierarchical manne...
ApplicationSetting: RenameSettings - System.Collections.Specialized.StringCollection - User - *wall of text"
<Application x:Class="app.App"
...
xmlns:properties="clr-namespace:app.Properties"
StartupUri="MainWindow.xaml">
<Application.Resources>
<properties:Settings x:Key="Settings" />
</Appli...
Here's my setup:
myTextField is bound to a key in the Shared User Defaults Controller. The user can only enter numbers in the text field.
Each time my application loads, I load default preferences (from the app's Resources folder) using [[NSUserDefaults standardUserDefaults] registerDefaults: ... ].
myMenuItem's title is bound to the s...
In Flex, how does one hook into a bitmap or bitmapdata variable so that a function is notified whenever the bitmap's data has changed (pixel has changed, or filter's been added)?
I tried setting up binding but it doesn't work.
There must be a way to do it, because I can bind an mx:Image to a bitmap via the 'source' attribute, and the...
The title basically says it for me... I need to be able to get a reference to a control inside my IValueConverter implementation. I have seen plenty of posts around MultiBinding, which Silverlight doesnt have.
Can I use the ConverterParameter somehow to get a reference to its self?
...
I am trying to connect two of the same app with winsock, but the connecting side has to use ConnectEx() which requires a bound socket. So the problem is that when I try to loop back using ip 127.0.0.1, I get error 10048(WSAEADDRINUSE).
Is there any way around this problem?
Thanks for any help
...
Currently trying to work my way through Chapter 4 of SAMS - Teach Yourself CORBA in 14 Days.
The code from the book seems to work, except rather than stopping as expected, it spits out "Couldn't bind StockServer: "
In an attempt to resolve this issue, I modified the book to use POA and I started tnameserv, but the issue remains.
Here ...
I read in "Thinking in java" in chapter "Polymorphism" about the concept of "Late binding" , i just wanna know if my understanding of this concept is true
Procedural languages know where is the function to execute before run-time for instance
if(condition){func1();}else{func2();}
So the address of each possible function is known ex...
I have a button on a toolbar that has its command set to "MyControl.Print" (for example).
In the control the command is added to the command bindings including both the Execute and CanExecute.
The control is within a window with other controls docked appropriately.
I am finding that for the Print button to be enabled I have to "select" ...
Hello All,
JAXB Generated classes only capture the structural information from the XML schema that is used to generate the classes, but they ignore any additional constraints on the data e.g allowed set of values(enumerations), max value allowed etc. Does it mean that if i do not have a schema i can only validate structural information a...
Hi!
I try to implement PrepareContainerForItemOverride method of ItemsControl. It will put items to TextBox. It works nice, but how can I binding an item to the textbox text property? One way mode works nice, but when I want two way mode, I have to know the path.
Here is my code:
protected override void PrepareContainerForItemOverride...
When I start my app I get alot information like this:
System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=Period; DataItem=null; target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String')
System.Windows.Da...
<UserControl.Resources>
<DataTemplate x:Key="MyCustomTemplate">
<StackPanel Orientation="Horizontal">
<Label Content="{Binding Path=ID}"/>
<Rectangle Height="18" Width="20" />
</StackPanel>
</DataTemplate>
</UserControl.Resources>
<Grid>
<ListBox x:Name="userListBox" ...
This question relates to this question.
I have a EF model like this.
Using Silverlight 4 I have an application showing questions to the user, defined through the QuestionSet. If a question has more than one answer alternative, a ComboBox is rendered. If only one alternative is given, a TextBox is rendered, in which the user can put fre...