从项目xamarin.forms的文件上传syncfusion弹出图像

我正在使用Xamarin forms控件来开发synfusion

我需要一个页面,该页面在弹出页面中有图像上传,但是图像不是从项目图像文件夹上传的。

调试之后,似乎主要的问题是标记及其属性

所以请建议我该用什么。

<sfPopup:SfPopupLayout x:Name="popupLayout">
    <sfPopup:SfPopupLayout.PopupView>
            <sfPopup:PopupView HeaderTitle="Popup Imagess"
                           Animationmode="None"
                           AutoSizeMode="None"
                           HeightRequest="{OnPlatform UWP={OnIdiom Phone=250,Tablet=290,Desktop=290},Android=350,iOS=250}" >

                <sfPopup:PopupView.ContentTemplate>
                <DataTemplate>
                    <syncfusion:SfListView  x:Name="listView" Orientation="Horizontal" Padding="10,10,10"
                               Selectionmode="None" Grid.Row="1"
                               ItemsSource="{Binding Gallerynfo}"
                                ItemDoubletapped="ListView_ItemDoubletapped_1"
                               ItemSpacing="3">


                        <syncfusion:SfListView.ItemTemplate>
                            <DataTemplate>
                                <ViewCell>
                                    <ViewCell.View>
                                        <Frame BackgroundColor="#EEEEEE" Padding="2">

                                            <Grid x:Name="headerGrid" RowSpacing="1">
                                                <Label LineBreakMode="NoWrap"
         Text="photo" FontAttributes="Bold" TextColor="Black" HorizontalOptions="Center" VerticalOptions="Center"/>
                                                <Image Source="{Binding Image}" Aspect="Fill"/>
                                                <Label Grid.Row="1" Text="{Binding ImageTitle}"
                                   LineBreakMode="WordWrap"
                                   HorizontalTextAlignment="Start"
                                   VerticalTextAlignment="Center"
                                   TextColor="Black" Opacity="0.87"
                                   Margin="16,0">
                                                </Label>

                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="*" />

                                                </Grid.RowDefinitions>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="50" />
                                                    <ColumnDefinition Width="200" />
                                                    <ColumnDefinition Width="50" />
                                                </Grid.ColumnDefinitions>

                                            </Grid>
                                        </Frame>
                                    </ViewCell.View>
                                </ViewCell>
                            </DataTemplate>
                            </syncfusion:SfListView.ItemTemplate>
                    </syncfusion:SfListView>
                </DataTemplate>
            </sfPopup:PopupView.ContentTemplate>
        </sfPopup:PopupView>
    </sfPopup:SfPopupLayout.PopupView>
    <sfPopup:SfPopupLayout.Content>
        <StackLayout x:Name="layout">
            <Button x:Name="clickToShowPopup" Text="ClickToShowPopup" VerticalOptions="Start" 
           HorizontalOptions="FillAndExpand"  Clicked="ClickToShowPopup_Clicked" />
        </StackLayout>
    </sfPopup:SfPopupLayout.Content>
</sfPopup:SfPopupLayout>
zubing 回答:从项目xamarin.forms的文件上传syncfusion弹出图像

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3144923.html

大家都在问