Skip to content
This repository has been archived by the owner on Jul 31, 2022. It is now read-only.

Commit

Permalink
Made changes to the stations layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
AzureKitsune committed Dec 19, 2013
1 parent 66c258e commit 676af7f
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 29 deletions.
4 changes: 2 additions & 2 deletions src/WPF/Hanasu.Extensibility/Properties/AssemblyInfo.cs
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.80.0")]
[assembly: AssemblyFileVersion("1.0.80.0")]
[assembly: AssemblyVersion("1.0.88.0")]
[assembly: AssemblyFileVersion("1.0.88.0")]
4 changes: 2 additions & 2 deletions src/WPF/Hanasu.Playback.FMOD/Properties/AssemblyInfo.cs
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.65.0")]
[assembly: AssemblyFileVersion("1.0.65.0")]
[assembly: AssemblyVersion("1.0.73.0")]
[assembly: AssemblyFileVersion("1.0.73.0")]
4 changes: 2 additions & 2 deletions src/WPF/Hanasu/Properties/AssemblyInfo.cs
Expand Up @@ -51,5 +51,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.1.173.0")]
[assembly: AssemblyFileVersion("0.1.173.0")]
[assembly: AssemblyVersion("0.1.181.0")]
[assembly: AssemblyFileVersion("0.1.181.0")]
67 changes: 44 additions & 23 deletions src/WPF/Hanasu/View/MainWindow.xaml
Expand Up @@ -150,33 +150,54 @@
<TabItem Header="stations">
<Grid DataContext="{Binding StationsPaneViewModel}">
<ListBox ItemsSource="{Binding AvailableStations, UpdateSourceTrigger=PropertyChanged, IsAsync=True}"
SelectedItem="{Binding SelectedStation, Mode=TwoWay}" VirtualizingPanel.IsVirtualizing="True"
VirtualizingPanel.VirtualizationMode="Recycling">
SelectedItem="{Binding SelectedStation, Mode=TwoWay}" VirtualizingPanel.IsVirtualizing="True"
VirtualizingPanel.VirtualizationMode="Recycling"
ScrollViewer.CanContentScroll="True">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel Orientation="Horizontal" IsItemsHost="True" Width="{Binding ActualWidth,
RelativeSource={RelativeSource AncestorType={x:Type ScrollContentPresenter}, Mode=FindAncestor}}" Height="{Binding ActualHeight,
RelativeSource={RelativeSource AncestorType={x:Type ScrollContentPresenter}, Mode=FindAncestor}}" />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemTemplate>
<DataTemplate>
<Grid Height="50">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="30" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="50" />
</Grid.ColumnDefinitions>
<Grid Height="200" Width="200">
<Image Source="{Binding ImageUrl, IsAsync=True, Delay=3000}" />
<Grid x:Name="infoPanel" Panel.ZIndex="1" Height="0" VerticalAlignment="Bottom" Opacity=".7" Background="{DynamicResource WhiteColorBrush}">
<TextBlock Grid.Column="1" Text="{Binding Title, Mode=OneTime}"
VerticalAlignment="Center" FontSize="17" Margin="5 0 0 0" />

<Image Grid.Column="0" Source="{Binding ImageUrl, IsAsync=True, Delay=3000}" />

<TextBlock Grid.Column="1" Text="{Binding Title, Mode=OneTime}"
VerticalAlignment="Center" FontSize="17" Margin="5 0 0 0" />

<Button Grid.Column="2"
Style="{DynamicResource MetroCircleButtonStyle}"
x:Name="playBtn"
Height="25" Width="25" VerticalAlignment="Center">
<Rectangle Width="7" Height="7" Margin="3 0 0 0">
<Rectangle.Fill>
<VisualBrush Stretch="Fill" Visual="{StaticResource appbar_play}" />
</Rectangle.Fill>
</Rectangle>
</Button>
<Button Grid.Column="2"
Style="{DynamicResource MetroCircleButtonStyle}"
x:Name="playBtn"
Height="25" Width="25" VerticalAlignment="Center">
<Rectangle Width="7" Height="7" Margin="3 0 0 0">
<Rectangle.Fill>
<VisualBrush Stretch="Fill" Visual="{StaticResource appbar_play}" />
</Rectangle.Fill>
</Rectangle>
</Button>
</Grid>
</Grid>
<DataTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Trigger.EnterActions>
<BeginStoryboard>
<Storyboard Storyboard.TargetName="infoPanel" Storyboard.TargetProperty="Height">
<DoubleAnimation To="40" BeginTime="0:0:0" Duration="0:0:0.3" />
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
<Trigger.ExitActions>
<BeginStoryboard>
<Storyboard Storyboard.TargetName="infoPanel" Storyboard.TargetProperty="Height">
<DoubleAnimation To="0" BeginTime="0:0:0" Duration="0:0:0.3" />
</Storyboard>
</BeginStoryboard>
</Trigger.ExitActions>
</Trigger>
</DataTemplate.Triggers>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
Expand Down

0 comments on commit 676af7f

Please sign in to comment.