Is there a Label control in WP7? I don't mind recreating it from scratch, but I don't want to reinvent the lug nut if I don't have to.
Labels are not supported, but you can use a TextBlock instead. It's not a direct replacement, however, and this post highlights some of the differences.
Even though TextBlock lives in the System.Windows.Controls namespace, it is not a control. It derives directly from FrameworkElement. Label, on the other hand, derives from ContentControl. This means that Label can:
- Be given a custom control template (via the Template property).
- Display data other than just a string (via the Content property).
- Apply a DataTemplate to its content (via the ContentTemplate property).
- Do whatever else a ContentControl can do that a FrameworkElement cannot.
But be aware! The use of Label is a way more heavy then TextBlock due to its Visual Tree. ...
According to this video (0:52) Label is unsupported.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With