Windows Phone7允许创建多个页面,但并不像Windows mobile程序一样,可能关闭窗口或最小化,而是通过跳转的方式来实现的。但是其跳转方式也不同于PC上Sliverlight的跳转方式。不过其传值方式却是一样的。一.跳转:可以通过这条语句来完成:this.NavigationService.Naviagte(new Uri("/testPage.xaml", UriKind.Relative));向前跳转:this.NavigationService.GoFroward();向后跳转:this.NavigationService.GoBack();二.传值 Read More
Label:被TextBlock取代了。 ScrollBar:被ScrollView取代了。还有一些控件需要自定义了,比如ComboBox等对于这些可能控件,基本上都有一些通用的属性:Height/Width:用户设置的控件大小,是预期的大小。ActualHeight/ActualWidth:只读,控件的实际大小。Cursor:设置/获取控件光标形状。DataContext:设置/获取控件绑定数据。HorizontalAlignment/VerticalAlignment:设置/获取控件水平/垂直方向的对齐方式。Language:设置/获取localization/globalization语 Read More
一.Button:这个控件只是一个基础控件,通过blend可以创建出多种效果的按钮来。<ButtonContent="Button1"Height="81"HorizontalAlignment="Left"Margin="135,99,0,0"Name="button1"VerticalAlignment="Top"Width="213"Click="button1_Click"Background="Red" Read More
在Phone7中主要的输入控件其实就有两个,一个是textbox,另一个就是password控件。这两个控件中尤其是TextBox控件有了很多新特性。一.PasswordBox:密码框控件,用于输入自定义的遮罩字符的输入控件。<PasswordBoxGrid.Row="1"Height="72"HorizontalAlignment="Left"Margin="12,284,0,0"Name="passwordBox1"VerticalAlignment="Top"Wi Read More