前台:

    <StackPanel>
<TextBlock Margin="" TextWrapping="Wrap">
TextBlock with <Bold>bold</Bold>, <Italic>italic</Italic> and <Underline>underlined</Underline> text.
</TextBlock> <TextBlock>
<Hyperlink NavigateUri="https://www.google.com.hk" RequestNavigate="Hyperlink_RequestNavigate">
Click here
</Hyperlink>
</TextBlock> <TextBlock Margin="" TextWrapping="Wrap">
This text has a <Hyperlink RequestNavigate="Hyperlink_RequestNavigate" NavigateUri="https://www.google.com">link</Hyperlink> in it.
</TextBlock> <TextBlock Margin="" TextWrapping="Wrap">
This <Span FontWeight="Bold">is</Span> a
<Span Background="Silver" Foreground="Maroon">TextBlock</Span>
with <Span TextDecorations="Underline">several</Span>
<Span FontStyle="Italic">Span</Span> elements,
<Span Foreground="Blue">
using a <Bold>variety</Bold> of <Italic>styles</Italic>
</Span>.
</TextBlock> <StackPanel x:Name="sp_text"> </StackPanel> <!--<StackPanel Margin="">
<Label Content="_Name:" Target="{Binding ElementName=txtName}" />
<TextBox Name="txtName" />
<Label Content="{Binding ElementName=txtMail, Mode=TwoWay, Path=Text}" Target="{Binding ElementName=txtMail}" />
<TextBox Name="txtMail" />
</StackPanel>--> </StackPanel>
   <StackPanel>
<TextBlock Margin="" TextWrapping="Wrap">
TextBlock with <Bold>bold</Bold>, <Italic>italic</Italic> and <Underline>underlined</Underline> text.
</TextBlock> <TextBlock>
<Hyperlink NavigateUri="https://www.google.com.hk" RequestNavigate="Hyperlink_RequestNavigate">
Click here
</Hyperlink>
</TextBlock> <TextBlock Margin="" TextWrapping="Wrap">
This text has a <Hyperlink RequestNavigate="Hyperlink_RequestNavigate" NavigateUri="https://www.google.com">link</Hyperlink> in it.
</TextBlock> <TextBlock Margin="" TextWrapping="Wrap">
This <Span FontWeight="Bold">is</Span> a
<Span Background="Silver" Foreground="Maroon">TextBlock</Span>
with <Span TextDecorations="Underline">several</Span>
<Span FontStyle="Italic">Span</Span> elements,
<Span Foreground="Blue">
using a <Bold>variety</Bold> of <Italic>styles</Italic>
</Span>.
</TextBlock> <StackPanel x:Name="sp_text"> </StackPanel> <!--<StackPanel Margin="">
<Label Content="_Name:" Target="{Binding ElementName=txtName}" />
<TextBox Name="txtName" />
<Label Content="{Binding ElementName=txtMail, Mode=TwoWay, Path=Text}" Target="{Binding ElementName=txtMail}" />
<TextBox Name="txtMail" />
</StackPanel>--> </StackPanel> <StackPanel Margin="">
<Label Target="{Binding ElementName=txtName}">
<StackPanel Orientation="Horizontal">
<Image Source="http://cdn1.iconfinder.com/data/icons/fatcow/16/bullet_green.png" />
<AccessText Text="_Name:" />
</StackPanel>
</Label>
<TextBox Name="txtName" />
<Label Target="{Binding ElementName=txtMail}">
<StackPanel Orientation="Horizontal">
<Image Source="http://cdn1.iconfinder.com/data/icons/fatcow/16/bullet_blue.png" />
<AccessText Text="_Mail:" />
</StackPanel>
</Label>
<TextBox Name="txtMail" />
</StackPanel> <Grid Margin="">
<TextBox AcceptsReturn="True" TextWrapping="Wrap" SpellCheck.IsEnabled="True" Language="en-US" />
</Grid> <DockPanel Margin="">
<TextBox SelectionChanged="TextBox_SelectionChanged" DockPanel.Dock="Top" />
<TextBox Name="txtStatus" AcceptsReturn="True" TextWrapping="Wrap" IsReadOnly="True" /> </DockPanel> <StackPanel Margin="">
<Label FontWeight="Bold">Application Options</Label>
<CheckBox>
<TextBlock>
Enable feature <Run Foreground="Green" FontWeight="Bold">ABC</Run>
</TextBlock>
</CheckBox>
<CheckBox IsChecked="True">
<WrapPanel>
<TextBlock>
Enable feature <Run FontWeight="Bold">XYZ</Run>
</TextBlock>
<!--<Image Source="/WpfTutorialSamples;component/Images/question.png" Width="" Height="" Margin="5,0" />-->
</WrapPanel>
</CheckBox>
<CheckBox>
<TextBlock>
Enable feature <Run Foreground="Blue" TextDecorations="Underline" FontWeight="Bold">WWW</Run>
</TextBlock>
</CheckBox>
</StackPanel>

最新文章

  1. hibernate配置文件hibernate.cfg.xml的详细解释
  2. jmeter的压力测试
  3. c# 框架学习(nop )总结-------编辑功能
  4. 在Eclipse中添加添加一些有助于开发的插件
  5. 让操作javascript对象数组像.net lamda表达式一样
  6. 微软HR泄露的asp.net面试题
  7. 对jquery新增加的class绑定事件
  8. 1.Perl 多线程:Threads
  9. wpf 画刷的分类
  10. Linux指令--touch
  11. 历届试题 剪格子 IDA*
  12. Python机器学习中文版
  13. CentOS6.5下搭建VNC服务器
  14. lxml简单用法 解析网页
  15. javascript 将treeNode 转换id和pid的Array
  16. 【转】python mysql数据库 &#39;latin-1&#39; codec can&#39;t encode character错误问题解决
  17. Linux常用网络工具:批量主机服务扫描之nmap
  18. 北京Uber优步司机奖励政策(1月15日)
  19. DCGAN、WGAN、WGAN-GP、LSGAN、BEGAN原理总结及对比
  20. Poj 3667——hotel——————【线段树区间合并】

热门文章

  1. List之ConcurrentModificationException异常
  2. APP自動化測試腳本2
  3. Windows上部署MySql
  4. Spark Streaming 入门
  5. vue-router路由元信息及keep-alive组件级缓存
  6. Mybaits-从零开始-Hello World(暂不考虑命名规范化)
  7. idea 环境变量设置编码
  8. 阿里云服务器ecs配置之安装redis服务
  9. redis实践 —— redisReply简析
  10. 模拟实现JSON.stringiry 的格式化输出