|
29 | 29 | </Window.Resources>
|
30 | 30 | <Grid>
|
31 | 31 | <Grid.ColumnDefinitions>
|
32 |
| - <ColumnDefinition Width="Auto"/> |
33 |
| - <ColumnDefinition Width="Auto"/> |
34 |
| - <ColumnDefinition/> |
35 |
| - <ColumnDefinition/> |
| 32 | + <ColumnDefinition Width="*" /> |
| 33 | + <ColumnDefinition Width="Auto" /> |
| 34 | + <ColumnDefinition Width="7*" /> |
36 | 35 | </Grid.ColumnDefinitions>
|
37 | 36 | <Grid Grid.Column="0">
|
38 | 37 | <Grid.RowDefinitions>
|
|
67 | 66 | Grid.Column="1"
|
68 | 67 | ResizeBehavior="PreviousAndNext" />
|
69 | 68 | <Grid Grid.Column="2">
|
70 |
| - <Grid.RowDefinitions> |
71 |
| - <RowDefinition /> |
72 |
| - <RowDefinition Height="Auto"/> |
73 |
| - </Grid.RowDefinitions> |
74 |
| - <Button Grid.Row="0" |
75 |
| - VerticalContentAlignment="Stretch" |
76 |
| - HorizontalContentAlignment="Stretch" |
| 69 | + <Grid.ColumnDefinitions> |
| 70 | + <ColumnDefinition/> |
| 71 | + <ColumnDefinition/> |
| 72 | + </Grid.ColumnDefinitions> |
| 73 | + <Grid Grid.Column="0"> |
| 74 | + <Grid.RowDefinitions> |
| 75 | + <RowDefinition /> |
| 76 | + <RowDefinition Height="Auto"/> |
| 77 | + </Grid.RowDefinitions> |
| 78 | + <Button Grid.Row="0" |
| 79 | + VerticalContentAlignment="Stretch" |
| 80 | + HorizontalContentAlignment="Stretch" |
77 | 81 | Click="onClickFirst">
|
78 |
| - <Grid> |
79 |
| - <Grid.RowDefinitions> |
80 |
| - <RowDefinition Height="Auto"/> |
81 |
| - <RowDefinition /> |
82 |
| - </Grid.RowDefinitions> |
83 |
| - <TextBlock Grid.Row="0"> |
84 |
| - <TextBlock.Text> |
85 |
| - <PriorityBinding> |
86 |
| - <PriorityBinding.Bindings> |
87 |
| - <Binding ElementName="window" |
88 |
| - Path="SelectedPhotos[0].ShortTitle"/> |
89 |
| - <Binding ElementName="window" |
90 |
| - Path="Photos[0].ShortTitle"/> |
91 |
| - </PriorityBinding.Bindings> |
92 |
| - </PriorityBinding> |
93 |
| - </TextBlock.Text> |
94 |
| - <TextBlock.TextDecorations> |
95 |
| - <PriorityBinding> |
96 |
| - <PriorityBinding.Bindings> |
97 |
| - <Binding Path="SelectedPhotos[0].MarkedForDeletion" |
98 |
| - Converter="{StaticResource RejectedToStrikethroughValueConverter}" |
99 |
| - ElementName="window" /> |
100 |
| - <Binding Path="Photos[0].MarkedForDeletion" |
101 |
| - Converter="{StaticResource RejectedToStrikethroughValueConverter}" |
102 |
| - ElementName="window" /> |
103 |
| - </PriorityBinding.Bindings> |
104 |
| - </PriorityBinding> |
105 |
| - </TextBlock.TextDecorations> |
106 |
| - </TextBlock> |
107 |
| - <ptwpf:ImageZoomer Grid.Row="1" |
108 |
| - MoveToPan="True" |
109 |
| - Name="firstZoom"> |
110 |
| - <ptwpf:ImageZoomer.Photo> |
111 |
| - <PriorityBinding> |
112 |
| - <PriorityBinding.Bindings> |
113 |
| - <Binding ElementName="window" |
114 |
| - Path="SelectedPhotos[0]"/> |
115 |
| - <Binding ElementName="window" |
116 |
| - Path="Photos[0]"/> |
117 |
| - </PriorityBinding.Bindings> |
118 |
| - </PriorityBinding> |
119 |
| - </ptwpf:ImageZoomer.Photo> |
120 |
| - <ptwpf:ImageZoomer.Scale> |
121 |
| - <Binding ElementName="secondZoom" |
122 |
| - Path="Scale" Mode="TwoWay"/> |
123 |
| - </ptwpf:ImageZoomer.Scale> |
124 |
| - <ptwpf:ImageZoomer.ImageX> |
125 |
| - <Binding ElementName="secondZoom" |
126 |
| - Path="ImageX" Mode="TwoWay"/> |
127 |
| - </ptwpf:ImageZoomer.ImageX> |
128 |
| - <ptwpf:ImageZoomer.ImageY> |
129 |
| - <Binding ElementName="secondZoom" |
130 |
| - Path="ImageY" Mode="TwoWay"/> |
131 |
| - </ptwpf:ImageZoomer.ImageY> |
132 |
| - </ptwpf:ImageZoomer> |
133 |
| - </Grid> |
134 |
| - </Button> |
135 |
| - <Button Grid.Row="1" Click="onDistinctFirst"> |
136 |
| - <Button.Content> |
137 |
| - Move to next image group |
138 |
| - </Button.Content> |
139 |
| - <Button.IsEnabled> |
140 |
| - <Binding Path="Photos.Count" |
141 |
| - ElementName="window" |
142 |
| - Converter="{StaticResource AnyToEnabledValueConverter}"/> |
143 |
| - </Button.IsEnabled> |
144 |
| - </Button> |
145 |
| - </Grid> |
146 |
| - <Grid Grid.Column="3"> |
147 |
| - <Grid.RowDefinitions> |
148 |
| - <RowDefinition /> |
149 |
| - <RowDefinition Height="Auto"/> |
150 |
| - </Grid.RowDefinitions> |
151 |
| - <Button Grid.Row="0" |
152 |
| - VerticalContentAlignment="Stretch" |
153 |
| - HorizontalContentAlignment="Stretch" |
154 |
| - Click="onClickSecond"> |
155 |
| - <Grid> |
156 |
| - <Grid.RowDefinitions> |
157 |
| - <RowDefinition Height="Auto"/> |
158 |
| - <RowDefinition /> |
159 |
| - </Grid.RowDefinitions> |
160 |
| - <TextBlock Grid.Row="0"> |
161 |
| - <TextBlock.Text> |
162 |
| - <PriorityBinding> |
163 |
| - <PriorityBinding.Bindings> |
164 |
| - <Binding ElementName="window" |
165 |
| - Path="SelectedPhotos[1].ShortTitle"/> |
166 |
| - <Binding ElementName="window" |
167 |
| - Path="Photos[1].ShortTitle"/> |
168 |
| - </PriorityBinding.Bindings> |
169 |
| - </PriorityBinding> |
170 |
| - </TextBlock.Text> |
171 |
| - <TextBlock.TextDecorations> |
172 |
| - <PriorityBinding> |
173 |
| - <PriorityBinding.Bindings> |
174 |
| - <Binding Path="SelectedPhotos[1].MarkedForDeletion" |
175 |
| - Converter="{StaticResource RejectedToStrikethroughValueConverter}" |
176 |
| - ElementName="window" /> |
177 |
| - <Binding Path="Photos[1].MarkedForDeletion" |
178 |
| - Converter="{StaticResource RejectedToStrikethroughValueConverter}" |
179 |
| - ElementName="window" /> |
180 |
| - </PriorityBinding.Bindings> |
181 |
| - </PriorityBinding> |
182 |
| - </TextBlock.TextDecorations> |
183 |
| - </TextBlock> |
184 |
| - <ptwpf:ImageZoomer Grid.Row="1" |
185 |
| - MoveToPan="True" |
186 |
| - x:Name="secondZoom"> |
187 |
| - <ptwpf:ImageZoomer.Photo> |
188 |
| - <PriorityBinding> |
189 |
| - <PriorityBinding.Bindings> |
190 |
| - <Binding ElementName="window" |
191 |
| - Path="SelectedPhotos[1]"/> |
192 |
| - <Binding ElementName="window" |
193 |
| - Path="Photos[1]"/> |
194 |
| - </PriorityBinding.Bindings> |
195 |
| - </PriorityBinding> |
196 |
| - </ptwpf:ImageZoomer.Photo> |
197 |
| - </ptwpf:ImageZoomer> |
198 |
| - </Grid> |
199 |
| - </Button> |
200 |
| - <Button Grid.Row="1" Click="onDistinctSecond"> |
201 |
| - <Button.Content> |
202 |
| - Move to next image group |
203 |
| - </Button.Content> |
204 |
| - <Button.IsEnabled> |
205 |
| - <Binding Path="Photos.Count" |
206 |
| - ElementName="window" |
207 |
| - Converter="{StaticResource AnyToEnabledValueConverter}"/> |
208 |
| - </Button.IsEnabled> |
209 |
| - </Button> |
| 82 | + <Grid> |
| 83 | + <Grid.RowDefinitions> |
| 84 | + <RowDefinition Height="Auto"/> |
| 85 | + <RowDefinition /> |
| 86 | + </Grid.RowDefinitions> |
| 87 | + <TextBlock Grid.Row="0"> |
| 88 | + <TextBlock.Text> |
| 89 | + <PriorityBinding> |
| 90 | + <PriorityBinding.Bindings> |
| 91 | + <Binding ElementName="window" |
| 92 | + Path="SelectedPhotos[0].ShortTitle"/> |
| 93 | + <Binding ElementName="window" |
| 94 | + Path="Photos[0].ShortTitle"/> |
| 95 | + </PriorityBinding.Bindings> |
| 96 | + </PriorityBinding> |
| 97 | + </TextBlock.Text> |
| 98 | + <TextBlock.TextDecorations> |
| 99 | + <PriorityBinding> |
| 100 | + <PriorityBinding.Bindings> |
| 101 | + <Binding Path="SelectedPhotos[0].MarkedForDeletion" |
| 102 | + Converter="{StaticResource RejectedToStrikethroughValueConverter}" |
| 103 | + ElementName="window" /> |
| 104 | + <Binding Path="Photos[0].MarkedForDeletion" |
| 105 | + Converter="{StaticResource RejectedToStrikethroughValueConverter}" |
| 106 | + ElementName="window" /> |
| 107 | + </PriorityBinding.Bindings> |
| 108 | + </PriorityBinding> |
| 109 | + </TextBlock.TextDecorations> |
| 110 | + </TextBlock> |
| 111 | + <ptwpf:ImageZoomer Grid.Row="1" |
| 112 | + MoveToPan="True" |
| 113 | + Name="firstZoom"> |
| 114 | + <ptwpf:ImageZoomer.Photo> |
| 115 | + <PriorityBinding> |
| 116 | + <PriorityBinding.Bindings> |
| 117 | + <Binding ElementName="window" |
| 118 | + Path="SelectedPhotos[0]"/> |
| 119 | + <Binding ElementName="window" |
| 120 | + Path="Photos[0]"/> |
| 121 | + </PriorityBinding.Bindings> |
| 122 | + </PriorityBinding> |
| 123 | + </ptwpf:ImageZoomer.Photo> |
| 124 | + <ptwpf:ImageZoomer.Scale> |
| 125 | + <Binding ElementName="secondZoom" |
| 126 | + Path="Scale" |
| 127 | + Mode="TwoWay"/> |
| 128 | + </ptwpf:ImageZoomer.Scale> |
| 129 | + <ptwpf:ImageZoomer.ImageX> |
| 130 | + <Binding ElementName="secondZoom" |
| 131 | + Path="ImageX" |
| 132 | + Mode="TwoWay"/> |
| 133 | + </ptwpf:ImageZoomer.ImageX> |
| 134 | + <ptwpf:ImageZoomer.ImageY> |
| 135 | + <Binding ElementName="secondZoom" |
| 136 | + Path="ImageY" |
| 137 | + Mode="TwoWay"/> |
| 138 | + </ptwpf:ImageZoomer.ImageY> |
| 139 | + </ptwpf:ImageZoomer> |
| 140 | + </Grid> |
| 141 | + </Button> |
| 142 | + <Button Grid.Row="1" Click="onDistinctFirst"> |
| 143 | + <Button.Content> |
| 144 | + Move to next image group |
| 145 | + </Button.Content> |
| 146 | + <Button.IsEnabled> |
| 147 | + <Binding Path="Photos.Count" |
| 148 | + ElementName="window" |
| 149 | + Converter="{StaticResource AnyToEnabledValueConverter}"/> |
| 150 | + </Button.IsEnabled> |
| 151 | + </Button> |
| 152 | + </Grid> |
| 153 | + <Grid Grid.Column="1"> |
| 154 | + <Grid.RowDefinitions> |
| 155 | + <RowDefinition /> |
| 156 | + <RowDefinition Height="Auto"/> |
| 157 | + </Grid.RowDefinitions> |
| 158 | + <Button Grid.Row="0" |
| 159 | + VerticalContentAlignment="Stretch" |
| 160 | + HorizontalContentAlignment="Stretch" |
| 161 | + Click="onClickSecond"> |
| 162 | + <Grid> |
| 163 | + <Grid.RowDefinitions> |
| 164 | + <RowDefinition Height="Auto"/> |
| 165 | + <RowDefinition /> |
| 166 | + </Grid.RowDefinitions> |
| 167 | + <TextBlock Grid.Row="0"> |
| 168 | + <TextBlock.Text> |
| 169 | + <PriorityBinding> |
| 170 | + <PriorityBinding.Bindings> |
| 171 | + <Binding ElementName="window" |
| 172 | + Path="SelectedPhotos[1].ShortTitle"/> |
| 173 | + <Binding ElementName="window" |
| 174 | + Path="Photos[1].ShortTitle"/> |
| 175 | + </PriorityBinding.Bindings> |
| 176 | + </PriorityBinding> |
| 177 | + </TextBlock.Text> |
| 178 | + <TextBlock.TextDecorations> |
| 179 | + <PriorityBinding> |
| 180 | + <PriorityBinding.Bindings> |
| 181 | + <Binding Path="SelectedPhotos[1].MarkedForDeletion" |
| 182 | + Converter="{StaticResource RejectedToStrikethroughValueConverter}" |
| 183 | + ElementName="window" /> |
| 184 | + <Binding Path="Photos[1].MarkedForDeletion" |
| 185 | + Converter="{StaticResource RejectedToStrikethroughValueConverter}" |
| 186 | + ElementName="window" /> |
| 187 | + </PriorityBinding.Bindings> |
| 188 | + </PriorityBinding> |
| 189 | + </TextBlock.TextDecorations> |
| 190 | + </TextBlock> |
| 191 | + <ptwpf:ImageZoomer Grid.Row="1" |
| 192 | + MoveToPan="True" |
| 193 | + x:Name="secondZoom"> |
| 194 | + <ptwpf:ImageZoomer.Photo> |
| 195 | + <PriorityBinding> |
| 196 | + <PriorityBinding.Bindings> |
| 197 | + <Binding ElementName="window" |
| 198 | + Path="SelectedPhotos[1]"/> |
| 199 | + <Binding ElementName="window" |
| 200 | + Path="Photos[1]"/> |
| 201 | + </PriorityBinding.Bindings> |
| 202 | + </PriorityBinding> |
| 203 | + </ptwpf:ImageZoomer.Photo> |
| 204 | + </ptwpf:ImageZoomer> |
| 205 | + </Grid> |
| 206 | + </Button> |
| 207 | + <Button Grid.Row="1" Click="onDistinctSecond"> |
| 208 | + <Button.Content> |
| 209 | + Move to next image group |
| 210 | + </Button.Content> |
| 211 | + <Button.IsEnabled> |
| 212 | + <Binding Path="Photos.Count" |
| 213 | + ElementName="window" |
| 214 | + Converter="{StaticResource AnyToEnabledValueConverter}"/> |
| 215 | + </Button.IsEnabled> |
| 216 | + </Button> |
| 217 | + </Grid> |
210 | 218 | </Grid>
|
211 | 219 | </Grid>
|
212 | 220 | </Window>
|
0 commit comments