Diskuze: WPF simple playlist
V předchozím kvízu, Test znalostí C# .NET online, jsme si ověřili nabyté zkušenosti z kurzu.
Zobrazeno 2 zpráv z 2.
//= Settings::TRACKING_CODE_B ?> //= Settings::TRACKING_CODE ?>
V předchozím kvízu, Test znalostí C# .NET online, jsme si ověřili nabyté zkušenosti z kurzu.
co takto ?
<Grid>
<Grid.Resources>
<BooleanToVisibilityConverter x:Key="boolToVisCon" />
</Grid.Resources>
<ListBox Name="listbox" ItemsSource="{Binding Data}">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Background="Transparent" Orientation="Horizontal">
<Path Visibility="{Binding IsSelected, Converter={StaticResource boolToVisCon}}" Fill="#FF0F90CD" Stretch="Fill" Stroke="#FF0F90CD" Width="32" Height="32" Margin="4.677,28.962,0,27.063" HorizontalAlignment="Left" Panel.ZIndex="1"
Data="M293.002,78.53C249.646,3.435 153.618,-22.296 78.529,21.068 3.434,64.418 -22.298,160.442 21.066,235.534 64.416,310.629 160.441,336.364 235.531,293.004 310.627,249.639 336.371,153.62 293.002,78.53z M219.834,265.801C159.767,300.493 82.94,279.907 48.258,219.828 13.568,159.761 34.161,82.935 94.23,48.26 154.301,13.57 231.124,34.154 265.808,94.231 300.493,154.307 279.906,231.117 219.834,265.801z M213.555,150.652L131.341,102.703C123.849,98.329,117.806,101.826,117.848,110.492L118.269,205.666C118.307,214.33,124.424,217.857,131.938,213.517L213.523,166.414C221.029,162.082,221.045,155.026,213.555,150.652z"/>
<TextBlock Text="{Binding Text}"/>
<StackPanel.InputBindings>
<MouseBinding MouseAction="LeftDoubleClick" CommandParameter="{Binding}" Command="{Binding DataContext.SelectCommand, ElementName=listbox}" />
</StackPanel.InputBindings>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Grid>
Zobrazeno 2 zpráv z 2.