Visualizzazione post con etichetta windows 8. Mostra tutti i post
Visualizzazione post con etichetta windows 8. Mostra tutti i post
sabato 30 novembre 2013
XMAS TIME - Get a Lumia 925 for free
Do you want a Lumia 925 for Christmas?
Thanks to DVLUP you can get it easy :)
Check the new xmas challenge!
You just need to create 3 new applications for Windows Phone 8 and 3 new apps for Windows 8.
When you reach 4 apps (2 wp8 + 2 win8) you get 800XP to spend in rewards.
You don't have the DVLUP account? Just register from this link.
The submission ends the 24th december.
And if you register to dvlup from my link, I can get 500xp too.
Merry Xmas :D
Etichette:
DVLUP,
Lumia 925,
nokia,
windows 8,
windows phone
venerdì 13 settembre 2013
Force binding update for a TextBox
The TextBox control updates the Text binding source only when it looses focus.
When you are writing in a TextBox and you press a button in the ApplicationBar, the focus not changes and your MVVM property doesn't update.
The workaround is to force the binding update like this:
var focusedElement = FocusManager.GetFocusedElement();
var focusedTextBox = focusedElement as TextBox;
if (focusedTextBox != null)
{
var binding = focusedTextBox.GetBindingExpression(TextBox.TextProperty);
if (binding != null)
binding.UpdateSource();
}
giovedì 22 agosto 2013
Windows Store Apps Succinctly - Free eBook
Some days ago I started to develop an application for Windows Store.
I love to develop in C#, and after some pages in MSDN documentation, I searched for an offline free e-book to read with my tablet.
I found a great resource from Syncfusion:
Windows Store Apps Succinctly
This book is written by John Garland and you can download 185 pages in PDF or Kindle format.
Before starting, please remember: if you are a beginner in development, this ebook is not for you.
Why is it a good choice? Because it's simple and fast to read. It starts from core concepts until you get to the deployment. Then at the end of this book, you are ready to fully develop your first application.
Main Chapters
Pro
Cons
Now enjoy your reading... thanks Syncfusion.
FYI another good free resource is Metro Studio: a customizable collection of icon templates.
I love to develop in C#, and after some pages in MSDN documentation, I searched for an offline free e-book to read with my tablet.
I found a great resource from Syncfusion:
Windows Store Apps Succinctly
This book is written by John Garland and you can download 185 pages in PDF or Kindle format.Before starting, please remember: if you are a beginner in development, this ebook is not for you.
Why is it a good choice? Because it's simple and fast to read. It starts from core concepts until you get to the deployment. Then at the end of this book, you are ready to fully develop your first application.
Main Chapters
- Core Concepts: the introduction to Windows Store apps, WinRT and the Windows Runtime with a simple "Hello World" sample.
- XAML, Controls, and Pages: all you need to know about XAML, from Namespace declarations, to Animations and Data Binding. The chapter shows all essential controls for the user interface and explains how to work with Pages and Frames.
- Application Life Cycle and Storage: one of the most important chapters. The Windows Store apps life cycle is not the same as the desktop apps, then you need to understand all steps for the the best user experience. This chapter continues with Data Storage. It explains how to work with Application Data (local, roaming, temporary), User Data (file and folder picker) and Data Storage (files/folder and some useful links to LiveConnect and SQLite).
- Contracts and Extensions: the Windows 8 Charms: search, share, print, app settings, etc.. The chapter ends with handling file types and protocols.
- Tiles, Toast, and Notifications: yes..the big feature of Windows Phone, now in Windows 8. If you want to release a great app, you really need a good Live Tile. This chapter covers all types of Tiles and how to schedule the updates. Then it talks about the Toast Notifications and ends with a sample of Push Notification.
- Hardware and Sensors: an overview of all sensors (like compass, gyroscope, accelerometer and gps) and how to interact with Camera. The user love those features, then use them in your app.
- Deployment: your application is done, let's publish it on Windows Store! Understand the Store prices and accounts; learn how to use the Windows Application Certification Kit; add the trial mode and the In-app purchase; configure the PubCenter and the Ads.
Pro
- Free! :)
- Easy and fast to read
- XAML + C#
- All development cycle
- A lot of samples and tips
- Kindle format
- Not for development beginners
Cons
- No NFC samples
- No gestures samples
Now enjoy your reading... thanks Syncfusion.
FYI another good free resource is Metro Studio: a customizable collection of icon templates.
Etichette:
c#,
ebook,
free,
silverlight,
Syncfusion,
windows 8,
windows RT,
Windows Store
domenica 4 novembre 2012
Windows 8 - Images and DPI
Windows 8 is DPI aware then the applications auto-scale images according to DPI and screen resolution:
The developer can use vectorial elements like SVG or XAML without problems.
Otherwise when the developer uses the images raw, bitmap, png or jpg, he needs to create a file for every case.
He can explicit the scale factor in the file extension:
\myLogo.scale-100.jpg
\myLogo.scale-140.jpg
\myLogo.scale-180.jpg
Or use the folder convention:
\scale-100\myLogo.jpg
\scale-140\myLogo.jpg
\scale-180\myLogo.jpg
When the application don't has static images, it's possible to create a logic to have the same result from code behind.
The class DisplayProperties has some event to help the developer:
- 100% when the scale is not applied.
- 140% when the screen resolution is 1920x1080 and for all devices with minimum 174 DPI.
- 180% when the screen resolution is 2560x1440 and for all devices with minimum 240 DPI.
The developer can use vectorial elements like SVG or XAML without problems.
Otherwise when the developer uses the images raw, bitmap, png or jpg, he needs to create a file for every case.
He can explicit the scale factor in the file extension:
\myLogo.scale-100.jpg
\myLogo.scale-140.jpg
\myLogo.scale-180.jpg
Or use the folder convention:
\scale-100\myLogo.jpg
\scale-140\myLogo.jpg
\scale-180\myLogo.jpg
When the application don't has static images, it's possible to create a logic to have the same result from code behind.
switch (DisplayProperties.ResolutionScale)
{
case ResolutionScale.Scale100Percent:
img.Source = new BitmapImage(new Uri("url?s=100"));
break;
case ResolutionScale.Scale140Percent:
img.Source = new BitmapImage(new Uri("url?s=140"));
break;
case ResolutionScale.Scale180Percent:
img.Source = new BitmapImage(new Uri("url?s=180"));
break;
default:
// some exception
}
The class DisplayProperties has some event to help the developer:
- ColorProfileChanged: when the color profile changes.
- LogicalDpiChanged: when the the pixel per inches (PPI) changes.
- OrientationChanged: when device orientation changes.
- StereoEnabledChanged: when the property StereoEnabled changes (3D stereoscopic).
Etichette:
c#,
csharp,
developers,
microsoft,
silverlight,
windows 8,
windows RT
Iscriviti a:
Post (Atom)
