TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Windows Phone Device Model and Version in Windows Phone Silverlight 8.1 App
Kumar Bhimsen
Dec 19
2015
Code
2
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
WindowsPhoneModel.zi
MainPage.Xaml
<Grid x:Name=
"LayoutRoot"
Background=
"LightBlue"
>
<TextBlock Text=
"Windows Model :"
TextWrapping=
"Wrap"
FontSize=
"20"
Foreground=
"Gray"
Margin=
"148,284,167,449"
/>
<TextBlock Name=
"txtModel"
TextWrapping=
"Wrap"
FontSize=
"24"
Foreground=
"Gray"
Margin=
"130,310,135,423"
/>
<TextBlock Text=
"Windows Version :"
TextWrapping=
"Wrap"
FontSize=
"20"
Foreground=
"Gray"
Margin=
"142,344,163,397"
/>
<TextBlock Name=
"txtVrsn"
TextWrapping=
"Wrap"
FontSize=
"24"
Foreground=
"Gray"
Margin=
"28,370,26,358"
/>
</Grid>
MainPage.Xaml.cs
public
MainPage()
{
InitializeComponent();
var phone = PhoneNameResolver.Resolve(DeviceStatus.DeviceManufacturer, DeviceStatus.DeviceName);
txtModel.Text = Convert.ToString(phone.FullCanonicalName);
txtVrsn.Text = Convert.ToString(System.Environment.OSVersion);
}
device model
version
Windows phone