c# - Is there any way to separate the styling from my XAML in Xamarin.Forms -


i'm using xamarin.forms in pcl xaml pages. way figured out style controls use inline syntax.

<button text="inquiry" textcolor="blue" /> 

i prefer use structure one:

<page.resources>     <style targettype="button">         <setter property="borderthickness" value="5" />         <setter property="foreground" value="blue" />     </style> </page.resources> 

(http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh465381.aspx)

however, style element not (yet) supported. has succeeded in separating layout contents?

fyi: i've posted question in xamarin forums, got here google might want check out page: http://forums.xamarin.com/discussion/19287/styling-of-xamarin-xaml#latest

from xamarin.forms 1.3 more styling options.

xamarin.forms 1.3 technology preview

  • support styles in xaml , in code
  • allow styles based on dynamicresources via style.baseresourcekey
  • add platform specific styles via device.styles (supports ios dynamic type)

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -