摘要: 了解SiteMapPath控件,SiteMapPath数据来自站点地图文件注意:只有在站点地图中列出的页才能在 SiteMapPath 控件中显示导航数据。如果将 SiteMapPath 控件放置在站点地图中未列出的页上,该控件将不会向客户端显示任何信息。例题:用到的动态网页:在每一个页子上添加一个SiteMapPath控件,添加一个Web.sitemap站点地图文件,站点地图中:<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url= 阅读全文
posted @ 2012-12-20 19:47 刘祎 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 1、在界面中放一个TextBox,用来输入带HTML的文本,一个Button,点击后转换,一个TextBlock,显示转换后的字符串。XAML如下:<Pagex:Class="App1.MainPage"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:local="using:App1"xmlns:d=&quo 阅读全文
posted @ 2012-12-20 19:44 刘祎 阅读(174) 评论(0) 推荐(0) 编辑
摘要: FlipView数据绑定public class Student{public string Name {get; set; }public int Age { get; set; }public string Sex { get; set; }public string Email {get; set; }public string Remark {get; set; }}public class TestDataSource : System.Collections.ObjectModel.ObservableCollection<Student>{public TestDat 阅读全文
posted @ 2012-12-20 19:43 刘祎 阅读(122) 评论(0) 推荐(0) 编辑
摘要: ListBox对于所有的集合控件,都是一样的使用方法,往里面放东西就两种途径:1、数据绑定;2、手动添加项。而ListBox对应的项是ListBoxItem,说得更明白一些,它就是一个ContentControl,就像Button一样,都有一个Content属性,而我们就通过这个属性来设置项里面要显示的东西。对于数据绑定而言,因为是批量化的,所以,这个时候,就要用上DataTemplate。ListBox的数据绑定的例子: <GridBackground="{StaticResource ApplicationPageBackgroundThemeBrush}"> 阅读全文
posted @ 2012-12-20 19:43 刘祎 阅读(309) 评论(0) 推荐(0) 编辑
摘要: ----------------前台:----------------------<body> <form id="form1" runat="server"> <div> &nbsp;书名: <asp:DropDownList ID="DropDownList1" runat="server"> </asp:DropDownList> &nbsp; <asp:Button ID="btnShow" runat=& 阅读全文
posted @ 2012-12-20 19:41 刘祎 阅读(129) 评论(0) 推荐(0) 编辑
摘要: ----------------------前台------------------------<body> <form id="form1" runat="server"> <div> <asp:DataList ID="DataList1" runat="server" onitemcommand="DataList1_ItemCommand" oncancelcommand="DataList1_CancelCommand" o 阅读全文
posted @ 2012-12-20 16:40 刘祎 阅读(429) 评论(0) 推荐(0) 编辑
摘要: --------------前台:-------------------<body> <form id="form1" runat="server"> <div> <asp:DataList ID="DataList1" runat="server" onitemcommand="DataList1_ItemCommand" oncancelcommand="DataList1_CancelCommand" ondeletecomma 阅读全文
posted @ 2012-12-20 16:36 刘祎 阅读(180) 评论(0) 推荐(0) 编辑