Hi, I am using the radial menu. The center button image doesn't show when it appears on the screen. It only appears in the center after I click on it to open.
<radialMenu:SfRadialMenu x:Name="RadMenu" RimRadius="200" CenterButtonRadius="60" Point="120,215" IsDragEnabled="False" IsEnabled="False" SeparatorColor="Red" RimColor="#FFF880" CenterButtonBackgroundColor="#FFF880" SelectionColor="#63a9ef" Opened="RadMenu_Opened" Closed="RadMenu_Closed" DragEnd="RadMenu_DragEnd" CenterButtonBorderColor="#FFF880" >
<radialMenu:SfRadialMenu.CenterButtonView >
<Frame BackgroundColor="Red" CornerRadius="140"
Padding="0" IsClippedToBounds="True">
<Image Source="koko2" Aspect="AspectFill"/>
</Frame>
</radialMenu:SfRadialMenu.CenterButtonView>
<radialMenu:SfRadialMenu.Items>
<radialMenu:SfRadialMenuItem Text="Reminder" FontSize="16" ItemWidth="120" FontFamily="SecondFont" HorizontalOptions="CenterAndExpand" ItemTapped="Reminder_ItemTapped"/>
<radialMenu:SfRadialMenuItem Text="Need to Buy" FontSize="16" ItemWidth="120" FontFamily="SecondFont"/>
</radialMenu:SfRadialMenu.Items>
</radialMenu:SfRadialMenu>
Hi Ruba, I've figured out what is causing the problem. It is due to the image being placed in a frame. If I place an image without the frame it works normally, and shows the image I want when it first appears. However the purpose of the frame was to crop the image into a circle. Do you recommend any other method to crop the image into a circle? I have tried using EllipseGeometry (as seen below) how ever this causes the radmenu to have an oblong shape.
<radialMenu:SfRadialMenu IsVisible="False" x:Name="RadMenu" RimRadius="200" CenterButtonRadius="60" Point="120,215" SeparatorColor="Red" RimColor="#FFF880" CenterButtonBackgroundColor="#FFF880" SelectionColor="#63a9ef" Opened="RadMenu_Opened" Closed="RadMenu_Closed" DragEnd="RadMenu_DragEnd" CenterButtonBorderColor="#FFF880" >
<radialMenu:SfRadialMenu.CenterButtonView >
<Image Source="RadMenuDefault" HeightRequest="110" WidthRequest="110" Aspect="AspectFill" VerticalOptions="Center" HorizontalOptions="Center">
<Image.Clip>
<EllipseGeometry
Center="60,60" RadiusX="110" RadiusY="110"/>
</Image.Clip>
</Image>
</radialMenu:SfRadialMenu.CenterButtonView>
<radialMenu:SfRadialMenu.Items>
<radialMenu:SfRadialMenuItem Text="Today's Ping" FontSize="16" ItemWidth="120" FontFamily="SecondFont" VerticalOptions="Center" HorizontalOptions="Center" ItemTapped="Reminder_ItemTapped"/>
<radialMenu:SfRadialMenuItem Text="Paw Journal" FontSize="16" ItemWidth="120" FontFamily="SecondFont" ItemTapped="SfRadialMenuItem_ItemTapped"/>
<radialMenu:SfRadialMenuItem Text="Customize Me!" FontSize="16" ItemWidth="120" FontFamily="SecondFont" ItemTapped="SfRadialMenuItem_ItemTapped_1"/>
</radialMenu:SfRadialMenu.Items>
</radialMenu:SfRadialMenu>
Hi I have follewed your code above. However the image on the radmenu appears like this (Its not round) I also tried making the image smaller however that doesn't work:
<radialMenu:SfRadialMenu.CenterButtonView>
<Grid VerticalOptions="Center" HorizontalOptions="Center" HeightRequest="110" WidthRequest="110">
<Image Source="imgd.png" BackgroundColor="Red" HeightRequest="110" WidthRequest="110" Aspect="AspectFill" VerticalOptions="Center" HorizontalOptions="Center">
<Image.Clip>
<EllipseGeometry
Center="55,55" RadiusX="55" RadiusY="55"/>
</Image.Clip>
</Image>
</Grid> </radialMenu:SfRadialMenu.CenterButtonView> |
<radialMenu:SfRadialMenu.CenterButtonView>
<Grid HeightRequest="110" WidthRequest="110" HorizontalOptions="Center" VerticalOptions="Center">
<border:SfBorder BorderThickness="0" BorderColor="Transparent" HorizontalOptions="Center" VerticalOptions="Center" CornerRadius="55">
<Image Source="imgd.png" BackgroundColor="Red" HeightRequest="110" WidthRequest="110" Aspect="AspectFill" VerticalOptions="Center" HorizontalOptions="Center">
</Image>
</border:SfBorder>
</Grid> </radialMenu:SfRadialMenu.CenterButtonView> |