Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting attached property
Message
From
03/07/2011 21:05:04
 
 
General information
Forum:
ASP.NET
Category:
Windows Presentation Foundation (WPF)
Environment versions
Environment:
C# 4.0
Miscellaneous
Thread ID:
01516846
Message ID:
01517232
Views:
35
>Hi,
>How to implement this:
private void SetAttachedProperty(FrameworkElement fe, string propertyName, object value)
>        {
>        }
when called, for example, with:
SetAttachedProperty(new TextBlock(), "Canvas.Left", 50);
>>>>>>

I was watching this one to see if any one had an answer. So far no joy :-(

Have you considered using XamlReader/Writer for this instead of rolling your own property setter?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform