label-control

Is there no Label control in Silverlight?

眉间皱痕 提交于 2019-12-30 18:45:22
问题 I can't seem to find a Label control in Silverlight. I get compile errors if I put anywhere in my XAML. 回答1: TextBlock is roughly the same as a Label from WinForms. As per MSDN: The TextBlock control is the primary element for displaying text in Silverlight based applications. Provides a lightweight control for displaying small amounts of text... EDIT : I just noticed your tag for Silverlight 3. Label should be built into Silverlight 3 so are you sure your not using 2? You might want to

Winform label control text changes place

拟墨画扇 提交于 2019-12-04 04:46:01
问题 I have a labelControl.Text ="My name:"; Result is :My name Symbols changes place. If I write "&= My name" , the result is =& My name . How do I stop it from changing places? 回答1: You need to set the RightToLeft property correctly. By default this should be RightToLeft.Inherit . But either your Form or your Label was set like: labelControl.RightToLeft = RightToLeft.Yes; You need to set it to RightToLeft.No or RightToLeft.Inherit (if the parent control has it set to No ). 来源: https:/

Winform label control text changes place

会有一股神秘感。 提交于 2019-12-02 00:40:09
I have a labelControl.Text ="My name:"; Result is :My name Symbols changes place. If I write "&= My name" , the result is =& My name . How do I stop it from changing places? You need to set the RightToLeft property correctly. By default this should be RightToLeft.Inherit . But either your Form or your Label was set like: labelControl.RightToLeft = RightToLeft.Yes; You need to set it to RightToLeft.No or RightToLeft.Inherit (if the parent control has it set to No ). 来源: https://stackoverflow.com/questions/48866523/winform-label-control-text-changes-place

Is there no Label control in Silverlight?

和自甴很熟 提交于 2019-12-01 17:29:57
I can't seem to find a Label control in Silverlight. I get compile errors if I put anywhere in my XAML. TextBlock is roughly the same as a Label from WinForms. As per MSDN : The TextBlock control is the primary element for displaying text in Silverlight based applications. Provides a lightweight control for displaying small amounts of text... EDIT : I just noticed your tag for Silverlight 3. Label should be built into Silverlight 3 so are you sure your not using 2? You might want to consider a TextBlock depending on how your using it. Again per MSDN : A Label control displays a caption,