|
54 | 54 | <RowDefinition Height="auto" />
|
55 | 55 | <RowDefinition />
|
56 | 56 | </Grid.RowDefinitions>
|
57 |
| - <StackPanel Margin="10" |
| 57 | + |
| 58 | + <StackPanel Margin="5,0,5,0" |
58 | 59 | VerticalAlignment="Top">
|
59 |
| - <MediaPlayerElement x:Name="mediaPlayerElement" |
60 |
| - HorizontalAlignment="Stretch" |
61 |
| - AreTransportControlsEnabled="True" |
62 |
| - AutoPlay="False" /> |
| 60 | + <Grid> |
| 61 | + <Grid.ColumnDefinitions> |
| 62 | + <ColumnDefinition Width="Auto" /> |
| 63 | + <ColumnDefinition /> |
| 64 | + <ColumnDefinition Width="2*" /> |
| 65 | + </Grid.ColumnDefinitions> |
| 66 | + <MediaPlayerElement x:Name="mediaPlayerElement" |
| 67 | + Grid.Column="2" |
| 68 | + HorizontalAlignment="Stretch" |
| 69 | + AreTransportControlsEnabled="True" |
| 70 | + AutoPlay="False" /> |
| 71 | + <TextBlock Grid.Column="0" |
| 72 | + Margin="10,0" |
| 73 | + VerticalAlignment="Center" |
| 74 | + Text="قاری" /> |
| 75 | + <ComboBox x:Name="CmbQari" |
| 76 | + Grid.Column="1" |
| 77 | + HorizontalAlignment="Stretch" |
| 78 | + VerticalAlignment="Center" |
| 79 | + ItemsSource="{x:Bind QarisCollection, Mode=OneWay}" |
| 80 | + SelectedIndex="{x:Bind QariIndex, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" |
| 81 | + SelectedItem="{x:Bind CurrentQari, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" |
| 82 | + SelectionChanged="CmbQari_SelectionChanged"> |
| 83 | + <ComboBox.ItemTemplate> |
| 84 | + <DataTemplate x:DataType="table:QuranAudio"> |
| 85 | + <StackPanel Orientation="Horizontal"> |
| 86 | + <TextBlock Text="{x:Bind PName}" /> |
| 87 | + <TextBlock Text="-" /> |
| 88 | + <TextBlock Text="{x:Bind Name}" /> |
| 89 | + </StackPanel> |
| 90 | + </DataTemplate> |
| 91 | + </ComboBox.ItemTemplate> |
| 92 | + </ComboBox> |
| 93 | + </Grid> |
| 94 | + |
63 | 95 | <Border Style="{ThemeResource InfoBorderPanelStyle}">
|
64 |
| - <CommandBar HorizontalAlignment="Center" |
65 |
| - Background="Transparent" |
66 |
| - DefaultLabelPosition="Right" |
67 |
| - IsOpen="False"> |
68 |
| - <AppBarToggleButton x:Name="btnShowTranslation" |
69 |
| - Checked="OnAppBarToggleButtonChanged" |
70 |
| - Icon="Caption" |
71 |
| - IsChecked="True" |
72 |
| - Label="نمایش ترجمه" |
73 |
| - Tag="Translation" |
74 |
| - Unchecked="OnAppBarToggleButtonChanged" /> |
75 |
| - <AppBarToggleButton x:Name="btnShowAya" |
76 |
| - Checked="OnAppBarToggleButtonChanged" |
77 |
| - Icon="Caption" |
78 |
| - IsChecked="True" |
79 |
| - Label="نمایش آیه" |
80 |
| - Tag="Aya" |
81 |
| - Unchecked="OnAppBarToggleButtonChanged" /> |
82 |
| - <AppBarSeparator /> |
83 |
| - <AppBarButton x:Name="btnNext" |
84 |
| - Click="AppBarButton_Click" |
85 |
| - Icon="Next" |
86 |
| - Label="بعدی" |
87 |
| - Tag="Next" /> |
88 |
| - <AppBarToggleButton x:Name="btnPlay" |
89 |
| - Click="AppBarToggleButton_Click" |
90 |
| - Icon="Play" |
91 |
| - Label="پخش" /> |
92 |
| - <AppBarButton x:Name="btnPrev" |
93 |
| - Click="AppBarButton_Click" |
94 |
| - Icon="Previous" |
95 |
| - Label="قبلی" |
96 |
| - Tag="Previous" /> |
97 |
| - </CommandBar> |
| 96 | + <Grid> |
| 97 | + <Grid.ColumnDefinitions> |
| 98 | + <ColumnDefinition Width="Auto" /> |
| 99 | + <ColumnDefinition /> |
| 100 | + <ColumnDefinition Width="2*" /> |
| 101 | + </Grid.ColumnDefinitions> |
| 102 | + <TextBlock Margin="10,0" |
| 103 | + VerticalAlignment="Center" |
| 104 | + Text="مترجم" /> |
| 105 | + <ComboBox x:Name="CmbTranslation" |
| 106 | + Grid.Column="1" |
| 107 | + HorizontalAlignment="Stretch" |
| 108 | + VerticalAlignment="Center" |
| 109 | + ItemsSource="{x:Bind TranslationsCollection, Mode=OneWay}" |
| 110 | + SelectedIndex="{x:Bind TranslationIndex, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" |
| 111 | + SelectedItem="{x:Bind CurrentTranslation, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" |
| 112 | + SelectionChanged="CmbTranslation_SelectionChanged"> |
| 113 | + <ComboBox.ItemTemplate> |
| 114 | + <DataTemplate x:DataType="table:QuranTranslation"> |
| 115 | + <StackPanel Orientation="Horizontal"> |
| 116 | + <TextBlock Text="{x:Bind Name}" /> |
| 117 | + <TextBlock Text="-" /> |
| 118 | + <TextBlock Text="{x:Bind Language}" /> |
| 119 | + </StackPanel> |
| 120 | + </DataTemplate> |
| 121 | + </ComboBox.ItemTemplate> |
| 122 | + </ComboBox> |
| 123 | + |
| 124 | + <CommandBar Grid.Column="2" |
| 125 | + HorizontalAlignment="Center" |
| 126 | + Background="Transparent" |
| 127 | + DefaultLabelPosition="Right" |
| 128 | + IsOpen="False"> |
| 129 | + <AppBarToggleButton x:Name="btnShowTranslation" |
| 130 | + Checked="OnAppBarToggleButtonChanged" |
| 131 | + Icon="Caption" |
| 132 | + IsChecked="True" |
| 133 | + Label="نمایش ترجمه" |
| 134 | + Tag="Translation" |
| 135 | + Unchecked="OnAppBarToggleButtonChanged" /> |
| 136 | + <AppBarToggleButton x:Name="btnShowAya" |
| 137 | + Checked="OnAppBarToggleButtonChanged" |
| 138 | + Icon="Caption" |
| 139 | + IsChecked="True" |
| 140 | + Label="نمایش آیه" |
| 141 | + Tag="Aya" |
| 142 | + Unchecked="OnAppBarToggleButtonChanged" /> |
| 143 | + <AppBarSeparator /> |
| 144 | + <AppBarButton x:Name="btnNext" |
| 145 | + Click="AppBarButton_Click" |
| 146 | + Icon="Next" |
| 147 | + Label="بعدی" |
| 148 | + Tag="Next" /> |
| 149 | + <AppBarToggleButton x:Name="btnPlay" |
| 150 | + Click="AppBarToggleButton_Click" |
| 151 | + Icon="Play" |
| 152 | + Label="پخش" /> |
| 153 | + <AppBarButton x:Name="btnPrev" |
| 154 | + Click="AppBarButton_Click" |
| 155 | + Icon="Previous" |
| 156 | + Label="قبلی" |
| 157 | + Tag="Previous" /> |
| 158 | + </CommandBar> |
| 159 | + |
| 160 | + </Grid> |
98 | 161 | </Border>
|
99 | 162 |
|
100 | 163 | </StackPanel>
|
|
0 commit comments