Windows in plan view

Microsoft Planner for admins

In this article:

How do I turn off Planner for my organization?

When Microsoft Planner is included in your subscription, it’s automatically turned on for everyone in your organization. If you want to control which people in your organization have licenses for Planner, for example, if your organization isn’t ready to begin using Planner, you can remove or assign Planner licenses by using Office 365 PowerShell.

To control which users have Planner licenses, follow the instructions in How to use Office 365 PowerShell to manage Microsoft Planner licenses. When running the scripts in Office 365 PowerShell, the DisabledPlans value for Microsoft Planner is PROJECTWORKMANAGEMENT.

Removing a user’s Planner license only prevents them from navigating to Planner using the Planner tile. Users in your organization without licenses to Planner can still create and modify plans at the direct Planner URL: tasks. office. com. You can remove users’ ability to create plans at tasks.office.com (see How do I manage who can create a plan?), but you can’t remove their ability to see and modify existing plans at tasks. office. com at this time.

How do I manage who can create a plan?

Every time a person in your organization creates a plan in Planner, the plan’s list of members automatically form a Microsoft 365 group. So to control who creates a plan, you need to control who can create Microsoft 365 Groups.

Admins can control who can create a Group by using Azure Active Directory (AD) PowerShell. Follow the instructions in Control who can create Microsoft 365 Groups to:

  1. Disable Group creation for all users in your organization.
  2. Allow specific users to create groups (for example, all Planner users) while group creation is disabled.
  • Disabling group creation for your organization will affect users of other Microsoft services that need group creation, such as Exchange Online. Make sure to account for all people in your organization that need the ability to create groups when you configure this setting.
  • Controlling who can create Microsoft 365 Groups only prevents users from creating new plans. They will still be able to see and modify existing plans at tasks. office. com.

How do I change the domain that Planner email notifications come from?

If you are interested in having your notification emails come from a custom email domain, follow the steps described in Multi-domain support for Microsoft 365 Groups — Admin help.

Can people outside of my organization get invited to participate in a plan?

Yes. Guest access allows you to invite people who aren’t part of your Microsoft 365 organization to participate in a plan. Guest users will have limited functionality, but can perform the following tasks:

  • Create and delete tasks and buckets
  • Edit task fields
  • Attach a file or link to a task, if given additional permission
  • Edit the plan name

Can people in my organization use Planner if they don’t have an Exchange Online mailbox?

  • If you are using Microsoft Planner in a hybrid environment in which your users may have Exchange Online or on-premises mailboxes, note that:
  • Planner has full functionality when your user has a product license that includes Exchange Online Planner users without Exchange Online may have the following issues:
    • Users may have issues with viewing or adding comments to a task.
    • Users may have issues viewing their favorite plans in Planner.
Читайте также:  Как перенести установленную систему windows

For more information, see KB article 3169632.

How do I make sure all my users can get emails for Planner?

In Planner, users can choose to receive emails when tasks are assigned to them or when tasks are due soon or late (see Choose whether to have email sent directly to you). However, email will only be sent to users who have a product license that includes Exchange Online. Users at organizations using on-premises Exchange Server or hybrid configurations may not receive all Planner emails.

How do I turn off Outlook calendar sync in Planner for my organization?

Outlook calendar sync in Microsoft Planner allows users to view their Planner schedule in Outlook. This feature is turned on automatically in Planner. If you want to turn this off for your organization, follow the steps in Turn off Outlook calendar sync in Planner for your organization.

How do I install or activate Planner for my organization?

Planner comes with these subscriptions:

  • Microsoft 365 Business Basic
  • Microsoft 365 Business Standard
  • Office 365 E1
  • Office 365 E3
  • Office 365 E5
  • Microsoft 365 A1

For more on these subscriptions, see business plans, enterprise plans, or education plans. If your current subscription doesn’t include Planner, the only way to get Planner is to switch to a subscription that does.

Can I see who is already using Planner, or see a list of all the Planner sites?

You can see a list of all groups in the Microsoft 365 admin center, in the Groups section, and find out more detailed information about these groups using Microsoft 365 Reports in the admin center — Microsoft 365 Groups. Every group comes with a plan, but a list of plans and active usage of plans are not included in these reports right now.

How can I apply CA policies to the Planner iOS and Android apps?

To apply CA policies to the Planner iOS and Android apps, please make sure that CA policies are enabled for Exchange or SharePoint within Microsoft Intune in the Azure portal. Enabling CA policy for Planner alone (without policies enabled for Exchange or SharePoint) does not apply the policies for the Planner iOS and Android apps.

Отображение нескольких представлений с помощью ApplicationView Show multiple views with ApplicationView

Помогите пользователям работать эффективнее, дав им возможность открывать независимые части приложения в отдельных окнах. Help your users be more productive by letting them view independent parts of your app in separate windows. Если создать для приложения несколько окон, каждое окно будет работать независимо. When you create multiple windows for an app, each window behaves independently. На панели задач каждое окно отображается отдельно. The taskbar shows each window separately. Пользователи могут перемещать, отображать, скрывать окна приложения и менять их размеры независимо друг от друга, а также переключаться между окнами, как будто это разные приложения. Users can move, resize, show, and hide app windows independently and can switch between app windows as if they were separate apps. Каждое окно работает в собственном потоке. Each window operates in its own thread.

Что такое представление приложения? What is a view?

Представление приложения — это совокупность 1:1 потока и окна, которая используется приложением для отображения содержимого. An app view is the 1:1 pairing of a thread and a window that the app uses to display content. Оно представляется объектом Windows.ApplicationModel.Core.CoreApplicationView. It’s represented by a Windows.ApplicationModel.Core.CoreApplicationView object.

Представления управляются объектом CoreApplication. Views are managed by the CoreApplication object. Необходимо вызвать CoreApplication.CreateNewView, чтобы создать объект CoreApplicationView. You call CoreApplication.CreateNewView to create a CoreApplicationView object. CoreApplicationView объединяет CoreWindow и CoreDispatcher (которые хранятся в свойствах CoreWindow и Dispatcher). The CoreApplicationView brings together a CoreWindow and a CoreDispatcher (stored in the CoreWindow and Dispatcher properties). CoreApplicationView можно считать объектом, который использует среда выполнения Windows для взаимодействия с основной системой Windows. You can think of the CoreApplicationView as the object that the Windows Runtime uses to interact with the core Windows system.

Читайте также:  Windows server 2020 оригинальный образ

Обычно работать непосредственно с CoreApplicationView не нужно. You typically don’t work directly with the CoreApplicationView. Вместо этого среда выполнения Windows предоставляет класс ApplicationView в пространстве имен Windows.UI.ViewManagement. Instead, the Windows Runtime provides the ApplicationView class in the Windows.UI.ViewManagement namespace. Этот класс предоставляет свойства, методы и события, которые используются при взаимодействии приложения с системой работы с окнами. This class provides properties, methods, and events that you use when your app interacts with the windowing system. Для работы с ApplicationView вызовите статический метод ApplicationView.GetForCurrentView, который получает экземпляр ApplicationView , связанный с текущим потоком CoreApplicationView. To work with an ApplicationView , call the static ApplicationView.GetForCurrentView method, which gets an ApplicationView instance tied to the current CoreApplicationView ’s thread.

Аналогично, платформа XAML создает программу-оболочку для объекта CoreWindow в объекте Windows.UI.XAML.Window. Likewise, the XAML framework wraps the CoreWindow object in a Windows.UI.XAML.Window object. В приложении XAML обычно происходит взаимодействие с объектом Window вместо непосредственной работы с CoreWindow. In a XAML app, you typically interact with the Window object rather than working directly with the CoreWindow.

Отображение нового представления Show a new view

Так как каждый макет приложения уникален, мы рекомендуем добавить кнопку «Новое окно» в предсказуемое расположение, например в правый верхний угол окна содержимого, которое можно открыть в новом окне. While each app layout is unique, we recommend including a «new window» button in a predictable location, such as the top right corner of the content that can be opened in a new window. Также следует учесть необходимость добавления параметра контекстного меню «Открыть в новом окне». Also consider including a context menu option to «Open in a new window».

Рассмотрим шаги для создания нового представления. Let’s look at the steps to create a new view. В данном примере новое представление запускается в ответ на нажатие кнопки. Here, the new view is launched in response to a button click.

Отображение нового представления To show a new view

Вызовите CoreApplication.CreateNewView, чтобы создать новое окно и поток для содержимого представления. Call CoreApplication.CreateNewView to create a new window and thread for the view content.

Отслеживайте Id нового представления. Track the Id of the new view. Это понадобится для отображения представления позже. You use this to show the view later.

Можно создать некоторую инфраструктуру в приложении, чтобы упростить отслеживание представлений, которые вы создаете. You might want to consider building some infrastructure into your app to help with tracking the views you create. Пример: класс ViewLifetimeControl в разделе Пример MultipleViews. See the ViewLifetimeControl class in the MultipleViews sample for an example.

В новом потоке заполните окно. On the new thread, populate the window.

При помощи метода CoreDispatcher.RunAsync запланируйте задачу в потоке пользовательского интерфейса для нового представления. You use the CoreDispatcher.RunAsync method to schedule work on the UI thread for the new view. Используйте лямбда-выражение, чтобы передать функцию методу RunAsync как аргумент. You use a lambda expression to pass a function as an argument to the RunAsync method. Результаты работы лямбда-функции влияют на поток нового представления. The work you do in the lambda function happens on the new view’s thread.

В XAML Frame обычно добавляется к свойству ContentWindow, а затем выполняется переход Frame к Page, где определено содержимое приложения. In XAML, you typically add a Frame to the Window‘s Content property, then navigate the Frame to a XAML Page where you’ve defined your app content. Подробные сведения о фреймах и страницах см. в статье Реализация навигации между двумя страницами. For more info about frames and pages, see Peer-to-peer navigation between two pages.

После заполнения нового Window необходимо вызвать метод Activate Window для отображения Window позднее. After the new Window is populated, you must call the Window ‘s Activate method in order to show the Window later. Результаты влияют на поток нового представления, так что активируется новое Window. This work happens on the new view’s thread, so the new Window is activated.

Наконец, скачайте Id нового используемого представления для его отображения позже. Finally, get the new view’s Id that you use to show the view later. Результаты также влияют на поток нового представления, поэтому ApplicationView.GetForCurrentView получает Id нового представления. Again, this work is on the new view’s thread, so ApplicationView.GetForCurrentView gets the Id of the new view.

Читайте также:  Application places system windows

После создания нового представления, вы сможете отобразить его в новом окне с помощью метода ApplicationViewSwitcher.TryShowAsStandaloneAsync. After you create a new view, you can show it in a new window by calling the ApplicationViewSwitcher.TryShowAsStandaloneAsync method. Параметр viewId в этом методе представляет собой целое число, уникальным образом идентифицирующее каждое представление в приложении. The viewId parameter for this method is an integer that uniquely identifies each of the views in your app. Вы получите представление Id, воспользовавшись свойством ApplicationView.Id или методом ApplicationView.GetApplicationViewIdForWindow. You retrieve the view Id by using either the ApplicationView.Id property or the ApplicationView.GetApplicationViewIdForWindow method.

Главное представление The main view

Первое представление, создаваемое при запуске приложения, называется главным. The first view that’s created when your app starts is called the main view. Это представление хранится в свойстве CoreApplication.MainView, и его свойство IsMain имеет значение true. This view is stored in the CoreApplication.MainView property, and its IsMain property is true. Вам не нужно создавать это представление, его создает приложение. You don’t create this view; it’s created by the app. Поток главного представления служит диспетчером для приложения, и события активации в приложении происходят в этом потоке. The main view’s thread serves as the manager for the app, and all app activation events are delivered on this thread.

Если открыты вспомогательные представления, окно главного представления может быть скрыто, например, по нажатию кнопки закрытия (x) на панели заголовка окна, но его поток остается активным. If secondary views are open, the main view’s window can be hidden – for example, by clicking the close (x) button in the window title bar — but its thread remains active. Вызов Close в Window главного представления приведет к возникновению InvalidOperationException. Calling Close on the main view’s Window causes an InvalidOperationException to occur. (Используйте Application.Exit, чтобы закрыть приложение.) Если работа потока главного представления завершается, приложение закрывается. (Use Application.Exit to close your app.) If the main view’s thread is terminated, the app closes.

Дополнительные представления Secondary views

Другие представления, в том числе все представления, создаваемые по вызову CreateNewView в коде приложения, являются дополнительными представлениями. Other views, including all views that you create by calling CreateNewView in your app code, are secondary views. Как главное представление, так и дополнительные представления хранятся в коллекции CoreApplication.Views. Both the main view and secondary views are stored in the CoreApplication.Views collection. Обычно дополнительные представления создаются в ответ на действия пользователя. Typically, you create secondary views in response to a user action. В некоторых случаях система создает дополнительные представления для приложения. In some instances, the system creates secondary views for your app.

Вы можете использовать функцию ограниченного доступа Windows для запуска приложения в режиме киоска. You can use the Windows assigned access feature to run an app in kiosk mode. После этого система создает дополнительное представление для представления пользовательского интерфейса приложения поверх экрана блокировки. When you do this, the system creates a secondary view to present your app UI above the lock screen. Приложению не разрешается создавать дополнительные представления, поэтому при попытке отобразить собственное дополнительное представление в режиме киоска возникает исключение. App-created secondary views are not allowed, so if you try to show your own secondary view in kiosk mode, an exception is thrown.

Переключение между представлениями Switch from one view to another

Следует учесть необходимость предоставления пользователю возможности вернуться в главное окно из дополнительного. Consider providing a way for the user to navigate from a secondary window back to its parent window. Для этого используйте метод ApplicationViewSwitcher.SwitchAsync. To do this, use the ApplicationViewSwitcher.SwitchAsync method. Вызовите этот метод из потока окна, из которого вы переключаетесь, и передайте идентификатор представления окна, на которое вы переключаетесь. You call this method from the thread of the window you’re switching from and pass the view ID of the window you’re switching to.

Используя SwitchAsync, можно определить, следует ли закрыть начальное окно и удалить его из панели задач, указав значение ApplicationViewSwitchingOptions. When you use SwitchAsync, you can choose if you want to close the initial window and remove it from the taskbar by specifying the value of ApplicationViewSwitchingOptions.

Оцените статью