xamarin/Xamarin.Forms
Setting IsPullToRefreshedEnabled of a custom ListView through a XAML style does not work
开放
#6,780 创建于 2019年7月4日
a/listviewa/stylee/4 :clock4:help wantedp/Androidp/iOS 🍎t/bug :bug:up-for-grabs
仓库指标
- 星标
- (5,644 个星标)
- PR 合并指标
- (30 天内没有已合并 PR)
描述
Description
I have a custom ListView that enables pull to refresh by default. If I use this class in XAML and set IsPullToRefreshEnabled to false through a style, it does NOT work.
Steps to Reproduce
- Run the attached repro on Android or iOS
- Observe that the background color of the list is set through the style
- Observe that pull to refresh is enabled by default in
CustomListView - Finally observe that pull to refresh is still enabled in MainPage's list even though the style wants to disable it
Expected Behavior
XAML styles should be able to override IsPullToRefreshEnabled in a custom control
Actual Behavior
Styles cannot override IsPullToRefreshEnabled.