Replies: 5 comments 11 replies
-
@edgarfgp Thanks for the feedback!
I think I'll make every color properties use by default
This one, I'm yet to work on it but my current idea is to create specific widgets for it. Label("Hello")
.style(
// Local style
LabelStyle()
.textColor(Color.Blue)
.font(FontFamily.OpenSans)
)
)
Application(
ContentPage(
VerticalStackLayout([
Button("Click me", OnClicked)
Button("Destroy the world", OnDestroyClicked)
.styleKey("destructive")
])
)
)
.styles([
// Global style applied to all buttons
ButtonStyle()
.backgroundColor(light = Color.Gray, dark = Color.Yellow)
// Global style only applied to buttons with style key `destructive`
ButtonStyle("destructive")
.textColor(Color.Red)
]) which would map to the basic styling in XF <Application>
<Application.Resources>
<Style TargetType="Button">
<Setter PropertyName="BackgroundColor" Value="{AppThemeBinding Light=Color.Gray, Dark=Color.Yellow}" />
</Style>
<Style TargetType="Button" Key="destructive">
<Setter PropertyName="TextColor" Value="Color.Red" />
</Style>
</Application.Resources>
</Application>
My idea behind this is to make some fields mandatory for each controls, but only in a way that makes sense. So my thinking was: a Grid, we use it for columns and rows. Do you think it would be better to not require both of them? |
Beta Was this translation helpful? Give feedback.
-
@edgarfgp For this one, we won't add |
Beta Was this translation helpful? Give feedback.
-
What is the alternative of ViewRef() in V2 ? |
Beta Was this translation helpful? Give feedback.
-
It would be good to Add Extension methods for HasNavigationBar and HasBackButton in the NavigationPage module. |
Beta Was this translation helpful? Give feedback.
-
When consuming some libraries that expose it's own EventHandler the existing Attributes.defineEvent wouldn't work . You can fix it by define your own defineEvent based on the original implementation like this. I was wondering if we can do something to expose a defineEvent that will work with any handler ?
|
Beta Was this translation helpful? Give feedback.
-
I'm updating an app that will be released early next year to V2 and in order to help Fabulous to get ready for V2 . I'm creating this discussion to share How it is going (blockers, improvements) .
I will updating this discussion daily.
Add better support for VisualStateManager
ContentPage
Label
Button
NavigationPage
Missing CarrouselView
Missing CollectionView
Missing IndicatorView
Missing AbsoluteLayout
What is the alternative of ViewRef() in V2 ?
Beta Was this translation helpful? Give feedback.
All reactions