views:

27

answers:

1

Hi, in my Surface application happens this: When I put an IdentityTag onto my TagVisualizer, a white cross-hair appears. This TagVisualizer adds no TagVisualization when adding a Tag, it just calls some methods in its "VisualizationAdded"-Event. In my other TagVisualizers before there were no cross-hair but they always had Visualizations added like this in the initialization of the TagVisualizer: tagDef.Source = new Uri("something.xaml", UriKind.Relative);

But how can I ged rid of this cross-hair? I cannot find anything about it. By the way, it looks like this: http://img80.imageshack.us/img80/4728/crosshairc.png

A: 

I've just run into the same problem because I didn't want a TagVisualization to display when I put a tag down (I wanted some items to be displayed in an already displayed librarystack). I solved it by setting the source of the ByteTagDefinition to null

        ByteTagVisualizationDefinition tvBlue = new ByteTagVisualizationDefinition();
        tvBlue.Value = 02;
        tvBlue.Source = null;
        MainTagVisualizer.Definitions.Add(tvBlue);

This gets rid of the crosshair - and I assume will work for IdentityTags, although I have not tried.

jackbot