|
101 | 101 |
|
102 | 102 | <WrapPanel Grid.Column="0" HorizontalAlignment="Stretch">
|
103 | 103 |
|
104 |
| - <ui:GitHubActionLink x:Name="stateSelection" |
105 |
| - Margin="5,0" |
106 |
| - VerticalAlignment="Center" |
107 |
| - ToolTip="Filter by state" |
108 |
| - Content="{Binding SelectedState}" |
109 |
| - HasDropDown="True"> |
110 |
| - <i:Interaction.Triggers> |
111 |
| - <i:EventTrigger EventName="Click"> |
112 |
| - <ui:OpenPopupAction TargetName="statePopup" /> |
113 |
| - </i:EventTrigger> |
114 |
| - </i:Interaction.Triggers> |
115 |
| - </ui:GitHubActionLink> |
116 |
| - |
117 |
| - <Popup x:Name="statePopup" |
118 |
| - AllowsTransparency="True" |
119 |
| - Placement="Bottom" |
120 |
| - PlacementTarget="{Binding ElementName=stateSelection}" |
121 |
| - StaysOpen="False"> |
122 |
| - <Border Style="{DynamicResource GitHubComboBoxBorder}"> |
123 |
| - <DockPanel Width="100" Style="{DynamicResource GitHubComboBoxDockPanelContainer}"> |
124 |
| - <ListBox x:Name="states" |
125 |
| - DockPanel.Dock="Top" |
126 |
| - ItemsSource="{Binding States}" |
127 |
| - SelectedItem="{Binding SelectedState}" |
128 |
| - Style="{DynamicResource GitHubPopupThing}"> |
129 |
| - <i:Interaction.Triggers> |
130 |
| - <i:EventTrigger EventName="SelectionChanged"> |
131 |
| - <ui:ClosePopupAction TargetName="statePopup" /> |
132 |
| - </i:EventTrigger> |
133 |
| - </i:Interaction.Triggers> |
134 |
| - </ListBox> |
135 |
| - </DockPanel> |
136 |
| - </Border> |
137 |
| - </Popup> |
| 104 | + <ui:LinkDropDown ItemsSource="{Binding States}" |
| 105 | + SelectedItem="{Binding SelectedState}"/> |
138 | 106 |
|
139 | 107 | <Separator Style="{StaticResource VerticalSeparator}" />
|
140 | 108 |
|
141 |
| - <ui:GitHubActionLink x:Name="assigneeSelection" |
142 |
| - Margin="5,0" |
143 |
| - VerticalAlignment="Center" |
144 |
| - ToolTip="Filter by assignee" |
145 |
| - Content="{Binding SelectedAssignee, |
146 |
| - Converter={ui:DefaultValueConverter}, |
147 |
| - ConverterParameter=Assignee}" |
148 |
| - HasDropDown="True"> |
149 |
| - <i:Interaction.Triggers> |
150 |
| - <i:EventTrigger EventName="Click"> |
151 |
| - <ui:OpenPopupAction TargetName="assigneePopup" /> |
152 |
| - </i:EventTrigger> |
153 |
| - </i:Interaction.Triggers> |
154 |
| - </ui:GitHubActionLink> |
155 |
| - |
156 |
| - <Popup x:Name="assigneePopup" |
157 |
| - AllowsTransparency="True" |
158 |
| - Placement="Bottom" |
159 |
| - PlacementTarget="{Binding ElementName=assigneeSelection}" |
160 |
| - StaysOpen="False"> |
161 |
| - <Border Style="{DynamicResource GitHubComboBoxBorder}"> |
162 |
| - <DockPanel Width="100" Style="{DynamicResource GitHubComboBoxDockPanelContainer}"> |
163 |
| - |
164 |
| - <ListBox x:Name="assignees" |
165 |
| - DockPanel.Dock="Top" |
166 |
| - ItemsSource="{Binding Assignees}" |
167 |
| - SelectedItem="{Binding SelectedAssignee}" |
168 |
| - Style="{DynamicResource GitHubPopupThing}"> |
169 |
| - <i:Interaction.Triggers> |
170 |
| - <i:EventTrigger EventName="SelectionChanged"> |
171 |
| - <ui:ClosePopupAction TargetName="assigneePopup" /> |
172 |
| - </i:EventTrigger> |
173 |
| - </i:Interaction.Triggers> |
174 |
| - </ListBox> |
175 |
| - </DockPanel> |
176 |
| - </Border> |
177 |
| - </Popup> |
178 |
| - |
| 109 | + <ui:LinkDropDown Header="Assignee" |
| 110 | + ItemsSource="{Binding Assignees}" |
| 111 | + SelectedItem="{Binding SelectedAssignee}"/> |
| 112 | + |
179 | 113 | <Separator Style="{StaticResource VerticalSeparator}" />
|
180 | 114 |
|
181 |
| - <ui:GitHubActionLink x:Name="authorSelection" |
182 |
| - Margin="5,0" |
183 |
| - VerticalAlignment="Center" |
184 |
| - ToolTip="Filter by author" |
185 |
| - Content="{Binding SelectedAuthor, |
186 |
| - Converter={ui:DefaultValueConverter}, |
187 |
| - ConverterParameter=Author}" |
188 |
| - HasDropDown="True"> |
189 |
| - <i:Interaction.Triggers> |
190 |
| - <i:EventTrigger EventName="Click"> |
191 |
| - <ui:OpenPopupAction TargetName="authorPopup" /> |
192 |
| - </i:EventTrigger> |
193 |
| - </i:Interaction.Triggers> |
194 |
| - |
195 |
| - </ui:GitHubActionLink> |
196 |
| - |
197 |
| - <Popup x:Name="authorPopup" |
198 |
| - AllowsTransparency="True" |
199 |
| - Placement="Bottom" |
200 |
| - PlacementTarget="{Binding ElementName=authorSelection}" |
201 |
| - StaysOpen="False"> |
202 |
| - <Border Style="{DynamicResource GitHubComboBoxBorder}"> |
203 |
| - <DockPanel Width="100" Style="{DynamicResource GitHubComboBoxDockPanelContainer}"> |
204 |
| - |
205 |
| - <ListBox x:Name="authors" |
206 |
| - DockPanel.Dock="Top" |
207 |
| - ItemsSource="{Binding Authors}" |
208 |
| - SelectedItem="{Binding SelectedAuthor}" |
209 |
| - Style="{DynamicResource GitHubPopupThing}"> |
210 |
| - <i:Interaction.Triggers> |
211 |
| - <i:EventTrigger EventName="SelectionChanged"> |
212 |
| - <ui:ClosePopupAction TargetName="authorPopup" /> |
213 |
| - </i:EventTrigger> |
214 |
| - </i:Interaction.Triggers> |
215 |
| - </ListBox> |
216 |
| - </DockPanel> |
217 |
| - </Border> |
218 |
| - </Popup> |
219 |
| - |
| 115 | + <ui:LinkDropDown Header="Author" |
| 116 | + ItemsSource="{Binding Authors}" |
| 117 | + SelectedItem="{Binding SelectedAuthor}"/> |
220 | 118 | </WrapPanel>
|
221 | 119 |
|
222 | 120 | <ui:GitHubActionLink Grid.Column="1"
|
|
0 commit comments