Como customizar sua lock screen e glance

Como parte do windows Phone 8, os usuA?rios podem ter o controle da aparA?ncia da sua lock screen usando conteA?do de suas Apps. Especificamente, as Apps podem mudar a imagem de fundo, os cinco contadores no pAi?? da tela e o texto exibida na home da lock screen.

VocA? pode adicionar texto e um contador para a lock screen atribuindo valores para a tile da App.

WmAppManifest.xml

Especifique um arquivo PNG transparente, 24×24 pixels para o Ai??cone de contador da App.

<br />
<DeviceLockImageURI IsRelative="true" IsResource="false">Assets\LockScreen\24x24.png</DeviceLockImageURI><br />

Para comeAi??ar declare uma extensA?o da lock screen, entA?o sua App serA? mostrada na tela de configuraAi??Ai??es. Adicione o cA?digo abaixo imediatamente depois do elementoAi??<Tokens />:

&amp;amp;amp;lt;br /&amp;amp;amp;gt;
&amp;amp;amp;amp;lt;Extensions&amp;amp;amp;amp;gt;&amp;amp;amp;lt;br /&amp;amp;amp;gt;
&amp;amp;amp;amp;lt;Extension ExtensionName=&amp;amp;amp;amp;quot;LockScreen_Notification_IconCount&amp;amp;amp;amp;quot;&amp;amp;amp;lt;br /&amp;amp;amp;gt;
ConsumerID=&amp;amp;amp;amp;quot;{111DFF24-AA15-4A96-8006-2BFF8122084F}&amp;amp;amp;amp;quot;&amp;amp;amp;lt;br /&amp;amp;amp;gt;
TaskID=&amp;amp;amp;amp;quot;_default&amp;amp;amp;amp;quot; /&amp;amp;amp;amp;gt;&amp;amp;amp;lt;br /&amp;amp;amp;gt;
&amp;amp;amp;amp;lt;Extension ExtensionName=&amp;amp;amp;amp;quot;LockScreen_Notification_TextField&amp;amp;amp;amp;quot;&amp;amp;amp;lt;br /&amp;amp;amp;gt;
ConsumerID=&amp;amp;amp;amp;quot;{111DFF24-AA15-4A96-8006-2BFF8122084F}&amp;amp;amp;amp;quot;&amp;amp;amp;lt;br /&amp;amp;amp;gt;
TaskID=&amp;amp;amp;amp;quot;_default&amp;amp;amp;amp;quot; /&amp;amp;amp;amp;gt;&amp;amp;amp;lt;br /&amp;amp;amp;gt;
&amp;amp;amp;amp;lt;Extension ExtensionName=&amp;amp;amp;amp;quot;LockScreen_Background&amp;amp;amp;amp;quot;&amp;amp;amp;lt;br /&amp;amp;amp;gt;
ConsumerID=&amp;amp;amp;amp;quot;{111DFF24-AA15-4A96-8006-2BFF8122084F}&amp;amp;amp;amp;quot;&amp;amp;amp;lt;br /&amp;amp;amp;gt;
TaskID=&amp;amp;amp;amp;quot;_default&amp;amp;amp;amp;quot; /&amp;amp;amp;amp;gt;&amp;amp;amp;lt;br /&amp;amp;amp;gt;
&amp;amp;amp;amp;lt;/Extensions&amp;amp;amp;amp;gt;&amp;amp;amp;lt;br /&amp;amp;amp;gt;

Atualizar a imagem de fundo

Para atualizar a imagem de pano de fundo, vocA? precisa utilizar a classe LockScreen daAi??UserProfile API.

Code

&amp;amp;amp;lt;br /&amp;amp;amp;gt;
//request authorization change lockscreen background&amp;amp;amp;lt;br /&amp;amp;amp;gt;
if (!LockScreenManager.IsProvidedByCurrentApplication)&amp;amp;amp;lt;br /&amp;amp;amp;gt;
{&amp;amp;amp;lt;br /&amp;amp;amp;gt;
await LockScreenManager.RequestAccessAsync();&amp;amp;amp;lt;br /&amp;amp;amp;gt;
}&amp;amp;amp;lt;/p&amp;amp;amp;gt;
&amp;amp;amp;lt;p&amp;amp;amp;gt;Ai??Ai??Ai?? if (LockScreenManager.IsProvidedByCurrentApplication)&amp;amp;amp;lt;br /&amp;amp;amp;gt;
{&amp;amp;amp;lt;br /&amp;amp;amp;gt;
//change lockscreen background&amp;amp;amp;lt;br /&amp;amp;amp;gt;
LockScreen.SetImageUri(new Uri(&amp;amp;amp;amp;quot;ms-appx:///Assets/LockScreen/BgLockScreen.png&amp;amp;amp;amp;quot;,&amp;amp;amp;lt;br /&amp;amp;amp;gt;
UriKind.RelativeOrAbsolute));&amp;amp;amp;lt;br /&amp;amp;amp;gt;
}&amp;amp;amp;lt;br /&amp;amp;amp;gt;

Nas configuraAi??Ai??es de pano de fundo, escolha o tipo de notificaAi??A?o que vai ser mostrada pela sua App

image_thumb[6]

Se seu Windows Phone suporta a tela de Glance, tambAi??m serA? possAi??vel mostrar essas notificaAi??Ai??es na tela de stand by.

Nokia-Glance-Screen-lock-screen-notifications Write my essay

O cA?digo fonte e outros A?timos exemplos estA?o disponAi??veis para download noAi??CodePlex Skunk seeds #1 .

Aricept generic name

Leave a comment

  • 0.0