Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting attached property
Message
De
03/07/2011 21:05:04
 
 
À
30/06/2011 08:23:58
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Versions des environnements
Environment:
C# 4.0
Divers
Thread ID:
01516846
Message ID:
01517232
Vues:
36
>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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform