All windows phone controls

Controls for Windows apps

In Windows app development, a control is a UI element that displays content or enables interaction. Controls are the building blocks of the user interface. A pattern is a recipe for combining several controls to make something new.

We provide 45+ controls for you to use, ranging from simple buttons to powerful data controls like the grid view. These controls are a part of the Fluent Design System and can help you create a bold, scalable UI that looks great on all devices and screen sizes.

The articles in this section provide design guidance and coding instructions for adding controls & patterns to your Windows app.

Intro

General instructions and code examples for adding and styling controls in XAML and C#.

Add controls and handle events
There are 3 key steps to adding controls to your app: Add a control to your app UI, set properties on the control, and add code to the control’s event handlers so that it does something.

Styling controls
You can customize the appearance of your apps in many ways by using the XAML framework. Styles let you set control properties and reuse those settings for a consistent appearance across multiple controls.

Get the Windows UI Library

Some controls are only available in the Windows UI Library (WinUI), a NuGet package that contains new controls and UI features. To get it, see the Windows UI Library overview and installation instructions.
Starting with WinUI 2.2, the default style for many controls has been updated to use rounded corners. For more info, see Corner radius.

Alphabetical index

Detailed information about specific controls and patterns.

  • Animated visual player (see Lottie)
  • Auto-suggest box
  • Button
  • Calendar date picker
  • Calendar view
  • Checkbox
  • Color picker
  • Combo box
  • Command bar
  • Command bar flyout
  • Contact card
  • Content dialog
  • Content link
  • Context menu
  • Date picker
  • Dialogs and flyouts
  • Drop down button
  • Flip view
  • Flyout
  • Forms (pattern)
  • Grid view
  • Hyperlink
  • Hyperlink button
  • Images and image brushes
  • Inking controls
  • List/details (pattern)
  • List view
  • Map control
  • Media playback
  • Menu bar
  • Menu flyout
  • Navigation view
  • Number box
  • Parallax view
  • Password box
  • Person picture
  • Pivot
  • Progress bar
  • Progress ring
  • Radio button
  • Rating control
  • Repeat button
  • Rich edit box
  • Rich text block
  • Scroll viewer
  • Search (pattern)
  • Semantic zoom
  • Shapes
  • Slider
  • Split button
  • Split view
  • Swipe control
  • Tab view
  • Teaching tip
  • Text block
  • Text box
  • Time picker
  • Toggle switch
  • Toggle button
  • Toggle split button
  • Tooltips
  • Tree view
  • Two-pane view
  • Web view

Get the XAML Controls Gallery app from the Microsoft Store to see these controls and the Fluent Design System in action. The app is an interactive companion to this website. When you have it installed, you can use links on individual control pages to launch the app and see the control in action.

Additional controls

Additional controls for Windows development are available from companies such as Telerik, SyncFusion, DevExpress, Infragistics, ComponentOne, and ActiPro. These controls provide additional support for enterprise and .NET developers by augmenting the standard system controls with custom controls and services.

All windows phone controls

Перед прочтением темы настоятельно рекомендую ознакомиться со Справками и инструкциями Microsoft.

Если какие-то пункты FAQ’a совместимы только с WP7 или WP8, дайте знать об этом в QMS gavrila

Сообщение отредактировал zheka_x — 23.11.13, 14:40

Сообщение отредактировал gavrila — 31.07.15, 14:40

Как устанавливать приложения и игры из XAP?

alex
Для установки приложения из XAP, на Вашем смартфоне должен быть сделан джейлбрейк. Подробности можно узнать здесь.

Способ №1:

  1. Установите Windows Phone Developer Tools
  2. Откройте Application Deployment tool (Пуск-> Windows Phone Developer Tools -> Application Deployment) и следуете инструкциям.

Способ №2:
1 этап:

  1. Установите Windows Phone Developer Tools
  2. Скачайте и распакуйте архив с последней версией Tom XAP Installer
  3. Запустите Tom XAP Installer.exe
  4. Поставьте галочку около «Enable Tom XAP Installer» и закройте окно
Читайте также:  Как установить windows через восстановление

Примечание: действия описанные в 1 этапе нужно выполнить только один раз. Желательно не удалять и не перемещать Tom XAP Installer.exe

2 этап:

  1. Подключите устройство к ПК
  2. Запустите Zune
  3. Проверьте, что устройство не заблокировано (т.е. открыт начальный экран)
  4. Скачайте приложение в .xap
  5. Откройте его
  6. Нажмите Install и дождитесь окончания установки

Способ №3:

  1. Скачайте и распакуйте архив с последней версией Homebrew Windows Phone 7 Market
  2. Откройте XAPDeployX.exe
  3. Выберите куда вам необходимо установить XAP (Windows Phone 7 Device — Устройство, Windows Phone 7 Emulator — Эмулятор)
  4. Нажмите Browse и выберите XAP, который вам необходимо установить и нажмите Открыть. Также вы можете просто перетащить XAP на программу, не нажимая кнопку Browse.

  5. Нажмите кнопку Deploy

Преимуществом третьего способа можно считать отсутствие необходимости устанавливать Windows Phone 7 Developers Tools. Также, есть альтернативный вариант выполнения третьего шага — в Homebrew Windows Phone 7 Market нажмите Options и выберите «Register filehandler». После данной операции вы можете просто открывать XAP файлы в проводнике, Homebrew Windows Phone 7 Market будет запускаться автоматически.

Список возможных ошибок при установке приложений и их решение:

Сообщение отредактировал Alex — 04.02.12, 22:57

Как устанавливать приложения и игры из Marketplace?

alex
Загружайте приложения и игры с телефона или на ПК, где бы Вы ни находились.
Загляните в Marketplace – виртуальный магазин Microsoft, предлагающий приложения, игры и другие развлечения для Вашего телефона. Многие приложения и игры в Marketplace бесплатны, остальные можно опробовать до покупки.

Прежде, чем Вы опробуете или купите приложение или игру
— Используя Ваш Windows Live ID, войдите в службу Windows Live для получения доступа к сервисам Windows Live, Zune и Xbox LIVE.
— Установите программное обеспечение Zune для синхронизации приложений и игр между Вашим ПК и телефоном.

Загружайте приложения в Ваш телефон

  1. Чтобы начать, нажмите на значок Marketplace
  2. Нажимайте значки приложений.
  3. Двигайте экран влево или вправо, чтобы увидеть наиболее популярные, новые или связанные приложения, а также для доступа к категориям. Когда Вы найдете нужное приложение или игру, нажмите на нее.
  4. Если Вы хотите установить бесплатное приложение или игру, нажмите Установить (Install) дважды, чтобы подтвердить установку и скачать его на Ваш телефон.
  5. Если Вы хотите приобрести приложение или игру:
    1. Нажмите Купить (Buy) для приобретения платного приложения.
    2. Или нажмите Попробовать (Try) (если это доступно) для установки пробной версии приложения.

    Выполните одно из перечисленных действий:

    • Если Вы скачиваете пробную версию приложения, нажмите Установить (Install).
    • Если Вы приобретаете приложение, нажмите Купить (Buy), выберите удобный Вам способ платежа (Вы можете оплачивать приложения кредитной картой или со своего мобильного счета) и нажмите Купить (Buy) еще раз.

    Памятка
    По умолчанию плата за покупки списывается с Вашего мобильного счета или включается в счет, если у Вас постоплатный тариф (данная услуга должна поддерживаться Вашим мобильным оператором, в России этот метод недоступен). Или Вы можете использовать Вашу кредитную карту: в диалоге Подтверждения покупки (Purchase screen) нажмите Изменить способ оплаты (Change payment method) и выберите Добавить кредитную карту (Add a credit card) (или сразу нажмите Добавить кредитную карту (Add a credit card)). Далее следуйте инструкциям на экране Вашего телефона.


    Скачивание и установка приложения или игры займет несколько минут, в зависимости от объема загружаемых данных. Прогресс загрузки виден на экране.

    Советы

    • Чтобы проверить прогресс установки приложения или игры, которые Вы в данный момент загружаете, нажмите Проверить установку (Check install)
    • Чтобы приостановить загрузку приложения, нажмите и удерживайте его иконку на экране загрузки Marketplace (нажмите Проверить установку (Check install) или ссылку на загрузку в нижней части хаба Marketplace), затем нажмите паузу. Для возобновления загрузки приложения, нажмите и удерживайте его иконку, затем нажмите Продолжить (Resume).

    Вы найдете Ваши новые приложения в Списке программ (App list) (сдвиньте экран влево от Начального экрана (Start)). Вы найдете Ваши новые игры в хабе Игры (Games) (на Начальном экране (Start) нажмите Игры (Games) и сдвиньте экран влево к коллекции).

    Совет
    Ищете определенное приложение или игру? Войдите в Marketplace и нажмите Поиск (Search).

Загрузите приложения на Ваш ПК

  1. Подключите Ваш телефон к ПК используя usb-кабель.
  2. На Начальном экране (Start), нажмите Все программы (All programs), затем нажмите Zune.
  3. Если Вы не вошли, нажмите Войти (Sign In), затем войдите, используя тот же идентификатор Windows Live ID, который Вы используете на Вашем телефоне.
  4. Нажмите Marketplace > Apps. В Устройствах (Devices) нажмите Windows Phone.
  5. Ищите приложения или игры по жанру или используя Поиск (Search box).
  6. Нажмите на заинтересовавшее Вас приложение, затем нажмите Опробовать бесплатно (Free trial) или Купить (Buy), чтобы опробовать или купить приложение или игру. Или нажмите Бесплатно (Free) для установки бесплатного приложения. Следуйте инструкциям на экране. Если Вы хотите добавить в Ваш аккаунт информацию о новой кредитной карте, Вы можете добавить ее из программного обеспечения Zune, установленного на Вашем ПК (нажмите Установки > Аккаунт > Добавить кредитную карту (Settings > Account > Add a credit card) или перейдите по ссылке в Zune Account Center.
  7. Чтобы увидеть приложения и игры на Вашем телефоне, отсоедините его от ПК. Вы найдете:
    • Приложения – в Списке программ (Apps list) сдвиньте экран влево от начального экрана (Start).
    • Игры — в хабе Игры (Games) (на Начальном экране (Start) нажмите Игры (Games) и сдвиньте экран влево к коллекции).

Примечание

  • Приложения синхронизируются напрямую с Вашим телефоном и не добавляются в коллекцию Zune на Вашем ПК.
  • Если Вы приобрели Ваше приложение в Zune в то время, как Ваш телефон не был соединен с ПК, приложение будет загружено по беспроводному соединению в течение 24 часов. Если Вы впоследствии подключите Ваш телефон к Вашему ПК, загрузка будет продолжена по беспроводному соединению.
  • Marketplace может быть недоступен в Вашей стране или регионе.

Сообщение отредактировал gavrila — 02.04.12, 14:34

С помощью каких программ можно подключить смартфон к компьютеру?

Windows Phone 8: Controls and Properties

In this tutorial, you will be learning about some of the more popular Windows Phone controls. You will also be learning about the properties controls can have and see how they can be used to describe controls.

1. What are controls?

Controls are the building blocks of a Windows Phone application. There are many types of controls, differing in their functionality and how they look. For example, there are controls that we can use to contain and arrange other controls like the StackPanel and the Grid controls. There are also controls that we can use to build features of our application like the Button, TextBox and TextBlock controls. Everything you see in a Windows Phone application is a control in one way or another.

There is a wide range of controls included in the Windows Phone SDK. Let’s take a look at some of the most common controls.

  • Button This is easily the most used control. As its name implies, this control is used to create a button and it detects gestures, such as tapping and holding.
  • TextBlock This is the control that you use when you want to display a block of text in a view.
  • TextBox Like the name suggests, with the TextBox control, the user can enter text. This is used to collect user input within a Windows Phone application.
  • StackPanel This control is used to collect or organize one or more other controls. The controls it contains can be arranged or stacked horizontally or vertically.
  • Grid A grid works very similar like an HTML Table. Other controls can be placed in it, arranged in rows and columns that we define.
  • LongListSelector This control lets us display a list of controls. For example, if we want to show a list of pictures or names in an application, then the LongListSelector is the best choice.

2. Sample Application

To get a better understanding of Windows Phone controls, we’ll create a new Windows Phone project and play around with some of the controls listed above. To create a new Windows Phone 8 project, follow the same steps as outlined in Creating Your First Application.

In Visual Studio, you should see the design and the XAML views for the MainPage.xaml page. There should also be some menu options on to the left, one of which is the ToolBox menu. Open the ToolBox menu to see a list of controls that are included in the Windows Phone SDK.

In the list of controls, find the Button control and drop an instance of it onto the Visual Studio design preview. Do the same for the TextBlock and TextBox controls. You should now have something similar to what I have below.

3. Properties

Properties are values that we can use to customize or describe the look and feel of a control. Properties take the following format, Property=»Value» . For example, if you take a closer look at the XAML code of your project, you’ll see that each control has a number of properties with corresponding values.

Take the Button you created as an example. If you want to edit the button’s text, then you need to change the value of its Content property. To change the text of the TextBlock control, you change its Text property.

There are also properties that control the control’s positioning, such as Margin and Padding properties. Visual Studio has a Properties tab that makes setting properties very easy. By default, the Properties tab is positioned at the bottom right, but that may be different for you and depends on how you’ve set up Visual Studio.

The Properties menu comes in very handy when setting properties for a control, because it shows you what properties are available for a particular control.

4. StackPanel & Grid

The StackPanel and Grid controls are very important controls for building layouts in Windows Phone. Almost every application you’ll build will make use of them so it’s important to understand how they work.

As I mentioned earlier, the StackPanel and Grid controls contain other controls and arrange them in a particular way. If you have experience with HTML, then you can compare the StackPanel and Grid controls to HTML’s div and table elements respectively.

StackPanel

The StackPanel control lets us arrange controls as a stack of items. The controls placed within a StackPanel can be arranged horizontally or vertically, depending on the value of its Orientation property.

Let’s take look at the StackPanel control in action. If you refer back to our project’s XAML view for the MainPage.xaml page, you should already see a StackPanel control holding two TextBlock instances that make up the header of the page.

By default, the orientation of a StackPanel instance is set to vertical. We only need to set this property if we need a horizontal StackPanel. Play around with the StackPanel by changing its orientation to horizontal. To sum up, whenever you need to arrange controls linearly, the StackPanel control is probably what you’re looking for.

Like the StackPanel, the Grid control arranges one or more controls. Unlike the StackPanel, the Grid control arranges its children using rows and columns, similar to an HTML table.

Let’s take another look at our project’s XAML view to see the Grid control in action. Our application already contains two Grid instances. The first one is the top level container of our application and it contains a second Grid instance.

From the image above, you can see that the first Grid, LayoutRoot , contains two rows, indicated by Grid.RowDefinition . The StackPanel named TitlePanel has a Grid.Row property set to 0 , which tells it to occupy the first row of the Grid it is in.

The second Grid, ContentPanel , has its Grid.Row property set to 1 , which means it’s placed in the second row of the Grid it is in.

The Grid control is very useful when creating complex layouts. We won’t be covering every aspect of the Grid control, but I encourage you to read more about it in the documentation.

5. LongListSelector

The LongListSelector control is a very powerful control that has a host of capabilities. The People application, shown below, is a good example of this control in action. We won’t be covering the LongListSelector control in this article, but if you’d like to learn more about this powerful control, then have a look at the documentation.

Conclusion

In this tutorial, we covered some of the more common controls used in Windows Phone applications. We’ve learned about properties and other aspects of controls, and we taken a closer look at the StackPanel and Grid controls.

In the next tutorial, we’ll be focusing on events on Windows Phone and how you can handle them.

Читайте также:  Tunnelblick для mac os
Оцените статью