|
0
|
1 |
<UserControl
|
|
|
2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
3 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
4 |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
5 |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
6 |
mc:Ignorable="d"
|
|
|
7 |
x:Class="Iri.Modernisation.Controls.View.ConsultMenu"
|
|
|
8 |
xmlns:View="clr-namespace:Iri.Modernisation.Controls.View"
|
|
|
9 |
d:DesignWidth="184"
|
|
4
|
10 |
xmlns:Lang="clr-namespace:Iri.Modernisation.Lang;assembly=Iri.Modernisation.Lang"
|
|
0
|
11 |
xmlns:Input="clr-namespace:SLExtensions.Input;assembly=SLExtensions" Height="280"
|
|
|
12 |
>
|
|
4
|
13 |
<UserControl.Resources>
|
|
30
|
14 |
|
|
4
|
15 |
<ResourceDictionary>
|
|
30
|
16 |
<ResourceDictionary.MergedDictionaries>
|
|
|
17 |
<ResourceDictionary Source="/Iri.Modernisation.Styles;Component/Templates_CommonTemplate.xaml"/>
|
|
|
18 |
<ResourceDictionary Source="/Iri.Modernisation.Styles;Component/Templates_Binder.xaml"/>
|
|
|
19 |
|
|
|
20 |
</ResourceDictionary.MergedDictionaries>
|
|
|
21 |
<Lang:LangResource x:Name="LangLabels" x:Key="LangLabels"></Lang:LangResource>
|
|
4
|
22 |
</ResourceDictionary>
|
|
|
23 |
</UserControl.Resources>
|
|
|
24 |
<StackPanel x:Name="ConsultMenuPanel">
|
|
|
25 |
<TextBlock Style="{StaticResource CommonTextBlock}" x:Name="textBlock" Text="{Binding ConsultationViewTitle, Source={StaticResource LangLabels}}" TextWrapping="Wrap" />
|
|
0
|
26 |
|
|
|
27 |
|
|
|
28 |
<Grid>
|
|
|
29 |
<TextBox x:Name="SearchBox" Input:CommandService.CommandParameter="Test" KeyUp="SearchBox_KeyUp" Text="{Binding SearchWord, Mode=TwoWay}" TextWrapping="Wrap" Margin="0,0,67,0"/>
|
|
|
30 |
<!-- <Button Input:CommandService.Command="GetBook" Input:CommandService.CommandParameter="{Binding Text, ElementName=SearchWord}" Margin="113,0,0,0" Content="Search" HorizontalAlignment="Left" Width="63"/> -->
|
|
|
31 |
</Grid>
|
|
|
32 |
|
|
|
33 |
<StackPanel x:Name="SearchModulePanel" Height="80" Margin="0,0,8,0">
|
|
|
34 |
|
|
|
35 |
<StackPanel x:Name="SearchOptionPanel" Height="72">
|
|
4
|
36 |
<RadioButton IsChecked="{Binding SearchAuthor, Mode=TwoWay}" x:Name="AuthorCheckBox" Height="25" VerticalAlignment="Top" Content="{Binding ConsultationSearchByAuthorLabel, Source={StaticResource LangLabels}}" Foreground="White" />
|
|
|
37 |
<RadioButton IsChecked="{Binding SearchContributer, Mode=TwoWay}" x:Name="ContributerTextBox" Height="25" VerticalAlignment="Top" Content="{Binding ConsultationSearchByContributerLabel, Source={StaticResource LangLabels}}" Foreground="White" />
|
|
|
38 |
<RadioButton IsChecked="{Binding SearchTag, Mode=TwoWay}" x:Name="KeyWordCheckBox" Height="25" VerticalAlignment="Top" Content="{Binding ConsultationSearchByKeyWordsLabel, Source={StaticResource LangLabels}}" Foreground="White" />
|
|
0
|
39 |
</StackPanel>
|
|
|
40 |
</StackPanel>
|
|
|
41 |
<ListBox x:Name="ResultSearchList" Height="152" ItemsSource="{Binding VideoBooks}" Margin="0,0,8,0">
|
|
|
42 |
<ListBox.ItemTemplate>
|
|
|
43 |
<DataTemplate>
|
|
42
|
44 |
<StackPanel Orientation="Horizontal" Background="Transparent" Input:CommandService.Command="ClickBook" Input:CommandService.CommandParameter="{Binding VideoBook}">
|
|
|
45 |
<TextBlock Text="{Binding VideoBook.Title}" />
|
|
|
46 |
<TextBlock Text="("/>
|
|
|
47 |
<TextBlock Text="{Binding DownloadState}"/>
|
|
|
48 |
<TextBlock Text=")"/>
|
|
|
49 |
<ToolTipService.ToolTip>
|
|
|
50 |
<TextBlock Text="{Binding VideoBook.Title}"/>
|
|
0
|
51 |
</ToolTipService.ToolTip>
|
|
42
|
52 |
</StackPanel>
|
|
0
|
53 |
</DataTemplate>
|
|
|
54 |
</ListBox.ItemTemplate>
|
|
|
55 |
|
|
|
56 |
</ListBox>
|
|
|
57 |
</StackPanel>
|
|
|
58 |
</UserControl> |