<mx:ViewState> Element

An optional view state supported by the app.

This element is optional. If no supported view states are specified in the manifest, the app defaults to supporting filled only.

Syntax

<mx:ViewState
  Name = string />  

Attributes

Name
The name of a view state to allow. Allowed states are filled and snapped.

Element information

Parent elements mx:ViewStates

Example

<VisualElements 
    DisplayName="Media Application - Tab1"
    Logo="logo.png"
    SmallLogo="smalllogo.png"
    Description="Media Application - Tab1"
    ForegroundText="light"
    BackgroundColor="#464646">

    <DefaultTile ShowName="allLogos" WideLogo="widelogo.png" />
    <SplashScreen Image="splashscreen.png" />
    <mx:ViewStates>
        <mx:ViewState Name="snapped" />
        <mx:ViewState Name="filled" />
    </mx:ViewStates>
</VisualElements>