dependency-properties
Setting Style property in code - dependency property FontSizeProperty name does not exist in current context in silverlight library
This is similar to my previous question, but that solution did not solve this problem. fontSizeProperty is not being recognized when I move a method from my Silverlight MainPage code behind (which wo[详细]
2023-03-22 20:39 分类:问答Create composite DataContext in XAML for a Usercontrol
I am trying to create a composite DataContext for a UserControl. Basically I have a control which has Order and Package properties and I wanted to create the composite object representing this datasou[详细]
2023-03-22 16:51 分类:问答How can I know that the binding of a dependency property has changed?
As mentioned in this question, there are at least two ways by which I can be notified that the value bound to a dependency property has changed:[详细]
2023-03-22 07:21 分类:问答Update of a Dependency Property when variable or field on which it depends on changes
What I need to do is? I need to make one expression on which dependency property should depends on. Suppose as per below:[详细]
2023-03-20 13:46 分类:问答Binding to a property name via DependencyProperty string
I\'ve created a UserControl with an ItemContext DependencyProperty. This property contains the name of the property of my DataContext object the Control\'s text property should bind to.[详细]
2023-03-19 09:42 分类:问答How do I programmatically read the value of an attached dependency property?
So I have a Button with an AutomationId (used by Microsoft UI Automation) like so: <Button Name=\"myButton\" Automat开发者_如何学JAVAionId=\"myButtonAutomationID\"[详细]
2023-03-19 04:49 分类:问答Validating input which is databound to a DependencyProperty - Silverlight
My problem: I would like to validate the user input of a TextBox using the control\'s ValidatesOnExceptions property.[详细]
2023-03-19 04:37 分类:问答Silverlight for windows phone 7 custom textbox usercontrol text property returning null
I am making an application for Windows Phone 7, and i ran into the following problem: When I make a usercontrol that contains a textbox, and make a DependencyProperty to be able to databind it, the pr[详细]
2023-03-18 10:05 分类:问答Dependency property callback does not work
I have the following code: private static readonly DependencyProperty IDProperty = DependencyProperty.Register([详细]
2023-03-17 23:07 分类:问答MEF ExportFactory<T> - Any way to pass a parameter value prior to creating an export?
Factory.CreateExport() create\'s a ExportLifetimeContext<T> Is there any way to actually pass in a parameter to it so it creates it with a parameter. I found some example code that wasn\'t exa[详细]
2023-03-17 04:05 分类:问答