Permalink
Browse files

Removed WinRT/Metro project as it has been moved to its own separate …

…repository
  • Loading branch information...
1 parent 83245a0 commit 71a99bcee019371e4fcd05b27dcbe9396fbd9580 @joelmartinez committed May 26, 2012
Showing with 0 additions and 3,814 deletions.
  1. +0 −46 KhanViewer.Metro.sln
  2. +0 −26 KhanViewer.Metro/App.xaml
  3. +0 −96 KhanViewer.Metro/App.xaml.cs
  4. BIN KhanViewer.Metro/Assets/Logo.png
  5. BIN KhanViewer.Metro/Assets/SmallLogo.png
  6. BIN KhanViewer.Metro/Assets/SplashScreen.png
  7. BIN KhanViewer.Metro/Assets/StoreLogo.png
  8. +0 −13 KhanViewer.Metro/BlankPage.xaml
  9. +0 −38 KhanViewer.Metro/BlankPage.xaml.cs
  10. +0 −95 KhanViewer.Metro/CategoryPage.xaml
  11. +0 −46 KhanViewer.Metro/CategoryPage.xaml.cs
  12. +0 −55 KhanViewer.Metro/Common/BindableBase.cs
  13. +0 −21 KhanViewer.Metro/Common/BooleanNegationConverter.cs
  14. +0 −32 KhanViewer.Metro/Common/BooleanToVisibilityConverter.cs
  15. +0 −46 KhanViewer.Metro/Common/FileAsync.cs
  16. +0 −365 KhanViewer.Metro/Common/LayoutAwarePage.cs
  17. +0 −7 KhanViewer.Metro/Common/ReadMe.txt
  18. +0 −210 KhanViewer.Metro/Common/RichTextColumns.cs
  19. +0 −943 KhanViewer.Metro/Common/StandardStyles.xaml
  20. +0 −18 KhanViewer.Metro/Common/Tracker.cs
  21. +0 −31 KhanViewer.Metro/Intro.xaml
  22. +0 −44 KhanViewer.Metro/Intro.xaml.cs
  23. +0 −216 KhanViewer.Metro/KhanViewer.Metro.csproj
  24. BIN KhanViewer.Metro/KhanViewer.Metro_TemporaryKey.pfx
  25. +0 −98 KhanViewer.Metro/MainPage.xaml
  26. +0 −75 KhanViewer.Metro/MainPage.xaml.cs
  27. +0 −26 KhanViewer.Metro/Models/Clouds.cs
  28. +0 −24 KhanViewer.Metro/Models/DataServer.cs
  29. +0 −169 KhanViewer.Metro/Models/KhanAcademyApi.cs
  30. +0 −292 KhanViewer.Metro/Models/LocalStorage.cs
  31. +0 −43 KhanViewer.Metro/Models/UIThread.cs
  32. +0 −87 KhanViewer.Metro/Models/WebHelper.cs
  33. +0 −28 KhanViewer.Metro/Package.appxmanifest
  34. +0 −29 KhanViewer.Metro/Properties/AssemblyInfo.cs
  35. +0 −28 KhanViewer.Metro/SampleData/MainViewModelSampleData.xaml
  36. +0 −74 KhanViewer.Metro/VideoPlayer.xaml
  37. +0 −42 KhanViewer.Metro/VideoPlayer.xaml.cs
  38. +0 −157 KhanViewer.Metro/ViewModels/CategoryItem.cs
  39. +0 −59 KhanViewer.Metro/ViewModels/Item.cs
  40. +0 −176 KhanViewer.Metro/ViewModels/MainViewModel.cs
  41. +0 −59 KhanViewer.Metro/ViewModels/VideoItem.cs
View
@@ -1,46 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 11 Express for Windows 8
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KhanViewer.Metro", "KhanViewer.Metro\KhanViewer.Metro.csproj", "{75C5CDE0-8558-4A69-9A41-5CA02C4EDDD1}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|ARM = Debug|ARM
- Debug|Any CPU = Debug|Any CPU
- Debug|x64 = Debug|x64
- Debug|x86 = Debug|x86
- Release|ARM = Release|ARM
- Release|Any CPU = Release|Any CPU
- Release|x64 = Release|x64
- Release|x86 = Release|x86
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {75C5CDE0-8558-4A69-9A41-5CA02C4EDDD1}.Debug|ARM.ActiveCfg = Debug|ARM
- {75C5CDE0-8558-4A69-9A41-5CA02C4EDDD1}.Debug|ARM.Build.0 = Debug|ARM
- {75C5CDE0-8558-4A69-9A41-5CA02C4EDDD1}.Debug|ARM.Deploy.0 = Debug|ARM
- {75C5CDE0-8558-4A69-9A41-5CA02C4EDDD1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {75C5CDE0-8558-4A69-9A41-5CA02C4EDDD1}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {75C5CDE0-8558-4A69-9A41-5CA02C4EDDD1}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
- {75C5CDE0-8558-4A69-9A41-5CA02C4EDDD1}.Debug|x64.ActiveCfg = Debug|x64
- {75C5CDE0-8558-4A69-9A41-5CA02C4EDDD1}.Debug|x64.Build.0 = Debug|x64
- {75C5CDE0-8558-4A69-9A41-5CA02C4EDDD1}.Debug|x64.Deploy.0 = Debug|x64
- {75C5CDE0-8558-4A69-9A41-5CA02C4EDDD1}.Debug|x86.ActiveCfg = Debug|x86
- {75C5CDE0-8558-4A69-9A41-5CA02C4EDDD1}.Debug|x86.Build.0 = Debug|x86
- {75C5CDE0-8558-4A69-9A41-5CA02C4EDDD1}.Debug|x86.Deploy.0 = Debug|x86
- {75C5CDE0-8558-4A69-9A41-5CA02C4EDDD1}.Release|ARM.ActiveCfg = Release|ARM
- {75C5CDE0-8558-4A69-9A41-5CA02C4EDDD1}.Release|ARM.Build.0 = Release|ARM
- {75C5CDE0-8558-4A69-9A41-5CA02C4EDDD1}.Release|ARM.Deploy.0 = Release|ARM
- {75C5CDE0-8558-4A69-9A41-5CA02C4EDDD1}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {75C5CDE0-8558-4A69-9A41-5CA02C4EDDD1}.Release|Any CPU.Build.0 = Release|Any CPU
- {75C5CDE0-8558-4A69-9A41-5CA02C4EDDD1}.Release|Any CPU.Deploy.0 = Release|Any CPU
- {75C5CDE0-8558-4A69-9A41-5CA02C4EDDD1}.Release|x64.ActiveCfg = Release|x64
- {75C5CDE0-8558-4A69-9A41-5CA02C4EDDD1}.Release|x64.Build.0 = Release|x64
- {75C5CDE0-8558-4A69-9A41-5CA02C4EDDD1}.Release|x64.Deploy.0 = Release|x64
- {75C5CDE0-8558-4A69-9A41-5CA02C4EDDD1}.Release|x86.ActiveCfg = Release|x86
- {75C5CDE0-8558-4A69-9A41-5CA02C4EDDD1}.Release|x86.Build.0 = Release|x86
- {75C5CDE0-8558-4A69-9A41-5CA02C4EDDD1}.Release|x86.Deploy.0 = Release|x86
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
View
@@ -1,26 +0,0 @@
-<Application
- x:Class="KhanViewer.App"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="using:KhanViewer">
-
- <Application.Resources>
- <ResourceDictionary>
- <!-- Phone Compatibility Styles -->
- <Color x:Key="PhoneAccentColor">#6495ED</Color>
- <Style x:Key="PhoneTextTitle2Style" TargetType="TextBlock"></Style>
- <Style x:Key="PhoneTextSubtleStyle" TargetType="TextBlock"></Style>
-
- <ResourceDictionary.MergedDictionaries>
-
- <!--
- Styles that define common aspects of the platform look and feel
- Required by Visual Studio project and item templates
- -->
- <ResourceDictionary Source="Common/StandardStyles.xaml"/>
-
- </ResourceDictionary.MergedDictionaries>
-
- </ResourceDictionary>
- </Application.Resources>
-</Application>
@@ -1,96 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using KhanViewer.Models;
-using Windows.ApplicationModel;
-using Windows.ApplicationModel.Activation;
-using Windows.Foundation;
-using Windows.Foundation.Collections;
-using Windows.UI.Xaml;
-using Windows.UI.Xaml.Controls;
-using Windows.UI.Xaml.Controls.Primitives;
-using Windows.UI.Xaml.Data;
-using Windows.UI.Xaml.Input;
-using Windows.UI.Xaml.Media;
-using Windows.UI.Xaml.Navigation;
-
-// The Blank Application template is documented at http://go.microsoft.com/fwlink/?LinkId=234227
-
-namespace KhanViewer
-{
- /// <summary>
- /// Provides application-specific behavior to supplement the default Application class.
- /// </summary>
- sealed partial class App : Application
- {
- private static MainViewModel viewModel = null;
-
- /// <summary>
- /// A static ViewModel used by the views to bind against.
- /// </summary>
- /// <returns>The MainViewModel object.</returns>
- public static MainViewModel ViewModel
- {
- get
- {
- // Delay creation of the view model until necessary
- if (viewModel == null)
- viewModel = new MainViewModel();
-
- return viewModel;
- }
- }
-
- /// <summary>
- /// Initializes the singleton application object. This is the first line of authored code
- /// executed, and as such is the logical equivalent of main() or WinMain().
- /// </summary>
- public App()
- {
- this.InitializeComponent();
- this.Suspending += OnSuspending;
-
- }
-
- /// <summary>
- /// Invoked when the application is launched normally by the end user. Other entry points
- /// will be used when the application is launched to open a specific file, to display
- /// search results, and so forth.
- /// </summary>
- /// <param name="args">Details about the launch request and process.</param>
- protected override void OnLaunched(LaunchActivatedEventArgs args)
- {
- if (!App.ViewModel.IsDataLoaded)
- {
- App.ViewModel.LoadData();
- }
-
- if (args.PreviousExecutionState == ApplicationExecutionState.Terminated)
- {
- //TODO: Load state from previously suspended application
- }
-
- // Create a Frame to act navigation context and navigate to the first page
- var rootFrame = new Frame();
- rootFrame.Navigate(typeof(MainPage));
-
- // Place the frame in the current Window and ensure that it is active
- Window.Current.Content = rootFrame;
- Window.Current.Activate();
-
- }
-
- /// <summary>
- /// Invoked when application execution is being suspended. Application state is saved
- /// without knowing whether the application will be terminated or resumed with the contents
- /// of memory still intact.
- /// </summary>
- /// <param name="sender">The source of the suspend request.</param>
- /// <param name="e">Details about the suspend request.</param>
- void OnSuspending(object sender, SuspendingEventArgs e)
- {
- //TODO: Save application state and stop any background activity
- }
- }
-}
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
@@ -1,13 +0,0 @@
-<Page
- x:Class="KhanViewer.BlankPage"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="using:KhanViewer"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- mc:Ignorable="d">
-
- <Grid Background="{StaticResource ApplicationPageBackgroundBrush}">
-
- </Grid>
-</Page>
@@ -1,38 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using Windows.Foundation;
-using Windows.Foundation.Collections;
-using Windows.UI.Xaml;
-using Windows.UI.Xaml.Controls;
-using Windows.UI.Xaml.Controls.Primitives;
-using Windows.UI.Xaml.Data;
-using Windows.UI.Xaml.Input;
-using Windows.UI.Xaml.Media;
-using Windows.UI.Xaml.Navigation;
-
-// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
-
-namespace KhanViewer
-{
- /// <summary>
- /// An empty page that can be used on its own or navigated to within a Frame.
- /// </summary>
- public sealed partial class BlankPage : Page
- {
- public BlankPage()
- {
- this.InitializeComponent();
- }
-
- /// <summary>
- /// Invoked when this page is about to be displayed in a Frame.
- /// </summary>
- /// <param name="e">Event data that describes how this page was reached. The Parameter
- /// property is typically used to configure the page.</param>
- protected override void OnNavigatedTo(NavigationEventArgs e)
- {
- }
- }
-}
@@ -1,95 +0,0 @@
-<common:LayoutAwarePage
- x:Name="pageRoot"
- x:Class="KhanViewer.CategoryPage"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="using:KhanViewer"
- xmlns:common="using:KhanViewer.Common"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- mc:Ignorable="d"
- d:DataContext="{d:DesignData SampleData/MainViewModelSampleData.xaml}">
-
-
- <!--
- This grid acts as a root panel for the page that defines two rows:
- * Row 0 contains the back button and page title
- * Row 1 contains the rest of the page layout
- -->
- <Grid Background="{StaticResource ApplicationPageBackgroundBrush}">
- <Grid.RowDefinitions>
- <RowDefinition Height="140"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
-
- <!-- Back button and page title -->
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Button x:Name="backButton" Click="GoBack" IsEnabled="{Binding Frame.CanGoBack, ElementName=pageRoot}" Style="{StaticResource BackButtonStyle}"/>
- <TextBlock x:Name="pageTitle" Grid.Column="1" Text="Khan Academy" Style="{StaticResource PageHeaderTextStyle}"/>
- </Grid>
-
- <Grid x:Name="ContentPanel" Grid.Row="1" Margin="0,0,12,0">
- <ListBox x:Name="MainListBox" Margin="0,0,-12,0" ItemsSource="{Binding Videos}" SelectionChanged="MainListBox_SelectionChanged">
- <ListBox.ItemTemplate>
- <DataTemplate>
- <StackPanel Orientation="Horizontal" Margin="0,0,0,0">
-
- <Border
- BorderBrush="Gray"
- Background="Black"
- BorderThickness="1"
- Width="120"
- Height="91"
- VerticalAlignment="Top"
- Margin="0 0 0 20">
- <!--<Image
- Source="{Binding VideoScreenshotUri}"
- Width="120" />-->
-
- </Border>
-
- <StackPanel Margin="0,0,0,25" Width="360">
- <TextBlock Text="{Binding Name}" TextWrapping="Wrap" FontFamily="Segoe WP SemiLight" FontSize="26.667"/>
- <TextBlock Text="{Binding Description}" TextWrapping="Wrap" Margin="12,-2,12,0" />
- </StackPanel>
- </StackPanel>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- </Grid>
-
- <VisualStateManager.VisualStateGroups>
-
- <!-- Visual states reflect the application's view state -->
- <VisualStateGroup>
- <VisualState x:Name="FullScreenLandscape"/>
- <VisualState x:Name="Filled"/>
-
- <!-- The entire page respects the narrower 100-pixel margin convention for portrait -->
- <VisualState x:Name="FullScreenPortrait">
- <Storyboard>
- <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
- <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PortraitBackButtonStyle}"/>
- </ObjectAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
-
- <!-- The back button and title have different styles when snapped -->
- <VisualState x:Name="Snapped">
- <Storyboard>
- <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
- <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedBackButtonStyle}"/>
- </ObjectAnimationUsingKeyFrames>
- <ObjectAnimationUsingKeyFrames Storyboard.TargetName="pageTitle" Storyboard.TargetProperty="Style">
- <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedPageHeaderTextStyle}"/>
- </ObjectAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- </Grid>
-</common:LayoutAwarePage>
@@ -1,46 +0,0 @@
-using Windows.UI.Xaml.Controls;
-using Windows.UI.Xaml.Navigation;
-
-// The Basic Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234237
-
-namespace KhanViewer
-{
- /// <summary>
- /// A basic page that provides characteristics common to most applications.
- /// </summary>
- public sealed partial class CategoryPage : KhanViewer.Common.LayoutAwarePage
- {
- public CategoryPage()
- {
- this.InitializeComponent();
- }
-
- /// <summary>
- /// Invoked when this page is about to be displayed in a Frame.
- /// </summary>
- /// <param name="e">Event data that describes how this page was reached. The Parameter
- /// property is typically used to configure the page.</param>
- protected override void OnNavigatedTo(NavigationEventArgs e)
- {
- string categoryparam = e.Parameter.ToString();
- App.ViewModel.TrackPageView(categoryparam, "/Playlist/" + categoryparam);
- var category = App.ViewModel.GetCategory(categoryparam);
- category.LoadVideos();
- pageRoot.DataContext = category;
- }
-
- private void MainListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
- {
- // If selected index is -1 (no selection) do nothing
- if (MainListBox.SelectedIndex == -1)
- return;
- var item = MainListBox.SelectedItem as VideoItem;
- // Navigate to the new page
- //item.Navigate();
- Frame.Navigate(typeof(VideoPlayer), item);
-
- // Reset selected index to -1 (no selection)
- MainListBox.SelectedIndex = -1;
- }
- }
-}
Oops, something went wrong.

0 comments on commit 71a99bc

Please sign in to comment.