C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Windows Phone Device Model and Version in Windows Phone Silverlight 8.1 App
WhatsApp
Kumar Bhimsen
Dec 19
2015
2.1
k
0
0
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);
}
Windows phone
device model
version
Up Next
Windows Phone Device Model and Version in Windows Phone Silverlight 8.1 App