Skip to main content

apply_resources

Function apply_resources 

Source
pub fn apply_resources(root: &mut YuiNode)
Expand description

What yog build does to a screen before building it (and the design view’s own: d: values for bound ones): <Screen.Resources> (@Name values, <Style x:Key> with based_on) applied — a style’s attributes on every element naming it, its own winning — and yog-kit’s elements as the widgets they become (ToggleButton → Button, ListView → ScrollView, ItemsControl/ContentPresenter → a column or row). Unknown names are left as they are (yog check reports them).