View Issue Details

IDProjectCategoryView StatusLast Update
0001380NoesisGUIUnity3Dpublic2019-04-18 17:16
ReporterelecmanAssigned Tosfernandez 
Status resolvedResolutionno change required 
Product Version2.1.0f1 
Target VersionFixed in Version 
Summary0001380: Request support to read Canvas.Top and Canvas.Left form a text block
DescriptionA text block can have a Canvas.Left and Canvas.Top property like this:

<TextBlock Name="speed_C" Text="300" FontFamily="#AirbusMCDUa" FontSize="10.8030383017496" Foreground="White" Canvas.Left="4.21134486413502" Canvas.Top="133.007815201125"/>

Currently the API does not allow reading these properties in a TextBlock
Steps To Reproduce-Create a TextBlock with a Canvas.Top and Canvas.Left property.

-In Unity, use try to get access to these properties in code. This is not possible.




2018-12-24 10:37

manager   ~0005376

Last edited: 2018-12-24 10:38

View 2 revisions


Canvas.Left and Canvas.Top are attached properties, defined in the Canvas panel class.
There are two ways to get the value of these properties from a specific instance (of any dependency object type):

- Using public Canvas static methods:
float left = Canvas.GetLeft(element);
Canvas.SetLeft(element, newLeft); // to set the value

- Using the generic GetValue/SetValue from DependencyObject:
float left = (float)element.GetValue(Canvas.LeftProperty);
element.SetValue(Canvas.LeftProperty, newLeft); // to set the value

Do you have any trouble using any of these?

Issue History

Date Modified Username Field Change
2018-12-22 04:30 elecman New Issue
2018-12-22 04:30 elecman Tag Attached: Unity
2018-12-24 10:37 sfernandez Assigned To => sfernandez
2018-12-24 10:37 sfernandez Status new => feedback
2018-12-24 10:37 sfernandez Note Added: 0005376
2018-12-24 10:38 sfernandez Note Edited: 0005376 View Revisions
2019-04-18 17:16 sfernandez Status feedback => resolved
2019-04-18 17:16 sfernandez Resolution open => no change required