VisualElement.SetIsShadowEnabled 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| SetIsShadowEnabled(BindableObject, Boolean) |
设置一个布尔值,该值控制是否启用阴影效果。 |
| SetIsShadowEnabled(IPlatformElementConfiguration<iOS,VisualElement>, Boolean) |
设置一个布尔值,该值控制是否启用阴影效果。 |
SetIsShadowEnabled(BindableObject, Boolean)
设置一个布尔值,该值控制是否启用阴影效果。
public static void SetIsShadowEnabled(Xamarin.Forms.BindableObject element, bool value);
static member SetIsShadowEnabled : Xamarin.Forms.BindableObject * bool -> unit
参数
- element
- BindableObject
要对其执行操作的特定于平台的元素。
- value
- System.Boolean
若为 true,则启用阴影。 否则为 false。
适用于
SetIsShadowEnabled(IPlatformElementConfiguration<iOS,VisualElement>, Boolean)
设置一个布尔值,该值控制是否启用阴影效果。
public static Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.iOS,Xamarin.Forms.VisualElement> SetIsShadowEnabled(this Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.iOS,Xamarin.Forms.VisualElement> config, bool value);
static member SetIsShadowEnabled : Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.iOS, Xamarin.Forms.VisualElement> * bool -> Xamarin.Forms.IPlatformElementConfiguration<Xamarin.Forms.PlatformConfiguration.iOS, Xamarin.Forms.VisualElement>
参数
特定于平台的配置,包含要对其执行操作的元素。
- value
- System.Boolean
若为 true,则启用阴影。 否则为 false。
返回
更新的配置对象,开发者可对其进行连续的方法调用。