DRAWING IN MICROSOFT VISUAL STUDIO

March 28, 2016
6 mins read
(The content is for Blend 2015 for visual studio, may be used for the current version of visual studio)

Visual Studio is a perfect tool to design your app. Whatever you do with your project by staying at any of the platforms, the changes will automatically synchronous across the project among these two tools. Like Visual Studio, you can also create a project in Blend and start working upon it like Visual Studio and you feel exactly the home environment which you feel with Visual Studio, perhaps the main focus of Microsoft Blend is towards designing, so you will have more designer lover environment over here.

So let’s start by creating an empty project in Microsoft Visual Studio;

https://youtu.be/sMXAvlJbqBU

Visual Studio will start the project and open a great designer environment for you;

To Create some UI, you need some hands-on with Blend features;

Let’s Start one by one;

On the left top side of Blend, you can see the Solution Explorer, Assets, States and Data. This section is related to your Project. Perhaps it is also designed in such a way that help you in the design of your app…

At the left bottom, you can see the section of Objects and Timeline that help you to animate your design.

  1. Objects view: You can drill down to varying levels of detail. You can also add layers to further organize objects on the artboard. That way you can lock and hide them as a group.
  2. Record mode indicator: That tells you whether you’re recording property changes in a timeline.
  3. Storyboard picker: View a list of storyboards that you’ve created.
  4. Close storyboard: Close the current storyboard.
  5. Storyboard options: Create, duplicate, reverse, delete, rename, or close a storyboard.
  6. Playback controls: It Navigates through the timeline. You can also drag the playhead to navigate through (or scrub) the timeline.
  7. Return scope to: Scope the objects view back to the previous root object or previous scope. You can do this only when you’re modifying a style or template.
  8. Record a keyframe: Record a snapshot of the properties of the selected object at the current point in time.
  9. Snapping options: Set timeline snapping, snap resolution, and turn off timeline snapping.
  10. Show/hide, Lock/unlock: Show or hide the visibility and locking options for the objects view.
  11. Playhead position on the timeline: Show the current time in milliseconds. You can also enter a time value directly in this field to jump to a particular point in time. The precision depends on the snap resolution set in the Snapping Options.
  12. Playhead: Determine what point in time the animation is at. You can drag the playhead across the timeline to preview the animation.
  13. Keyframes set on timelines: Change a property value at a specific point in time.
  14. Change order of objects: Set the display order of objects. Click this button to arrange objects in the structure view by Z order (front-to-back) or by markup order (the order in which they appear in XAML view).
  15. Timeline zoom: Set the zoom resolution of the timeline. Zooming in lets you edit an animation with more detail, and zooming out shows more of an overview of what is happening over longer periods of time. If you zoom in but can’t set a keyframe at the position in time that you want, verify that the snap resolution is set high enough.
  16. Timeline composition area: View the timeline, and move keyframes around by dragging them or using their shortcut menus.

On the right side of the blend, there’s the property windows that will help you to customize your stuff;

  • Name and Type View the icon, name and type of the selected object.
  • Arrange by Arrange properties alphabetically by name, source, or category.
  • Brush properties Set the visual properties for brushes such as Fill brush, Stroke brush, and Foreground brush.
  • Color editor Use for solid color and gradient brushes.
  • Color picker Select a color.
  • Color chips View the initial color, current color, and last color
  • Eyedroppers Use the color of any element on your screen. The Color eyedropper is available when the Solid color brush is selected. The Gradient eyedropper is available when the Gradient brush is selected.
  • Properties and Events Set properties or choose events for a selected element.
  • Search box Search for properties. Filter the properties that are displayed by typing in the Search box.
  • Brush editor tabs Use to select a brush editor. You can choose No brush, Solid Color brush, Gradient brush, Tile brush, or Brush resource.
  • Color resources Apply the exact same color to different properties. The Color Resources tab includes Local Resources and System Resources.
  • RGB color space Modify the color by adjusting the values for the R, G, or B (red, green, blue) number editors.
  • Alpha channel Modify the Alpha value by using the number editor next to A.
  • Convert color to resource Convert the selected color to a color resource. Color resources are available when you click the Color resources tab.
  • Hex value View the hexadecimal value of the color displayed.
  • Gradient slider Appears only if a gradient brush is selected.
  • Show advanced properties View categories of properties that are less commonly used.

The Asset window help you to manage your assets easily and utilize them according to need;

  • Search box Type in the Search box to filter the list of assets.
  • Grid mode and List mode Switch between the Grid mode view and the List mode view of assets.
  • Assets categories Click a category or subcategory to view the list of assets in that category.
  • Styles Show all the styles that are contained in the resource dictionary.
  • Description View a description of the selected assets category or subcategory.

The Tools Panel of the Blend is really cool, its help you to directly design your app by using helpful tools from the tools panel.

  • Selection tools Select objects and paths. Use the Direct Selection tool to select nested objects and path segments.
  • View tools Adjust the view of the artboard, such as for panning and zooming.
  • Brush tools Work with the visual attributes of an object, such as transforming a brush, painting an object, or selecting the attributes of one object to apply them to another object.
  • Object tools Draw the most common objects on the artboard, such as paths, shapes, layout panels, text, and controls.
  • Asset tools Access the Assets panel and to show the most recently used asset from the library.

So now do some hands-on experience by using these great features provided by Blend and see how easy is to design and develop your app in Blend 2015.

Let’s start by using Tool Panels;

On our MainPage Design Surface, let’s start drawing by drawing a rectangle from Tools Panel;

You will see, a rectangle will draw over the Design Surface…

  • Let’s start by hands-on with Pen Tool from the Tools Panel;

Simply select the Pen Tool and click upon the Design Surface were you want your path begins from that line forward a stretch line with draw over the surface upon each click. However, if you click and drag you create a buzzy point which will create a curve over the design surface;

The longer you drag; the more curve you get. You can either open the path or close the path by clicking back to the starting point;

Paths can be open means that’s not a complete loop or they can be closed like here.

Further, you can add or remove nodes by clicking upon the line.

The Direct Selection tool will help you to select anything from the design surface;

Now by simply go to properties, we can fill the shape with different colors;

Now let’s start working with Gradients;

Let’s create a Rectangle over the Design Surface;

Now from the properties window, let’s apply a Gradient from the brush editor;

By Default, the Gradient which we give is Black to while linear gradient as shown above, perhaps you can add additional gradient nodes by clicking upon the gradient bar;

And you can change the color of the gradient as the color of the solid brush;

From the Gradient Tool from the tools panel, you can more customize the gradient by changes the position of head and tail;

So that’s how you can play with Gradients Tool in the Blend…

So let’s play with shapes and use the Combine, Unit, Divide and Subtract operations upon it;

Simply draw two eclipses from the Tools Panel and add some Gradients to it;

Now simply select both objects from Object and Timeline window;

Now simply right-click upon the shapes objects and go to combinations and then perform operations;

When Click upon Unit it will make the app as one unit;

When we perform the Divide operation it will show division b/w two shapes;

If we perform the Intersect Operation, then it will show the intersection area of both shapes;

If we perform the Subtract operation, it will show the subtract view of one shape from the other;

And if we perform the Exclude Overlap operation it will exclude the overlap area of both shapes;

So! As you see how the magic happened in Blend by just a few clicks. Designs change very smartly and make our life easy. : – )

FOR HANDS ON DEMO

In order to get the best hands-on experience along with the Blog. Try out the code either By MSDN Code Samples or By GitHub

Data Scientist & Solution Architect || IBM Recognised Speaker, Mentor, and Teacher || Debater || Blogger || Guinness World Record Holder || Watson Solution Developer || IBM Community Activist || Aspiring to Inspire.

Leave a Reply

Your email address will not be published.

Previous Story

justSajid | A PLACE FOR MY THOUGHTS

Next Story

DEVELOPING UWP APPS WITH SAMPLE DATA

Latest from Blog

Quantum Computing | What, Why & How

Now as we are starting the 5th decade after the very first proposed model in the 1980s, quantum computers are now commercially available, brought out of the lab, and into the industry by IBM Quantum. With many experts predicting it will revolutionize the way we approach problem-solving. With the recent

Case Study: Digital Transformation of “justSajid Bank”

In this current era of what we call “digital first”, industries are repeatedly changing and evolving with the help of technology. So as the banking industry is reshaping itself, banks need to keep adopting positive changes to counter and overcome the key challenges of the modern world to overcome the

Metaverse || A Whole New World.

Things are going to be super dramatic in the next few years. Metaverse is going to open a lot of new doors to revise things that we are doing now. The culture and lifestyle would be changed. Some new cultures would have emerged and everybody would be living without physical

Pakistan Day 2020 | Coronavirus Technical Solutions

Well, on Pakistan Day 2020 our nation along with the rest of the world is facing Corona Pandemic. As the sons of this great motherland, we are trying to play our roles at our places. Within the last few weeks, Alhamdulillah I’ve got a chance to develop two technical solutions

Password: Choose the Secure, Easy and Cool Password

A super secure Password is very common nowadays. Although according to experts the password is going to expire very soon. Moreover, the pin codes are also replacing password in some why. Perhaps still there is a lot of importance of a secure password in many places. The one of the most

JumpStart with DevOps

What is DevOps; DevOps is a Software Development Strategy, that bridges the gap between the Dev and the Ops side of the company. * It’s not a tool, it’s a Methodology to bridge the gap b/w development and operations teams! As there is always a lot of conflicts between the

JumpStart Programming with Python 3

Motivation; Well, if you want to play with data and deal with complex analytics problems then Python is the best for you. We can use Python for developing complex scientific and numeric apps. Python is designed with features to facilitate data analysis and visualization. The syntax in Python helps the programmers to do coding

Understanding of Data Science Methodology

Motivation: It’s all about the different methods used in data science. Data Science Methodology: There is the following methodology used in data science which can further categories into different phases; From Problem to Approach Business Understanding Analytical Approach Working with Data Data Requirements Data Collection Data Understanding Data Preparation Deriving the

Understanding Machine Learning Methodology

Motivation Well, if we talk about a human cell sample extracted from a patient. The cell would have some characteristics. One of the interesting questions we can ask, what kind of statistics that cell have? One could easily presume that only a doctor with years of experience could diagnose a tumor and

SIMPLE NAVIGATION IN WINDOWS APPLICATION

The Navigation of UWP Apps is extremely cool and easier than other platforms. It allows enabling a variety of intuitive user experiences for moving between apps, pages, and content. Navigation is the key part of the Application. In your small Apps, you may maintain your contents and functionality in a

UNDERSTANDING THE ARCHITECTURE OF UNIVERSAL WINDOWS PLATFORM

The architecture of Universal Windows Platform is most exclusive with the center of gravity which is One Windows Core. Now the whole development will follow the common refactored core that will common for all the windows Releases. It’s all about One Core, One Hardware Platform, Universal Hardware Driver and Standalone

Guinness World Record Holder | Hajj Hackathon | Khadim Al-Haramain Al-Sharifain

Khadim Al-Haramain Al-Sharifain Built an MVP of a cognitive platform name “Khadim Al-Haramain Al-Sharifain“.  Objective The objective was to facilitate Hajj operations by introducing cognitive services integrated with Hajj systems. Hence millions of Muslims who are there for Allah Rab-ul-Izat, can perform anything without disturbing their focuses and concentrations.  Functionalities

JumpStart with IBM Bluemix

IBM Bluemix is the world most exclusive cloud platform that provides developers to quickly develop, Deploy and manage Apps over the cloud without dealing with any underline infrastructure. Bluemix provides great open source platforms for your needs. Tech experts believe that up to 2020 the computing era would completely change.

JumpStart Into Big Data With HDInsight

What would happen when the volume of your data increased repeatedly over time and you need high velocity at the same time. Not only that but you have a different variety of data and Variability also exists in your data. So how would you handle all that data? If we

Microsoft SharePoint: Create an Intranet in SharePoint

As you should already have some hands on with SharePoint. So, Lets do some hands on with SharePoint Intranet for Small company. Simply start with a Blank Site Collection. Let’s assume that the company has 3 Departments: Sales, Production and Support. They each have their own area in which they should

.NET Core

.NET Core 1.0  .NET Core 1.0 is a major new investment in the future of .NET and laying the foundation for decades to come. Still, it is in its early stage, and for some time you might still focus .NET Framework 4.6 depending on your application needs. But for many scenarios,

JUMPSTART WITH DATA BINDING IN UWP

Data Binding is one of the most interesting topics in Universal App Development. In order to perform the better functionality, you really need to have some great usage of Data Binding in you Apps. So! First thing first. What is actually the Data Binding and is its usage in UWP.

justSajid | A PLACE FOR MY THOUGHTS

This blog is my personal mental playground. The views expressed are mine, and mine alone. They do not represent the views of my employer, my family, my friends, my imaginary friends, my neighbors, people who live in my city, province, country, region, or planet, nor do they represent the views

justSajid | A PLACE FOR MY THOUGHTS

justSajid is my personal mental playground. The views expressed are mine, and mine alone. They do not represent the views of my employer, my family, my friends, my imaginary friends, my neighbors, people who live in my city, province, country, region, or planet, nor do they represent the views of

Agentic AI: The Future of Machines Acting with Purpose

Artificial Intelligence (AI) has come a long way from being a fancy algorithm for chess games to becoming our digital assistant, creative collaborator, and even a philosopher’s muse. One of the more intriguing advancements in AI is Agentic AI—an AI system that can act autonomously, pursue goals, and make decisions,
GoUp

Don't Miss

SIMPLE NAVIGATION IN WINDOWS APPLICATION

The Navigation of UWP Apps is extremely cool and easier

UNDERSTANDING THE ARCHITECTURE OF UNIVERSAL WINDOWS PLATFORM

The architecture of Universal Windows Platform is most exclusive with