Application Tool Kit

SingleLineWidget and MyScript.Atk.Sltw.winmd

I'm trying to work with the single line sample but I first get the error "Cannot resolve Assembly or Windows Metadata file 'MyScript.Atk.Sltw.winmd'" and I think It's because of this that when I use the singlelinewidget and add the property "BaselinePosition" or "BaselineColor", I get the error "Failed to assign to property 'MyScript.Atk.Text.Sltw.SingleLineWidget.BaselineColor'. [Line: 35 Position: 125]" (the same happens when I add BaselinePosition. Are these errors related? can you help me?

(168 KB)
(229 KB)

Dear Diego,

The error message "Cannot resolve Assembly or Windows Metadata file ... " does not prevent from running the widget. On our side, we have identified the problem but have not yet decided when it will be fixed.

Regarding the baseline api, changes have to be done after the widget configuration, for instance this way:


public const float BaselinePositionPortrait = 50;
Widget.Configure("en_US", "cur_text");
Widget.BaselinePosition = BaselinePositionPortrait ;
Widget.BaselineColor = (Windows.UI.Colors.AliceBlue);


Please let me know if it helps.

Best regards

Thank you for the quick response. Yes, your answer works perfectly but I can't seem to find any information on how to set the BaselinePosition. I would like to send the baseline to the bottom of the SingleLineWidget or set top spacing.

Thank you!


Also, is there a way to change the predetermined language to es-ES?


Thanks Diego for your feedback,, 

In the 'Integration' section of the Single Line documentation, you can find how to add language resources:

Please download your language pack first on this page :

and proceed the same way than for EN_US

then in your code, just replace EN_US by ES_ES:


  // References resources copied as Content
      var resourcesDir = System.IO.Path.Combine(Windows.ApplicationModel.Package.Current.InstalledLocation.Path, "Resources", "conf");

      // The configuration is an asynchronous operation. Callbacks are provided to 
      // monitor the beginning and end of the configuration process.
      // "es_ES" references the es_ES bundle name in conf/es_ES.conf file in your resources.
      // "cur_text" references the configuration name in es_ES.conf 
      SingleLineWidget.Configure("es_ES", "cur_text");


Hope it helps!

Thank you for the quick reply.
I've tried everything you send me but I still can't get the ATK demo for Windows to work in spanish, in fact every time I change it to es_MX or es_ES the SinglelineWidget won't even work, I don't get any result back in the textbox.


Could you please check the properties of each resource file as shown below? 

- Build action should be set to 'Content'

- copy to Output Directory should be set to 'Copy if newer'

It should solve the problem.

Best regards

Yes!! thank you very much!! that solved the problem!! I have one final question... Is the ATK sample limited about its features? because I've been following your videos and there are some features you did on the videos but are unable to perform in the ATK sample, for example create a second line, overwrite words, etc. Does this features come with the payed license?


I am surprised by your message, which video did you see? Using Single Line Widget, you cannot write several lines in the writing area, however, you should be able to overwrite letters. Don't hesitate to share screenshot if you face trouble. The ATK samples do not show all the api abilities, so I invite you to read the documentation regarding your use case to see if it meet your expectations!

You can of course ask any specific questions you may have.

Best regards

Yes, this one for example, on 0:47 the user makes a second line, not on the writing area but on the textbox above... is this possible on the ATK sample...? or only on the bought license? Also is it possible to incorporate the MathWidget and the SinglelineWidget into one writing area?

Thank you so much for all the help!


Dear Diego,

Indeed, if you refer to the video, you will notice a "carriage return" gesture is done.

This can be done in the ATK sample, just draw the gesture as done in the video. Any new written text will then be comitted on the new line.

Best regards,


Login or Signup to post a comment