|
35 | 35 | ScrollViewer.VerticalScrollBarVisibility="Visible"
|
36 | 36 | Grid.Row="2"
|
37 | 37 | Grid.Column="1"
|
| 38 | + TabIndex="1" |
38 | 39 | Text="{x:Bind CodeContent, Mode=OneTime}"
|
39 | 40 | >
|
40 | 41 | </TextBox>
|
41 | 42 | <TextBlock Text="{Binding ElementName=Editor, Path=SelectedText, Mode=OneWay}" Grid.Row="3" Grid.Column="1"/>
|
42 |
| - <ListView Grid.Row="0" Grid.RowSpan="4" TabIndex="1"> |
43 |
| - <Button Content="Set Text" Click="ButtonSetText_Click" /> |
44 |
| - <Button Content="Reveal Position 10, 5 In Center" Click="ButtonRevealPositionInCenter_Click" /> |
45 |
| - <Button Content="Highlight Range 3,1-10" Click="ButtonHighlightRange_Click" /> |
46 |
| - <Button Content="Highlight Line 2 & 4" Click="ButtonHighlightLine_Click" /> |
47 |
| - <Button Content="Clear Highlights" Click="ButtonClearHighlights_Click" /> |
48 |
| - <Button Content="Code Folding" Click="ButtonFolding_Click" /> |
49 |
| - <Button Content="Minimap" Click="ButtonMinimap_Click" /> |
50 |
| - <Button Content="Change Language" Click="ButtonChangeLanguage_Click" /> |
51 |
| - <Button Content="Set Marker" Click="ButtonSetMarker_Click" /> |
52 |
| - <CheckBox x:Name="AllowWeb" IsChecked="True">Allow Opening Uris</CheckBox> |
53 |
| - </ListView> |
| 43 | + <ScrollViewer Grid.Row="0" Grid.RowSpan="4" IsTabStop="False"> |
| 44 | + <ItemsControl IsTabStop="False"> |
| 45 | + <Button Content="Set Text" Click="ButtonSetText_Click" TabIndex="2"/> |
| 46 | + <Button Content="Reveal Position 10, 5 In Center" Click="ButtonRevealPositionInCenter_Click" /> |
| 47 | + <Button Content="Highlight Range 3,1-10" Click="ButtonHighlightRange_Click" /> |
| 48 | + <Button Content="Highlight Line 2 & 4" Click="ButtonHighlightLine_Click" /> |
| 49 | + <Button Content="Clear Highlights" Click="ButtonClearHighlights_Click" /> |
| 50 | + <Button Content="Code Folding" Click="ButtonFolding_Click" /> |
| 51 | + <Button Content="Minimap" Click="ButtonMinimap_Click" /> |
| 52 | + <Button Content="Change Language" Click="ButtonChangeLanguage_Click" /> |
| 53 | + <Button Content="Set Marker" Click="ButtonSetMarker_Click" /> |
| 54 | + <CheckBox x:Name="AllowWeb" IsChecked="True">Allow Opening Uris</CheckBox> |
| 55 | + <ItemsControl.ItemContainerStyle> |
| 56 | + <Style TargetType="FrameworkElement"> |
| 57 | + <Setter Property="Margin" Value="8,16,0,0"/> |
| 58 | + </Style> |
| 59 | + </ItemsControl.ItemContainerStyle> |
| 60 | + </ItemsControl> |
| 61 | + </ScrollViewer> |
54 | 62 | </Grid>
|
55 | 63 | </Page>
|
0 commit comments