-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRSSWindow.xaml
39 lines (35 loc) · 1.93 KB
/
RSSWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<Window x:Class="YourNamespace.RSSWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="RSS Feed" Height="450" Width="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
<ListView x:Name="feedListView" Margin="10">
<ListView.ItemTemplate>
<DataTemplate>
<Grid Margin="5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Image Source="{Binding Image}" Width="400" Height="Auto" Grid.Column="0" Grid.RowSpan="2" Margin="0,0,10,0" Stretch="Uniform"/>
<StackPanel Grid.Column="1" VerticalAlignment="Center">
<TextBlock Text="{Binding Title}" FontWeight="Bold" FontSize="20"/>
<TextBlock Text="{Binding Link}" TextWrapping="Wrap" FontSize="16" Margin="0,5,0,0"/>
</StackPanel>
<Button Content="Download" Grid.Column="1" Grid.Row="1" Width="100" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="0,10,0,0" Click="DownloadButton_Click"/>
</Grid>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</ScrollViewer>
</Grid>
</Window>