Saturday, May 12, 2012
Run Metro style applications on Simulator
Metro style apps are full-screen and respond to user touch and hardware events like screen rotations. The Visual Studio 11 Beta simulator for Metro style apps is a desktop application that simulates a Windows Metro style app. It enables a developer on a single machine to run Metro style applications and simulate common touch and rotation events. You can also choose the physical screen size and resolution that you want to emulate. Location co-ordinates of user input events in the simulator are translated to the co-ordinates of the select size and resolution.
Together with Visual Studio, the simulator provides an environment in which you can design, develop, debug, and test Metro style apps. However, before you publish your app to the Windows Store, you should test your app on an actual device.
*Also apply on on Visual Studio 11 Express Beta for Windows 8
- To enable Simulator, simple select Simulator as the target debug device.
Read more: Microsoft Windows Simulator Touch Emulation
Tuesday, May 1, 2012
Beginning Windows Phone App Development
Microsoft’s Windows Phone 7 handsets have injected a new vibrancy into the smartphone marketplace and provided bold new opportunities for the Microsoft development community.
Take advantage of these opportunities with Beginning Windows Phone App Development, written specifically to help you learn the skills you’ll need to develop rich, functional apps for the Windows Phone 7 platform. Authors Henry Lee and Eugene Chuvyrov cover the very latest developments in the field—including the extended APIs offered in the new Mango platform update—so you'll have timely, accurate information at your fingertips.
Beginning Windows Phone App Development starts with the basics, walking you through the process of downloading and setting up the right development tools, including Visual Studio,Expression Blend, Silverlight SDK, and Windows Phone SDK. It then takes you step-by-step though the development process as you build and deploy a working application, complete with a sophisticated user interface. Finally, you'll receive step-by-step instructions on packaging and selling your applications through the Windows Phone Marketplace.
Take advantage of these opportunities with Beginning Windows Phone App Development, written specifically to help you learn the skills you’ll need to develop rich, functional apps for the Windows Phone 7 platform. Authors Henry Lee and Eugene Chuvyrov cover the very latest developments in the field—including the extended APIs offered in the new Mango platform update—so you'll have timely, accurate information at your fingertips.
Beginning Windows Phone App Development starts with the basics, walking you through the process of downloading and setting up the right development tools, including Visual Studio,Expression Blend, Silverlight SDK, and Windows Phone SDK. It then takes you step-by-step though the development process as you build and deploy a working application, complete with a sophisticated user interface. Finally, you'll receive step-by-step instructions on packaging and selling your applications through the Windows Phone Marketplace.
What you’ll learn
- How to create effective networked applications
- How to leverage your phone’s GPS capabilities from within your application
- How to interact with the phone’s built-in functionalities (camera, contacts, maps, accelerometer, video and web browser, to name but a few)
- How to construct highly graphical and responsive user interfaces quickly and easily using these features
- How to package and distribute your applications for both personal distribution and commercial sale via the Windows Phone Marketplace
Who this book is for
This book is for anyone interested in developing applications for the Windows Phone 7.5 platform. You might be an existing .NET developer looking for a new creative angle, or perhaps an iPhone or Android developer looking for a new opportunity. If you have an understanding of basic .NET coding practices, then this book is for you.Table of Contents
- Introducing Windows Phone 7 and the Windows Phone Platform
- Building Windows Phone 7 Applications
- Using Cloud Services As Data Stores
- Catching and Debugging Errors
- Packaging, Publishing, and Managing Applications
- Working with the Accelerometer
- Application Bar
- WebBrowser Control
- Working with Controls and Themes
- Integrating Applications with the Windows Phone OS
- Creating Trial Applications
- Internationalization
- Isolated Storage
- Using Location Services
- Media
- Working with the Camera and Photos
- Push Notifications
- Reactive Extensions for .NET
- Security
About the Author
Henry Lee, founder of ToeTapz.com and NewAgeSolution.net, is passionate about technology. He works with various Fortune 500 companies, delivering mobile applications and rich Internet applications. He is focusing his energy on delivering mobile applications on Windows Phone 7, Android, and iPhone. In his spare time, he dedicates his efforts to helping his communities by delivering sessions at technology events. He enjoys speaking with other technologists about current trends in technology and sharing business insights with fellow colleagues. Often, you'll find Henry at a local cigar bar, enjoying a cigar and a drink, trying to come up with the next big mobile application.
Saturday, April 28, 2012
Hello Metro application using C++, with Button click event handler.
Continuous work from the last post "Create Metro style Hello World in C++ using Microsoft Visual Studio 11 Express for Windows 8 Beta".
- Add a button
With BlankPage.xaml opened. Drag a Button from ToolBox on the Design Panel, place anywhere you want.
With the Button selected, edit in Properties panel to change its Name to "myButton", and change Content under Common to "Click Me".
It can be noticed that <Button> in BlankPage.xaml will be updated accordingly.
- Name the TextBlock
With the TextBlock selected, edit in Properties panel to change its Name to "myText".
- Insert Button click event handler
Double click on the Button in Design panel. It will insert Button click event handler, helloMetroC::BlankPage::myButton_Click(), in BlankPage.xaml.cpp automatically.
And Click="myButton_Click" will be added in <Button> in BlankPage.xaml.
- Add code in Button click event handler
Switch to BlankPage.xaml.cpp, and insert the code in the function helloMetroC::BlankPage::myButton_Click().
- Build and Run
When the application running, click on the Button will make the TextBlock change. That's.
- Add a button
With BlankPage.xaml opened. Drag a Button from ToolBox on the Design Panel, place anywhere you want.
With the Button selected, edit in Properties panel to change its Name to "myButton", and change Content under Common to "Click Me".
It can be noticed that <Button> in BlankPage.xaml will be updated accordingly.
- Name the TextBlock
With the TextBlock selected, edit in Properties panel to change its Name to "myText".
- Insert Button click event handler
Double click on the Button in Design panel. It will insert Button click event handler, helloMetroC::BlankPage::myButton_Click(), in BlankPage.xaml.cpp automatically.
And Click="myButton_Click" will be added in <Button> in BlankPage.xaml.
<Grid Background="{StaticResource ApplicationPageBackgroundBrush}">
<TextBlock x:Name="myText" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="50" Text="Hello Metro" />
<Button x:Name="myButton" Content="Click Me" HorizontalAlignment="Left" Margin="552,519,0,0" VerticalAlignment="Top" Width="263" Click="myButton_Click"/>
</Grid>
- Add code in Button click event handler
Switch to BlankPage.xaml.cpp, and insert the code in the function helloMetroC::BlankPage::myButton_Click().
void helloMetroC::BlankPage::myButton_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e)
{
myText->Text = "Thanks";
}
- Build and Run
When the application running, click on the Button will make the TextBlock change. That's.
Friday, April 27, 2012
Overview (C++/CX)
Visual C++ component extensions (C++/CX) is a set of extensions to the C++ language that enable the creation of Windows Metro style apps and Windows Runtime components in an idiom that is much simpler and more natural than the traditional COM programming model. Use C++/CX to write Metro style apps and easily interact with Visual C#, Visual Basic, and JavaScript, and other languages that support the Windows Runtime. In those rare cases that require direct access to the raw COM interfaces, or non-exceptional code, you can use the Windows Runtime C++ Template Library.
Read the document Overview (C++/CX) in msdn.microsoft.com.
Read the document Overview (C++/CX) in msdn.microsoft.com.
Create Metro style Hello World in C++ using Microsoft Visual Studio 11 Express for Windows 8 Beta
- New a Project in Microsoft Visual Studio 11 Express for Windows 8 Beta, using template of Visual C++, Windows Metro style, Blank Application, name it helloMetroC.
- The wizard will generate a dummy application for you.
- Double click on the BlankPage.xaml from the Solution Explorer, to start edit it.
- Click TOOLBOX on the left side border, to expend the Toolbox panel. Click to expend Common XAML Controls, drag a TextBlock on the Design Pane.
- Now, you can see a TextBlock in the design view, and a new element of <TextBlock> in XAML view.
- We can edit the XAML directly.
Modify the content of <TextBlock> element like it:
- Select Save All from File menu, to save the solution.
- To build the solution, Build Solution from Build menu (or press F7).
- Run it by clicking on the Play button, or Start Debugging from Debug menu, or press F5 directly.
Next:
- Hello Metro application using C++, with Button click event handler.
- The wizard will generate a dummy application for you.
- Double click on the BlankPage.xaml from the Solution Explorer, to start edit it.
- Click TOOLBOX on the left side border, to expend the Toolbox panel. Click to expend Common XAML Controls, drag a TextBlock on the Design Pane.
- Now, you can see a TextBlock in the design view, and a new element of <TextBlock> in XAML view.
- We can edit the XAML directly.
Modify the content of <TextBlock> element like it:
<Grid Background="{StaticResource ApplicationPageBackgroundBrush}">
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="50" Text="Hello Metro" />
</Grid>
- Select Save All from File menu, to save the solution.
- To build the solution, Build Solution from Build menu (or press F7).
- Run it by clicking on the Play button, or Start Debugging from Debug menu, or press F5 directly.
Next:
- Hello Metro application using C++, with Button click event handler.
Tuesday, April 24, 2012
Windows 8 Release Preview will be released at the first week of June
Announced from Japan's Windows 8 Dev Day, via Twitter @BuildWindows8, Windows 8 Release Preview first week of June.
Create Metro style app in Visual Studio 11 Express Beta for Windows 8
Now you can develop Metro style application on Visual Studio 11 Express Beta for Windows 8.
Test platform
- Install and start Visual Studio 11 Express Beta for Windows 8, on machine with display resolution higher than 1024 x 768.
- Click New Project...
- Select Template of Visual Basic - Windows Metro style, Grid Application, name your project (ex. testMetro), and click OK.
- Visual Studio 11 Express Beta will generate a dummy Metro style application, now you can click the Run button to start it.
- The generate Metro style application.
! Please note that in order to develop Metro style application, you MUST have a monitor with resolution higher than 1024 x 768.
Test platform
- A low grade Netbook, BenQ Joybook Lite U101.
- CPU: Atom N270 1.6 GHz.
- External Monitor!
- OS: Windows 8 Consumer Preview.
- IDE: Visual Studio 11 Express Beta for Windows 8.
- Install and start Visual Studio 11 Express Beta for Windows 8, on machine with display resolution higher than 1024 x 768.
- Click New Project...
- Select Template of Visual Basic - Windows Metro style, Grid Application, name your project (ex. testMetro), and click OK.
- Visual Studio 11 Express Beta will generate a dummy Metro style application, now you can click the Run button to start it.
- The generate Metro style application.
! Please note that in order to develop Metro style application, you MUST have a monitor with resolution higher than 1024 x 768.
Subscribe to:
Posts (Atom)




















