2013年1月29日
摘要: <phone:PhoneApplicationPage.Resources> <Style x:Key="PhoneButtonBase" TargetType="ButtonBase"> <Setter Property="Background" Value="Transparent"/> <Setter Property="BorderBrush" Value="{StaticResource PhoneForegroundBrush}&q 阅读全文
posted @ 2013-01-29 12:14 桃源月色 阅读(541) 评论(0) 推荐(0) 编辑
  2013年1月24日
摘要: ListBox在滑动的时候经常闪烁,为此做了很多实验性质的调整。当调整了一个Image的引用方式时,情况得到了好转。但是没有深入研究底层的细节,因此也不能盲目的断点是应为这个原因导致的问题。现把产生作用的调整分享如下:我有一个在页面中反复使用的Image Icon, 出于性能的考虑,我在App.xml中对其进行了预定义:<Application.Resources> <BitmapImage x:Key="shareIcon1" UriSource="/Assets/Icons/share1.png" /></Applica 阅读全文
posted @ 2013-01-24 15:52 桃源月色 阅读(1399) 评论(2) 推荐(0) 编辑
  2013年1月23日
摘要: 希望得到一个多个列的listBox,每个单元都是ListBox的一个Item, 效果图如下:对应的xaml: <Grid x:Name="LoginNoSubsPanel" Visibility="Visible"> <ListBox x:Name="HotKeywordsListBox" ItemsSource="{Binding RecommendedTopicsLeft}"> <ListB... 阅读全文
posted @ 2013-01-23 21:18 桃源月色 阅读(579) 评论(0) 推荐(0) 编辑
  2013年1月22日
摘要: private void AppendLink(string text, Uri uri) { Paragraph paragraph; if (this.Blocks.Count == 0 || (paragraph = this.Blocks[this.Blocks.Count - 1] as Paragraph) == null) { paragraph = new Paragraph(); this.B... 阅读全文
posted @ 2013-01-22 17:58 桃源月色 阅读(376) 评论(0) 推荐(0) 编辑
  2013年1月21日
摘要: <phone:PhoneApplicationPage.Resources> <shell:ApplicationBar x:Key="AppBar0" IsMenuEnabled="True" IsVisible="True" Mode="Default" Opacity="0.8" BackgroundColor="Black" ForegroundColor="White"> <shell:ApplicationBarI 阅读全文
posted @ 2013-01-21 16:27 桃源月色 阅读(740) 评论(0) 推荐(0) 编辑
  2012年11月27日
摘要: 1) right click Solution Properties, click Manage NuGet Packages.2) search your package by namespace3) select one and click install. 阅读全文
posted @ 2012-11-27 17:50 桃源月色 阅读(176) 评论(0) 推荐(0) 编辑
  2011年11月17日
摘要: 1) check out: svn co svn co https://sourcer/svn/trunck dest2) update: svn up3) diff: svn diff > diff.out4) st: svn st5) commit: svn ci //add checklist and comment. 阅读全文
posted @ 2011-11-17 14:35 桃源月色 阅读(288) 评论(0) 推荐(0) 编辑
  2011年8月12日
摘要: 1) 安全接入机制: activemq启动时加载配置文件$ACTIVEMQ_HOME/conf/activemq.xml, 在activemq.xml的<broker>节点中添加以下元素以提供对建立连接时的用户名/密码的支持: <plugins> <simpleAuthenticationPlugin> <users> <authenticationUser username="system" password="manager" groups="users,admins"/> 阅读全文
posted @ 2011-08-12 17:38 桃源月色 阅读(6251) 评论(5) 推荐(1) 编辑
  2011年8月10日
摘要: 在虚拟机上安装centos5.5,将其连接到物理局域网。在上面启动activemq服务,发现从本机能够访问,但是从其他机器无法访问。并且系统之间可以 ping通。最后发现是centos中的防火墙给挡住了,关掉防火墙,就可以远程连接到mq了。 阅读全文
posted @ 2011-08-10 12:48 桃源月色 阅读(173) 评论(0) 推荐(0) 编辑
  2011年8月8日
摘要: 最近使用activemq,发现一个很奇怪的问题: 本人的MQ服务器在一个linux的机器上,然后再握得windows7 的客户端启动程序监听服务器上的一个队列。这个时候明明从浏览器访问:http://server-ip:8161/admin,可以在监听的队列中发现有pending消息,但是监听程序就是收不到。 最后发现服务器和我的机器的时间不一致(相差两分钟),将我的机器与服务器的时间修改成一致,问题解决了。 现在还不知道是什么原因,需要进一步的分析。 阅读全文
posted @ 2011-08-08 13:39 桃源月色 阅读(4699) 评论(1) 推荐(0) 编辑