8. lock screen lock screen
background background
integration should not be
should be ads
relevant
background The visual focus
images should of the lock
be simple screen should
be the
image, not the
logo or text
9. Design for touch
Minimum font size is 15 pt.
Recommended touch target
size is 9mm
Minimum touch target size
is 7mm
Minimum spacing between
elements is 2mm
Visual size is 60-100% of
the touch target size
Provide feedback when an
item is touched.
16. public class KittenObject
{
public KittenObject() { }
public string KittenImage { get; set; }
public string KittenName { get; set; }
public string KittenAge { get; set; }
}
Model
17. public class MainViewModel : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
private void NotifyPropertyChanged(String propertyName)
{
PropertyChangedEventHandler handler = PropertyChanged;
if (null != handler)
{
handler(this, new PropertyChangedEventArgs(propertyName));
}
}
}
ViewModel
18. private string _sampleProperty = "my start value";
public string SampleProperty
{
get { return _sampleProperty; }
set
{
_sampleProperty = value;
NotifyPropertyChanged("SampleProperty");
}
}
ViewModel
22. <TextBlock x:Name="ContentText"
Text="{Binding LineThree, Mode=OneWay}"/>
• The Mode property determines how changes are synchronized
between the target control and data source
– OneTime – Control property is set once to the data value and any subsequent changes
are ignored
– OneWay – Changes in the data object are synchronized to the control property, but
changes in the control are not synchronized back to the data object
– TwoWay – Changes in the data object are synchronized to the control property and vice-
versa
Windows Phone
23. class AddItemCommand : ICommand
{
ViewModel _viewModel;
public AddItemCommand(ViewModel viewModel)
{
_viewModel = viewModel;
}
public event EventHandler CanExecuteChanged;
public bool CanExecute(object parameter)
{
return true;
}
public void Execute(object title) <Button Command="{Binding AddCommand}"
{ CommandParameter="Untitled" Content="Button"
_viewModel.AddItem(title as string); HorizontalAlignment="Center"
} VerticalAlignment="Center"/>
}
48. URI scheme Description
http:[URL] Launches the web browser and navigates to URL
Launches the email app and creates a new message.
mailto:[email address]
Note that the email is not sent until the user taps send.
ms-settings-accounts: Launches the Account Settings app.
ms-settings-airplanemode: Launches the Airplane Mode Settings app.
ms-settings-bluetooth: Launches the Bluetooth Settings app.
ms-settings-cellular: Launches the Cellular Settings app.
ms-settings-emailandaccounts: Launches the email and accounts settings app.
ms-settings-location: Launches the Location Settings app.
ms-settings-lock: Launches the Lock Screen settings app.
ms-settings-wifi: Launches the Wi-Fi Settings app.