I think the answer posted for this MSDN question will get what you are looking for.
That is the one I want. Thanks for your help. – Kuman Nov 14 '09 at 12:43 Yes but DON'T use the code from the MSDN post as-is: It is much more efficient if you replace the GetLocalValue(b, Button.
ContentProperty) with b. ReadLocalValue(Button. ContentProperty) and eliminate the extra method.
GetLocalValueEnumerator() is slow. – Ray Burns Nov 14 '09 at 18:02 It work well. Thanks.
– Kuman Nov 15 '09 at 8:39.
You can use the FrameworkElement. SetResourceReference method: MSDN: msdn.microsoft.com/en-us/library/system.... Provided your xaml has this: You can write this in the code behind: TB. SetResourceReference(BackgroundProperty, "ColorA").
This is a great answer on how to create a DynamicResource binding in code. Not an answer to the OP's question, unfortunately, but well written & may help others who get here looking for this answer. +1 – Ray Burns Nov 14 '09 at 17:57.
I think my Question wasn't clear. I want to get What Reource Binding was done to the "TB" in Xaml by code. But the aren't any TB.
GetResourceReference. I Want some think like that. Where that Binding expression is kept in WPF.
I need to get the TB's BackgroundProperty was Binded to Which( answer "ColorA") key? Thank a lot for sudden response.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.