|
I've got a WPF Control that exposes one of it's children (from it's ControlTemplate) through a read-only property. At the moment it's just a CLR property, but I don't think that makes any difference.
I want to be able to set one of the properties on the...
Started by Swythan on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
How do you make a DP on ChartControl that affects XAxis? .
You have to do something like that :
<local than setting a property on the Axis object.
But not when you define the value of the property.
|
|
Hi there I basically need a function with the following signature
Expression<Func<T, object>> GetPropertyLambda(string propertyName)
I have made a few attempts but the problem arise when the property is nullable
it goes something like this...
Started by Miau on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Try your method with a property of type decimal (not Nullable<decimal>.
But rather with value types.
|
|
Consider:
SELECT id_post FROM post_property WHERE id_property = 1 AND id_property = 2
Sure you're thinking to use IN()
SELECT id_post FROM post_property WHERE id_property IN (1,2)
But that give me 2 rows as result, and I just need to get all the id_post...
Started by Sanbor on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Using the where clause id_property = 1 AND id_property = 2 will never give you ....
Id_property IN (1, 2)
is equivalent to
id_property = 1 OR id_property = 2
NOT this:
id_property = 1 AND id_property = 2 .
|
Ask your Facebook Friends
|
I have a workflow with a property in it, declared like this:
public Person userAccount {get;set;}
Person is a class with it's own properties (like Person.Name) and with WF I can bind to the userAccount property fine yet I can't seem to bind to the userAccount...
Started by Robert MacLean on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Example.
Your path property would just need to be a set correctly.
Editor has some issues doing it.
|
|
I have a WPF ListBox control and I'm setting it's "ItemsSource" to a collection of item objects. How can I bind the "IsSelected" property of the ListBoxItem to a "Selected" property of a corresponding item object without having an instance of the object...
Started by BrandonS on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
ListBox.ItemContainerStyle> <Style TargetType="{x:Type ListBoxItem}"> <Setter Property="IsSelected(); //The path to the property on your object binding.Path = new System.Windows.PropertyPath("Selected(); //The IsSelected DP ....
|
|
Is it possible to set the property of one bean by reading the property of another bean? For instance, suppose I had:
class A { void setList(List list); } class B { List getList(); }
I would like Spring to instantiate both classes, and call A's setList...
Started by landon9720 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
A"> <property name="list"> <bean class="org.springframework.beans.factory.config.PropertyPathFactoryBean"> <property name="targetObject" ref="b"/> <property name="propertyPath" value="list"/> </bean....
|
|
Hi
I need to load some properties into a Spring context from a location that I don't know until the program runs.
So I thought that if I had a PropertyPlaceholderConfigurer with no locations it would read in my.location from the system properties and ...
Started by Paul McKenzie on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
This isn't satisfactory, but you could="org.springframework.beans.factory.config....
The problem here is that you're trying to configure a property place holder using property} placeholder until it's configured the property-placeholder.
|
|
What's the simplest way to code against a property in C# when I have the property name as a string? For example, I want to allow the user to order some search results by a property of their choice (using LINQ). They will choose the "order by" property...
Started by Jeremy on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Now the only repeated call; it's a life saver for high-performance data binding and dynamic property operations on business objects.
));
This avoids repeated calls to the reflection API for obtaining the property.
|
|
In WPF, what, really, does it mean to be a "dependency property"?
I read Microsoft's Dependency Properties Overview , but it's not really sinking in for me. In part that article says:
Styles and templates are two of the chief motivating scenarios for ...
Started by Cheeso on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The dependency property system....
In WPF, what, really, does it mean to be a "dependency property"?
In order to be a dependency property, the property must actually be defined as a DependencyProperty , statically, on the class.
|
|
I have a piece of code that I would like to set as part of the get {} section of a property. However, inside this section I call a SQL query.
I would like to know if the call will be made when the object is constructed (i.e. Object t = new Object()) or...
Started by WedTM on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
The exception to this is if you are calling the getter of the property....
It will not be called when a new object is created .
The code inside the get section of your property will only be called when the getter of the property is called.
|