Search code examples
androidwindows-phone-8android-xmlandroid-drawablewindows-phone-8-sdk

Android XML Drawable Windows Phone 8 Equivalent


I have an Android app that uses a lot of XML drawables (shapes, layer lists, and state list), and I want to port this app to Windows Phone 8. Is there an equivalent to XML drawables (specifically the types I list above) in Windows Phone 8?


Solution

  • For layer lists and state list i think the equivalent is VisualStates but they are not so similar. Define different visual states for a control, You can find many different examples to VisualState's here inside a VisualState you gave different properties different values (such as different Image to background of a button when pressed) or define animations.

    For shapes there are classes that you can define in your xaml file. If you want to define a gradient should look at brushes.