2012年5月28日

wp 托盘控制

摘要: shell:SystemTray.IsVisible="True" xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" 阅读全文

posted @ 2012-05-28 17:11 GIS-MAN 阅读(180) 评论(0) 推荐(0) 编辑

PhoneApplicationPage 之观察 触摸事件

摘要: 在PhoneApplicationPage上点击触摸任意位置 或者其子控件 都会触发OnManipulationStarted这个事件 ,可以通过重写这个事件来改变触发的响应,OnManipulationStarted这个事件的参数args 可以获得 触发的原始控件namespace SilverlightTapHello2{ public partial class MainPage : PhoneApplicationPage { Random rand = new Random(); Brush originalBrush; public MainPage() { InitializeC 阅读全文

posted @ 2012-05-28 17:03 GIS-MAN 阅读(193) 评论(0) 推荐(0) 编辑

产生任意的颜色

摘要: txtblk.Foreground = new SolidColorBrush( Color.FromArgb(255, (byte)rand.Next(256), (byte)rand.Next(256), (byte)rand.Next(256)));Random rand = new Random(); 阅读全文

posted @ 2012-05-28 16:45 GIS-MAN 阅读(146) 评论(0) 推荐(0) 编辑

Windows Phone 7 触摸编程-单点触摸利用Touch.FrameReported事件

摘要: http://www.cnblogs.com/linzheng/archive/2011/01/29/1947585.html 阅读全文

posted @ 2012-05-28 16:40 GIS-MAN 阅读(157) 评论(0) 推荐(0) 编辑

手机wp的 触摸事件和 mouse 事件

摘要: <TextBlock Text="Hello, Windows Phone 7!" MouseLeftButtonDown="TextBlock_MouseLeftButtonDown" Padding="0 22" HorizontalAlignment="Center" VerticalAlignment="Center" ManipulationStarted="OnTextBlockManipulationStarted" />void OnTextBlo 阅读全文

posted @ 2012-05-28 16:36 GIS-MAN 阅读(548) 评论(0) 推荐(0) 编辑

PhoneApplicationPage 之观察

摘要: PhoneApplicationPage 的属性 Landscape" Orientation="Portrait"在landscape 和portrait 之间变化的时候 会触发内部控件的大小的改变 触发SizeChanged事件 private void ContentPanel_SizeChanged(object sender, SizeChangedEventArgs e) { txtblk.Text = String.Format("ContentPanel size: {0}\n" + "TitlePanel size: 阅读全文

posted @ 2012-05-28 15:53 GIS-MAN 阅读(210) 评论(3) 推荐(0) 编辑

让时间动起来 非原创

摘要: public MainPage() { InitializeComponent(); DispatcherTimer tmr = new DispatcherTimer(); tmr.Interval = TimeSpan.FromSeconds(1); tmr.Tick += OnTimerTick; tmr.Start(); } void OnTimerTick(object sender, EventArgs args) { txtblk.Text = DateTime.Now.ToString(); } 阅读全文

posted @ 2012-05-28 15:40 GIS-MAN 阅读(188) 评论(0) 推荐(0) 编辑

ApplicationBar 之isvisible ISMENUENABLED

摘要: <phone:PhoneApplicationPage.ApplicationBar> <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True"> <shell:ApplicationBarIconButton x:Name="appbar_button1" IconUri="/Images/appbar_button1.png" Text="Button 1"></shell:Applica 阅读全文

posted @ 2012-05-28 15:34 GIS-MAN 阅读(216) 评论(0) 推荐(0) 编辑

导航