In UWP app, when you define a string resource in your resource file, the Name property of this string can be either "Name" or "Name.Property".
In xaml code, we use Uid attribute to associate controls to resource, but when we use resource in xaml code, we must add the specified property to the resource's name, in case the control don't know what property should be applied to the string resource.
This is the same in the code behind, you get the resource using
 var loader = new ResourceLoader();
 var resourceString = loader.GetString("txt_ok"); 
but you still need to set this resourceString to the Text property of a TextBlock for example:
txt.Text = resourceString;
So if you want to use the string resource directly in xaml code, you will need to  edit your resource file like this:

And you can now associate your TextBlock to your resource like this:
<TextBlock x:Uid="txt_cancel" />
Or like this (not 100% correct, it depends on the location of your resource file):
<TextBlock x:Uid="/Resources/txt_settings" />
Addition:
You can also define other property in your resource file for example like this:

And when you apply this resource for a TextBlock:
<TextBlock x:Uid="MyApp" />
You will see:
