这个论坛编辑器有什么问题! [英] What is wrong with this forum editor!
本文介绍了这个论坛编辑器有什么问题!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我从此页面复制了以下代码,并将其放置在现有的WPF应用程序窗口中:
I copied the following code from this page and placed it on an existing WPF application window:
<Button Width="100" Height="30" Content="Click Me!" ToolTipService.Placement="Bottom">
<Button.ToolTip>
<Border Margin="-4,0,-4,-3" Padding="10" Background="Silver">
<Border.BitmapEffect>
<OuterGlowBitmapEffect></OuterGlowBitmapEffect>
</Border.BitmapEffect>
<Label>This is a simple customization of tooltip</Label>
</Border>
</Button.ToolTip>
</Button>
推荐答案
在粘贴代码的同时,在文本框下方选择粘贴为代码"单选按钮.
While pasting the code select "Paste as code" radio button under your text box.
好,我我再试一次.仅供测试,这是我从上面的示例中复制的代码.选中了粘贴为代码"单选按钮(之前也是如此),并且选中了忽略文本中的HTML(适用于代码片段)"框:
< pre lang ="xml">& lt; Button Width =& quot; 100& quot;高度=&"30" Content =&"Click Me!& quot; ToolTipService.Placement =&底部&"& gt;
& lt; Button.ToolTip& gt;
<边界保证金=& quot; -4,0,-4,-3& quot;填充=&"10" Background =&银色& gt;
& lt; Border.BitmapEffect& gt;
< OuterGlowBitmapEffect& gt;</OuterGlowBitmapEffect& gt;
& lt;/Border.BitmapEffect& gt;
< Label& gt;这是对工具提示的简单自定义</Label& gt;
& lt;/Border& gt;
& lt//Button.ToolTip& gt;
& lt;/Button& gt;</pre>
ang!那真是令人讨厌.在我可以正确地通过XAML标记之前,发布启动该问题的问题毫无意义.关于此代码粘贴的事情有什么想法吗?
谢谢,
-迈克
OK, I am trying this again. For test only, here''s code I copied from your sample above. The "Paste as code" radio button is selected (it was before too), AND the "Ignore HTML in text (good for code snippets)" box is checked:
<pre lang="xml"><Button Width="100" Height="30" Content="Click Me!" ToolTipService.Placement="Bottom">
<Button.ToolTip>
<Border Margin="-4,0,-4,-3" Padding="10" Background="Silver">
<Border.BitmapEffect>
<OuterGlowBitmapEffect></OuterGlowBitmapEffect>
</Border.BitmapEffect>
<Label>This is a simple customization of tooltip</Label>
</Border>
</Button.ToolTip>
</Button></pre>
Dang! That''s downright annoying. Until I can properly past my XAML markup, there''s little point in posting the question that got this started. Any ideas on this code pasting thing?
Thanks,
-- Mike
这篇关于这个论坛编辑器有什么问题!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文