pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill van Melle <bill.van.me...@gmail.com>
Subject Applying a style to all elements of a control
Date Tue, 22 Mar 2011 02:26:56 GMT
I'm trying to understand if there's a way to set a common style for all like
elements in a bxml file, e.g., make the text on all the Label controls have
font size = 9, or for all PushButton's to have a grey background.  Or even
cooler, setting the font size for *all* elements that render text (something
WPF lets you do at the top level of a XAML file -- they have a notion of
certain properties being inheritable thru a layout hierarchy).

There's a note in the 2.0 change log about "named styles" (
https://issues.apache.org/jira/browse/PIVOT-553).  I can't tell from the
terse example in the ticket whether the capability I'm looking for exists,
or just how to do it.  Certainly, the example there is not much less wordy
(if at all) than simply repeating the style verbatim if it's a simple style.
 And is there a way to do it without a separate json file, something like

<bxml:define>
  <Style bxml:id="labelStyle" something or other />
</bxml:define>

Mime
View raw message