EmbeddableControlViewModel in Arcgis Pro SDK

453
1
10-13-2017 01:56 AM
tanerkoka1
Occasional Contributor

Hi, We are developing tool's for Arcgis Pro, we are also using EmbeddableControlViewModel messages to inform users. But this messages is not in center. How can we center this message? Here is below our code and picture.

Embedded

var vm = OverlayEmbeddableControl as EmbeddableControlViewModel;

vm.Text = " Seçme işleminiz bittiğinde SPACE tuşu ile sonlandırın.";

Thanks.

Tags (1)
0 Kudos
1 Reply
UmaHarano
Esri Regular Contributor

Hi

When you use the Pro SDK Embeddable Control item template to create the control, the text is centered in the xaml - Horizontal and vertical alignments are set as "Center".  Code snippet created by the SDK Template give below.  Can you please share your xaml snippet in your add-in to see why the text is not centered.  Thanks!

Uma

XAML from the embeddable control item template:

<Grid>
  <TextBlock Text="{Binding Text}" HorizontalAlignment="Center" 
   VerticalAlignment="Center" Margin="4"/>
</Grid>‍‍‍‍
0 Kudos