The code I'm working on is part of a WPF application that should display a set of stacks of playing cards that the user can interact with. So there's three UserControls I'm working with:
MainControl
CardStackControl
CardControl
In MainControl.xaml:
<StackPanel
Grid.Row="0"
Orientation="Horizontal">
<Ite...
I'm far from a python expert but I hear this one all the time, about its C/C++ bindings. How does this concept work, and how does Python (and Java) bind to C-based APIs like OpenGL? This stuff has always been a mystery to me.
...
I've create user control like this:
public partial class View
{
public View()
{
InitializeComponent();
}
public static DependencyProperty NameProperty = DependencyProperty.Register("Name", typeof(string), typeof(TeaserView) );
public string Name
{
get { return...
I'm trying to figure out how to update an NSTextField programatically.
I've figured out how to get the current value of the Text Field from Python:
myVar = objc.IBOutlet()
....
self.myVar.stringValue()
How do I set the value of myVar from the Python side and have the GUI update? I'd like some sort of two way binding (like {myVAR} in...
Hi,
I'm not sure I'm phrasing this properly, but basically I do this in my main app delegate:
Application *app = [[Application alloc] initWithApplication:fullPath]
The Application class has an initWithApplication method that takes in the path of an app and then sets the properties for appPath, name, etc. Then I add the new "app" objec...
Can you bind to a local variable like this?
SystemDataBase.cs
namespace WebWalker
{
public partial class SystemDataBase : Window
{
private string text = "testing";
...
SystemDataBase.xaml
...
<TextBox
Name="stbSQLConnectionString"
Text="{SystemDataBase.text}">
</TextBox>
??
Text is set to the loc...
Lets say we have the following code in XAML (the datagrid is bound to an ObservableCollection and the column to a property of the ObservableCollection:
<WpfToolkit:DataGrid
ItemsSource="{Binding Path=Collection}"
HorizontalScrollBarVisibility="Hidden" SelectionMode="Extended"
CanUserAddRows="False" CanUserDeleteR...
So here's what I'm trying to do in a little nutshell, I'm just gonna start with code and it will most likely make sense.
<bl:InnerGlowBorder x:Name="glow" InnerGlowColor="Teal">
<bl:InnerGlowBorder.Style>
<Style TargetType="bl:InnerGlowBorder">
<Style.Triggers>
<Da...
I have a user permissions screen and I would like to have a number of images that represent each permission for the user i.e. a tick for enabled and a cross for disabled.
The permissions will be shown in a grid with View, Add, Edit and Delete along the top and the category along the left-hand side.
View | Add | Edit | Delete...
I'm trying to add Validation to a Silverlight 3.0 TextBox but cannot seem to find and example which is complete, and not missing functionality that makes it work, I have this property:
''' <summary>Tag</summary>
''' <value>String</value>
''' <returns>String</returns>
''' <remarks>Contains Validation</remarks>
Public ...
I feel as though this question is a duplicate, but I haven't found one on the subject (specifically) yet so I'll ask anyway:
What Python/C++ binding libraries would you recommend and why? In addition, what has been your experience using it or any others you have tried? Also, what binding features do they contain and has your use of them...
Hello,
I'd like to do following:
public List<Users> PreLoadedUserList { get; set; }
public List<RowEntries> SomeDataRowList { get; set; }
public class Users
{
public int Age { get; set; }
public string Name { get; set; }
}
public class SomeDataRowList
{
public int UserAge { get; set;
}
Now my (WPF Toolkit) DataGrid look...
Hi,
I am new to spring MVC.In my application I need to bind dynamically generated textbox contents to a list of beans dynamically.I went through the spring mvc book for binding to lists.But before binding, we must not only initialize
the collection, but populate it with objects.
In my case I dont know the size of the list initially.
...
hello everybody,
i'm new to wpf and this is my first attempt of creating a custom user control. its purpose is to display two values (myText1 and myText2) with their corresponding images (myimage1, myimage2). sometimes, one of these values is not set and therefore oneimage should be hidden as well. here's my code so far:
Window1.xaml
...
Not an easy question to decipher, so let me boil it down. I'm trying to convert an MXML component to an ActionScript Class. The component consists of a Form with a TextInput, TextArea, and two buttons - Save and Cancel, and a Validator for the TextInput, and other logic to handle events that occur. This component is currently extended by...
hello,
i've got two comboboxes with the same content. the user should not be allowed to choose the same item twice. therefore the comboboxes' contents (= selectedindex?) should never be equal.
my first attempt was to comapare the selectedindex with a datatrigger to show/hide a button:
<DataTrigger Binding="{Binding ElementName=comboBo...
Hi, I need some help from someone who understands JBoss Hostname Binding. I think the solution is easy, although it's complicated to explain.
I am deploying an application using JBoss (v4.2) and am having troubles configuring the application.
This application has two parts, a web site on port 8080 and web services on port 8080 using S...
Hi guys,
I am creating a FlippingBook Silverlight application and I have run into a snag that I cannot seem to solve.
The problem is with Asyncrously loaded Images. I have written a class that loads an image from a webaddress and stores it in a BitmapImage object.
I bind to this image object to the Image Source on the silverlight imag...
In some languages, there are things like these:
Lisp:
(let ((x 3))
(do-something-with x))
JavaScript:
let (x = 3) {
doSomethingWith(x);
}
Is there anything like this in C#?
...
I have a listbox that simply binds to a collection. The collection has a child collection (StepDatas). I would like to bind to a count of the child collection but with a WHERE statement. I can bind to ChildCollection.Count but get lost when needing to add the lambda expression. Here's the XAML:
<ListBox Height="Auto" Style="{StaticR...