Rade Milovic
Rade Milovic

Reputation: 1015

Detect primary tile size in Windows 8 app

I am wondering is it possible to detect primary app tile size (small or wide) within code using c#? I want to implement live tiles functionality and I need to know which size is the app tile to select appropriate tile template.

Upvotes: 1

Views: 798

Answers (1)

Farhan Ghumra
Farhan Ghumra

Reputation: 15296

Please check MSDN documentataion of Guidelines and checklist for tiles and badges (Windows Store apps). You will see two important points.

  • If you use a wide tile, the user can resize the tile from wide to square or square to wide at any time. You don't know which size is currently displayed.

So you have to request both type of tile images i.e. small and large

  • The user can turn tile notifications off and on at any time.

That's you also can't know whether live tile is turn on or off programmatically.

You can combine large and small tile XML schema in one single XML, check this stack overflow answer.

Upvotes: 3

Related Questions