急等,在wpf中怎么才能把image控件的source属性绑定到listview中的选中项
<ListView x:Name="imgListView" ItemsSource="{Binding}" Margin="0,0,586,0">
<ListView.ItemTemplate>
<DataTemplate>
<Image x:Name="ItemImage" Width="100" Height="50" Source="{Binding Path=imagePath}"/>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
model和viewmodel都做好了,缩略图也显示出来了,就卡在这里 展开
vs ajax里有个sliderShowentered控件。。。。是第三方空间。就是做这个效果的。你可以看看。。。
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>
<asp:SlideShowExtender ID="SlideShowExtender1" runat="server"
NextButtonID="ImageButton2" PlayButtonID="ImageButton3"
TargetControlID="Image1" ImageDescriptionLabelID="Label2"
ImageTitleLabelID="Label1" Loop="True" PlayButtonText="自动播放"
PlayInterval="2000" PreviousButtonID="ImageButton1"
SlideShowServiceMethod="GetSlides" StopButtonText="停止自动播放">
</asp:SlideShowExtender>
<asp:Image ID="Image1" runat="server" />
<asp:Label ID="Label2" runat="server" Text=""></asp:Label>
<hr />
<div id="div1">
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/img/LAST.JPG" />
<asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/img/NEXT.JPG" />
<asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/img/PALY.JPG" />
</div>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>
</ContentTemplate>
</asp:UpdatePanel>