C# 如何为xamarin形式的帧提供阴影效果
我是xamarin I wan的新手,为了给我的帧添加阴影效果并避免帧的顶部边界线,我尝试了帧的“Hassadow”属性,但这对我没有帮助。我怎样才能做到这一点 请帮帮我 这是我的XamlC# 如何为xamarin形式的帧提供阴影效果,c#,xamarin.forms,frame,shadow,C#,Xamarin.forms,Frame,Shadow,我是xamarin I wan的新手,为了给我的帧添加阴影效果并避免帧的顶部边界线,我尝试了帧的“Hassadow”属性,但这对我没有帮助。我怎样才能做到这一点 请帮帮我 这是我的Xaml <ListView x:Name="lv_search" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" RowHeight="105"
<ListView x:Name="lv_search" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" RowHeight="105" ItemTapped="lv_search_ItemTapped"
SeparatorColor="White" BackgroundColor="Black" Margin="0,15,0,0">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Grid HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" BackgroundColor="White">
<Grid Margin="20,10,0,10" BackgroundColor="White">
<Frame BackgroundColor="White" >
<StackLayout Orientation="Horizontal" HorizontalOptions="FillAndExpand">
<StackLayout Orientation="Horizontal" HorizontalOptions="StartAndExpand" VerticalOptions="FillAndExpand" Margin="0,0,10,0">
<AbsoluteLayout HorizontalOptions="StartAndExpand">
<Image Source="ellipse_1" VerticalOptions="CenterAndExpand" HorizontalOptions="FillAndExpand"
AbsoluteLayout.LayoutFlags="All" AbsoluteLayout.LayoutBounds="0.01,0.4,1,1" BackgroundColor="White"/>
<Image Source="{Binding Image}" AbsoluteLayout.LayoutBounds="0.02,0.4,1,1" AbsoluteLayout.LayoutFlags="All"
HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand" />
</AbsoluteLayout>
<StackLayout AbsoluteLayout.LayoutBounds="0.035,0.5,1,1" AbsoluteLayout.LayoutFlags="All" Orientation="Horizontal"
HorizontalOptions="FillAndExpand" VerticalOptions="CenterAndExpand">
<Label x:Name="lbl_categories" HorizontalOptions="StartAndExpand" VerticalOptions="CenterAndExpand"
Margin="10,0,0,0" FontFamily="Proxima-Nova-Semibold" TextColor="#222222" Text="{Binding Title}"
LineBreakMode="WordWrap" HorizontalTextAlignment="Start" FontSize="17.3" FontAttributes="Bold"/>
</StackLayout>
</StackLayout>
<Image HorizontalOptions="EndAndExpand" VerticalOptions="Center" Source="arrow"
AbsoluteLayout.LayoutBounds="0.9,0.3,0,0.3" AbsoluteLayout.LayoutFlags="All" />
</StackLayout>
</Frame>
</Grid>
<Image Source="img_frm" Margin="15,0,0,0" AbsoluteLayout.LayoutBounds="1,0.5,1,1" HorizontalOptions="StartAndExpand"
AbsoluteLayout.LayoutFlags="All"/>
</Grid>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
但是我想要这样的一页
页面差异用蓝色墨水标记。Alex Dunn的这篇文章看起来正是您想要的:
请注意,您可以随心所欲地控制高程Alex Dunn的这篇文章看起来正是您想要的:
请注意,您可以根据需要控制标高您可以使用hassadow=“True”
atribute on Frame定义
您把哈桑放在哪里了?必须是这样
<i> <Frame HasShadow="True" ...> </Frame> </i>
您可以使用hassadow=“True”
atribute-on-Frame定义
您把哈桑放在哪里了?必须是这样
<i> <Frame HasShadow="True" ...> </Frame> </i>