开发者

How to create ← in XAML

How to create ← (←) in XAML? I want to create b开发者_运维问答ackspace button.


If directly entering does not work, try

←


I am certain there must be a better way than this, but you can just use the special character directly in the xaml.

I was able to cut and paste a back arrow into the content of a text block and it displayed correctly.

    <TextBlock Height="23" Width=20 HorizontalAlignment="Left" Name="textBlock1" Text="" VerticalAlignment="Top" >
        ←
    </TextBlock>

So you should be able to use that text block as part of the template for a control.

I'm not sure exactly what you need, but I think it would give a better effect to use an image for the back arrow instead of using text.


The encoding of the files are UTF-8 so you can just write in the arrow right in the file.

e.g.,

<Label>←</Label>
<Label Content="←" />
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜