Skip to content

Commit

Permalink
Corresponding changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Quantumzhao committed Sep 26, 2020
1 parent 917529d commit dd7cfae
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CourseScheduler.Avalonia/ViewModels/MainPageViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public MainPageViewModel()
};

#if DEBUG
AddCourseToCourseSetAndCache("cmsc216");
AddCourseToCourseSetAndCache("cmsc430");
//AddCourseToCourseSetAndCache("cmsc216");
//AddCourseToCourseSetAndCache("cmsc430");
#endif
}

Expand Down
18 changes: 15 additions & 3 deletions CourseScheduler.Avalonia/Views/AdvancedView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,19 @@
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
xmlns:box="clr-namespace:UIEngine.Avalonia.Views;assembly=UIEngine.Avalonia"
x:Class="CourseScheduler.Avalonia.Views.AdvancedView">
<ScrollViewer VerticalAlignment="Top" HorizontalAlignment="Left" HorizontalScrollBarVisibility="Visible">
<box:CollectionBox Items="{Binding CourseSetNode}"/>
</ScrollViewer>

<StackPanel>
<ToggleButton
Name="VisibilityButton"
Margin="10"
Content="Show developing features"
HorizontalAlignment="Left"/>
<ScrollViewer
IsVisible="{Binding ElementName=VisibilityButton, Path=IsChecked}"
VerticalAlignment="Top"
HorizontalAlignment="Left"
HorizontalScrollBarVisibility="Visible">
<box:CollectionBox Items="{Binding CourseSetNode}"/>
</ScrollViewer>
</StackPanel>
</UserControl>
2 changes: 1 addition & 1 deletion UIEngine.Avalonia/Views/UIPanel.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Avalonia.UIEngine.Views;assembly=Avalonia.UIEngine"
xmlns:local="clr-namespace:UIEngine.Avalonia.Views;assembly=UIEngine.Avalonia"
xmlns:node="clr-namespace:UIEngine.Nodes;assembly=UIEngine"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="Avalonia.UIEngine.Views.UIPanel" Name="Me">
Expand Down

0 comments on commit dd7cfae

Please sign in to comment.