Draw your Next App Idea with Ink to Code
Imagine that you’ve just been struck by inspiration for your next great app. You might start by jotting some notes and sketching out screens. If you’re thinking about reaching for a sketchbook, a whiteboard, or even the back of a napkin, think about reaching for your computer and installing Ink to Code instead.
Ink to Code, a Microsoft Garage project, is the digital version of the back of a napkin for your app ideas. A nimble Windows 10 app, it launches in seconds and provides a quick canvas for you to sketch out screens with your stylus. Let’s give it a try!
Getting Started
The first thing you’ll want to do is install Ink to Code from the Microsoft Store. Upon launching it, you’ll be greeted by its minimal user interface and large drawing area. To get some guidance on what to draw, click the Guide button in the toolbar. This shows you the different design elements that Ink to Code recognizes:
Drawing Your App
Let’s pretend you’re inspired to make the next great tip calculator. This video illustrates how you might draw it in Ink to Code:
Video Player
As you draw each design element, you’ll notice that Ink to Code converts the ink strokes into recognized components. Tapping on each of these items displays a menu that allows you to delete them, or if they were misrecognized, convert them into different components. You’ll also notice that tapping the second button in the left toolbar switches into constraint mode, where you can draw constraint lines that can be used to align other elements.
How does this magic work? Internally, Ink to Code uses the powerful Windows Ink platform and some of its own heuristics to recognize common design elements in your app sketches and then convert them into UWP XAML or Android layout XML that can be loaded directly into Visual Studio.
Exporting to Visual Studio
Ink to Code is great for quickly sketching the broad strokes of your app idea, but to start refining it into a prototype, you’ll want to export your drawings to Visual Studio. For this exercise, we’ll build a Xamarin.Android app:
- Click the Export button in the Ink to Code toolbar and choose Android from the menu. Then choose a temporary directory in which to export the layout XML file.
- Open Visual Studio 2017 and create a new Blank Android App project. If you cannot find the project template, ensure that you have Xamarin installed. You can also use Visual Studio for Mac and ensure Android is selected during installation.
- Find
Main.axml
in your Android project under the pathResources\layout
. Replace it with the file you exported in the first step. - Ink to Code uses
ConstraintLayout
in its exported Android XML, so you’ll need to add the Android.Support.Constraint.Layout NuGet package to your project. - Click Run, and you should see the screen you sketched launch in an Android emulator as real, interactive Android widgets!
You’ll probably want to continue refining your layout in Visual Studio after you export it from Ink to Code. To do this, simply double click on the
Main.axmlfile and the Xamarin Android Designer will open:
- Your app, extension, and/or linked framework appears to contain code designed explicitly with the ca
- Microsoft Azure Tutorial: Build your first movie inventory web app with just a few lines of code
- How To Save Your App Data With NSCoding and NSFileManager
- Add Languages to Your Xamarin Apps with Multilingual App Toolkit
- virtualbox 安装 extension pack 方法以及出现 "The installer failed with exit code 1: VBoxExtPackHelperApp.exe: error: Failed to rename the temporary directory to the final one"的解决办法
- [优文翻译]003.你应避免的移动开发APP的5个细节(5 Things to Avoid while Developing Your Next Mobile App)
- Mock Objects to the Rescue! Test Your .NET Code with NMock
- [笔记] How to get the versionCode and versionName of your app
- how-to-automate-your-iphone-app-builds-with-hudson
- 【转】XZip and XUnzip - Add zip and/or unzip to your app with no extra .lib or .dll
- An App ID with identifier is not available.Please enter a different string. 或者这样的,fail to code sign
- 打包APP时报错 linker command failed with exit code 1 (use -v to see invocation)
- Migrating your code to Objective-C ARC
- Preparing and Submitting an Application to the App Store with xCode4.2 and iOS5 SDK
- iOS--错误集锦--clang error linker command failed with exit code 1 use -v to see invocation
- Your database instance is running with full workload after database creation. You have decided to us
- 在HDFS中创建目录报错WARN util.NativeCodeLoader: Unable to load native-hadoop library for your pla
- jooq使用自定义策略生成代码(How to use a custom strategy with the jOOQ code-generator and Maven?)
- iOS开发笔记--添加第三方类库造成的linker command failed with exit code 1 (use -v to see invocation)的错误调试
- 添加第三方类库造成的linker command failed with exit code 1 (use -v to see invocation)的错误调试