|
9 | 9 | xmlns:models="using:ConTeXt_IDE.Models" |
10 | 10 | xmlns:helpers="using:ConTeXt_IDE.Helpers" |
11 | 11 | xmlns:monaco="using:Monaco" |
12 | | - mc:Ignorable="d" DataContext="{x:Bind VM}" Loaded="Info_Loaded" RequestedTheme="{Binding Default.Theme, Converter={StaticResource StringToTheme}}" Background="{ThemeResource AcrylicColor}" > |
| 12 | + mc:Ignorable="d" DataContext="{x:Bind VM}" Loaded="Page_Loaded" RequestedTheme="{Binding Default.Theme, Converter={StaticResource StringToTheme}}" Background="{ThemeResource AcrylicColor}" > |
13 | 13 | <Page.Resources> |
14 | 14 | <DataTemplate x:Key="FolderTemplate" x:DataType="models:FileItem"> |
15 | 15 | <models:MyTreeViewItem IsExpanded="{Binding IsExpanded, Mode=TwoWay}" CanDrag="False" ToolTipService.ToolTip="{Binding FileName}" HorizontalContentAlignment="Left" ItemsSource="{x:Bind Children}"> |
|
69 | 69 | </Grid.ColumnDefinitions> |
70 | 70 | <FontIcon Grid.Column="0" Glyph=""></FontIcon> |
71 | 71 | <TextBlock Grid.Column="1" HorizontalAlignment="Stretch" MaxLines="2" FontWeight="Bold" Text="{Binding FileName, Mode=OneWay}"/> |
72 | | - <Button ToolTipService.ToolTip="Create file" VerticalAlignment="Center" IsEnabled="{Binding Source={StaticResource VM}, Path=IsProjectLoaded}" Grid.Column="2" Click="AddFile_Click"> |
| 72 | + <Button ToolTipService.ToolTip="Create file" VerticalAlignment="Center" IsEnabled="{Binding Source={StaticResource VM}, Path=IsProjectLoaded}" Grid.Column="2" Click="AddFileRoot_Click"> |
73 | 73 | <SymbolIcon Symbol="Document"/> |
74 | 74 | </Button> |
75 | | - <Button ToolTipService.ToolTip="Create folder" VerticalAlignment="Center" IsEnabled="{Binding Source={StaticResource VM}, Path=IsProjectLoaded}" Grid.Column="3" Click="AddFolder_Click"> |
| 75 | + <Button ToolTipService.ToolTip="Create folder" VerticalAlignment="Center" IsEnabled="{Binding Source={StaticResource VM}, Path=IsProjectLoaded}" Grid.Column="3" Click="AddFolderRoot_Click"> |
76 | 76 | <SymbolIcon Symbol="Folder"/> |
77 | 77 | </Button> |
78 | 78 | </Grid> |
|
119 | 119 | <FontIcon FontFamily="Segoe MDL2 Assets" Glyph="" ></FontIcon> |
120 | 120 | </MenuFlyoutItem.Icon> |
121 | 121 | </MenuFlyoutItem> |
122 | | - <!--<MenuFlyoutItem Text="View in GitHub" Click="Github_Click" ToolTipService.ToolTip="View the source code, commit changes and write feature requests and bug reports."> |
| 122 | + <MenuFlyoutItem Text="View in GitHub" Click="Github_Click" ToolTipService.ToolTip="View the source code, pull request changes and write feature requests and bug reports."> |
123 | 123 | <MenuFlyoutItem.Icon> |
124 | 124 | <BitmapIcon Foreground="{ThemeResource ForegroundColor}" UriSource="ms-appx:///Assets/GitHub.png" ></BitmapIcon> |
125 | 125 | </MenuFlyoutItem.Icon> |
126 | | - </MenuFlyoutItem>--> |
| 126 | + </MenuFlyoutItem> |
127 | 127 | </MenuFlyout> |
128 | 128 |
|
129 | 129 | </Button.Flyout> |
|
211 | 211 | <ListView SelectionMode="None" ItemsSource="{Binding CurrentProject.Modes}" > |
212 | 212 | <ListView.ItemTemplate> |
213 | 213 | <DataTemplate> |
214 | | - <CheckBox Content="{Binding Name}" IsChecked="{Binding IsSelected, Mode=TwoWay}" Checked="CheckBox_Checked"> |
| 214 | + <CheckBox Content="{Binding Name}" IsChecked="{Binding IsSelected, Mode=TwoWay}"> |
215 | 215 | <CheckBox.ContextFlyout> |
216 | 216 | <MenuFlyout> |
217 | 217 | <MenuFlyoutItem x:Name="RemoveMode" Icon="Delete" Click="RemoveMode_Click" Text="Remove mode"></MenuFlyoutItem> |
|
285 | 285 | </ToggleButton.Content> |
286 | 286 | </ToggleButton> |
287 | 287 |
|
288 | | - <DropDownButton Content="Suggestions" ToolTipService.ToolTip="Enable code compleation and snippets" > |
289 | | - <DropDownButton.Flyout> |
| 288 | + <Button ToolTipService.ToolTip="Enable code compleation and snippets" > |
| 289 | + <Button.Flyout> |
290 | 290 | <Flyout Placement="Bottom"> |
291 | 291 | <StackPanel Orientation="Vertical" > |
292 | 292 | <CheckBox Content="ConTeXt sart-stop environments" IsChecked="{Binding Default.SuggestStartStop, Mode=TwoWay}"/> |
|
296 | 296 | <CheckBox Content="TeX primitives" IsChecked="{Binding Default.SuggestPrimitives, Mode=TwoWay}"/> |
297 | 297 | </StackPanel> |
298 | 298 | </Flyout> |
299 | | - </DropDownButton.Flyout> |
300 | | - </DropDownButton> |
| 299 | + </Button.Flyout> |
| 300 | + <Button.Content> |
| 301 | + <StackPanel Orientation="Horizontal"> |
| 302 | + <TextBlock Text="Suggestions"></TextBlock> |
| 303 | + <FontIcon Glyph=""></FontIcon> |
| 304 | + </StackPanel> |
| 305 | + </Button.Content> |
| 306 | + </Button> |
301 | 307 |
|
302 | 308 | <Border Style="{StaticResource Separator}" ></Border> |
303 | 309 |
|
|
719 | 725 | CloseButtonOverlayMode="Auto" |
720 | 726 | TabCloseRequested="Tabs_TabCloseRequested" VerticalAlignment="Stretch" VerticalContentAlignment="Stretch" |
721 | 727 | CanDragTabs="True" Background="Transparent" |
722 | | - CanReorderTabs="True" TabItemsSource="{Binding FileItems}" SelectedItem="{Binding CurrentFileItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" SelectionChanged="Tabs_SelectionChanged" |
| 728 | + CanReorderTabs="True" TabItemsSource="{Binding FileItems}" SelectedItem="{Binding CurrentFileItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" |
723 | 729 | AllowDrop="True" TabStripDragOver="EditorTabViewDrag" TabStripDrop="EditorTabViewDrop" DragOver="EditorTabViewDrag" Drop="EditorTabViewDrop" FontFamily="Segoe"> |
724 | 730 |
|
725 | 731 | <TabView.TabItemTemplate> |
|
0 commit comments