xamarin/Xamarin.Forms
[Bug] [iOS] CheckBox SetImage(UIControlState.Normal) had no effect
开放
#7,180 创建于 2019年8月16日
a/customrenderere/5 :clock5:help wantedp/iOS 🍎t/bug :bug:up-for-grabs
仓库指标
- 星标
- (5,644 个星标)
- PR 合并指标
- (30 天内没有已合并 PR)
描述
Description
SetImage() method in CheckBoxRender doesn't set Image for Normal state.
Steps to Reproduce
- Create Xamarin.Forms 4.1 project.
- Create a custom checkbox and place it on view.
- Add
CheckBoxRendererin the iOS project for the created checkbox. - Set two image for
NormalandSelectedstate's. - Add code below to set Selected state for
Control:
Element.CheckedChanged += (s, ev) =>
{
Control.Selected = Element.IsChecked;
};
- Run the app. Check and uncheck the checkbox.
Expected Behavior
The checkbox in a Normal state does not have a default icon.
Actual Behavior
The checkbox in a Normal state has a default icon.
Basic Information
- Version with issue: 4.1.x
- Visual Studio Enterprise 2019 Version 16.0.3
- Xamarin.iOS Version: 12.8.0.2