Answered How do I define a style for WebView

  • Friday, June 15, 2012 8:09 AM
     
     

    Hi All:

    I want to write some words with different font styles in a control.  I have tried WebView and changed its default style, But I can not find the "Template" property from the "setter" property of WebView. How do I define the style of WebView in XAML?(Metro Style App)

    Thanks!

    Hilda

All Replies

  • Friday, June 15, 2012 5:34 PM
     
     Answered
    Only a Control can have template. For a element not derived from Control, you can only edit its style. You can specify the properties like width and height in style with setter, but not template because it has no a property called "Template".