├── .gitattributes ├── .gitignore ├── README.md ├── images ├── channel9-home-android.png ├── channel9-home-gtk.png ├── channel9-home-ios.png ├── channel9-home-uwp.png ├── channel9-menu-android.png ├── channel9-menu-gtk.png ├── channel9-menu-ios.png └── channel9-menu-uwp.png └── src ├── Channel9.sln └── Channel9 ├── Channel9.Android ├── Assets │ └── AboutAssets.txt ├── Channel9.Android.csproj ├── MainActivity.cs ├── Properties │ ├── AndroidManifest.xml │ └── AssemblyInfo.cs ├── Resources │ ├── AboutResources.txt │ ├── Resource.Designer.cs │ ├── drawable-hdpi │ │ └── icon.png │ ├── drawable-xhdpi │ │ └── icon.png │ ├── drawable-xxhdpi │ │ └── icon.png │ ├── drawable │ │ ├── channel9_downloads.png │ │ ├── channel9_events.png │ │ ├── channel9_featured.png │ │ ├── channel9_fresh.png │ │ ├── channel9_home.png │ │ ├── channel9_logo.png │ │ ├── channel9_menu.png │ │ ├── channel9_mostviewed.png │ │ ├── channel9_myqueue.png │ │ ├── channel9_popular.png │ │ ├── channel9_search.png │ │ ├── channel9_series.png │ │ ├── channel9_settings.png │ │ ├── channel9_shows.png │ │ ├── channel9_tags.png │ │ ├── channel9_toprated.png │ │ ├── channel9_watchlist.png │ │ └── icon.png │ ├── layout │ │ ├── Tabbar.axml │ │ ├── Toolbar.axml │ │ └── ToolbarLogo.axml │ └── values │ │ └── styles.xml └── packages.config ├── Channel9.GTK ├── Channel9.GTK.csproj ├── Images │ ├── channel9-back.png │ ├── channel9-downloads.png │ ├── channel9-events.png │ ├── channel9-featured.png │ ├── channel9-fresh.png │ ├── channel9-home.png │ ├── channel9-logo.png │ ├── channel9-menu.png │ ├── channel9-mostviewed.png │ ├── channel9-myqueue.png │ ├── channel9-popular.png │ ├── channel9-search.png │ ├── channel9-series.png │ ├── channel9-settings.png │ ├── channel9-shows.png │ ├── channel9-tags.png │ ├── channel9-toprated.png │ └── channel9-watchlist.png ├── Program.cs ├── Properties │ └── AssemblyInfo.cs ├── app.config └── packages.config ├── Channel9.UWP ├── App.xaml ├── App.xaml.cs ├── Assets │ ├── LockScreenLogo.scale-100.png │ ├── LockScreenLogo.scale-125.png │ ├── LockScreenLogo.scale-150.png │ ├── LockScreenLogo.scale-200.png │ ├── LockScreenLogo.scale-400.png │ ├── SplashScreen.scale-100.png │ ├── SplashScreen.scale-125.png │ ├── SplashScreen.scale-150.png │ ├── SplashScreen.scale-200.png │ ├── SplashScreen.scale-400.png │ ├── Square150x150Logo.scale-100.png │ ├── Square150x150Logo.scale-125.png │ ├── Square150x150Logo.scale-150.png │ ├── Square150x150Logo.scale-200.png │ ├── Square150x150Logo.scale-400.png │ ├── Square44x44Logo.scale-100.png │ ├── Square44x44Logo.scale-125.png │ ├── Square44x44Logo.scale-150.png │ ├── Square44x44Logo.scale-200.png │ ├── Square44x44Logo.scale-400.png │ ├── Square44x44Logo.targetsize-16_altform-unplated.png │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ ├── Square44x44Logo.targetsize-256_altform-unplated.png │ ├── Square44x44Logo.targetsize-32_altform-unplated.png │ ├── Square44x44Logo.targetsize-48_altform-unplated.png │ ├── StoreLogo.png │ ├── Wide310x150Logo.scale-100.png │ ├── Wide310x150Logo.scale-125.png │ ├── Wide310x150Logo.scale-150.png │ ├── Wide310x150Logo.scale-200.png │ ├── Wide310x150Logo.scale-400.png │ ├── channel9_downloads.png │ ├── channel9_events.png │ ├── channel9_featured.png │ ├── channel9_fresh.png │ ├── channel9_home.png │ ├── channel9_logo.png │ ├── channel9_menu.png │ ├── channel9_mostviewed.png │ ├── channel9_myqueue.png │ ├── channel9_popular.png │ ├── channel9_search.png │ ├── channel9_series.png │ ├── channel9_settings.png │ ├── channel9_shows.png │ ├── channel9_tags.png │ ├── channel9_toprated.png │ └── channel9_watchlist.png ├── Channel9.UWP.csproj ├── MainPage.xaml ├── MainPage.xaml.cs ├── Package.appxmanifest ├── Properties │ ├── AssemblyInfo.cs │ └── Default.rd.xml └── project.json ├── Channel9.iOS ├── AppDelegate.cs ├── Channel9.iOS.csproj ├── Entitlements.plist ├── Info.plist ├── Main.cs ├── Properties │ └── AssemblyInfo.cs ├── Renderers │ └── LogoPageRenderer.cs ├── Resources │ ├── Default-568h@2x.png │ ├── Default-Portrait.png │ ├── Default-Portrait@2x.png │ ├── Default.png │ ├── Default@2x.png │ ├── Icon-60@2x.png │ ├── Icon-60@3x.png │ ├── Icon-76.png │ ├── Icon-76@2x.png │ ├── Icon-Small-40.png │ ├── Icon-Small-40@2x.png │ ├── Icon-Small-40@3x.png │ ├── Icon-Small.png │ ├── Icon-Small@2x.png │ ├── Icon-Small@3x.png │ ├── LaunchScreen.storyboard │ ├── channel9_downloads.png │ ├── channel9_events.png │ ├── channel9_featured.png │ ├── channel9_fresh.png │ ├── channel9_home.png │ ├── channel9_logo.png │ ├── channel9_menu.png │ ├── channel9_mostviewed.png │ ├── channel9_myqueue.png │ ├── channel9_popular.png │ ├── channel9_search.png │ ├── channel9_series.png │ ├── channel9_settings.png │ ├── channel9_shows.png │ ├── channel9_tags.png │ ├── channel9_toprated.png │ └── channel9_watchlist.png ├── iTunesArtwork ├── iTunesArtwork@2x └── packages.config └── Channel9 ├── App.xaml ├── App.xaml.cs ├── AppSettings.cs ├── Behaviors └── ItemTappedCommandListView.cs ├── Channel9.csproj ├── Controls └── HorizontalList │ └── HorizontalList.cs ├── Converters ├── HtmlToTextConverter.cs ├── InverseBoolConverter.cs ├── MenuItemTypeConverter.cs └── ToUpperConverter.cs ├── Models ├── Episode.cs └── MenuItem.cs ├── Properties └── AssemblyInfo.cs ├── Services ├── Navigation │ ├── INavigationService.cs │ └── NavigationService.cs └── RssService │ ├── IRssService.cs │ └── RssService.cs ├── ViewModels ├── Base │ ├── Locator.cs │ └── ViewModelBase.cs ├── HomeViewModel.cs ├── MainViewModel.cs ├── MenuViewModel.cs └── SplashViewModel.cs ├── Views ├── CustomNavigationPage.xaml ├── CustomNavigationPage.xaml.cs ├── HomeView.xaml ├── HomeView.xaml.cs ├── MainView.xaml ├── MainView.xaml.cs ├── MenuView.xaml ├── MenuView.xaml.cs ├── SplashView.xaml ├── SplashView.xaml.cs └── Templates │ ├── HomeBigItemTemplate.xaml │ ├── HomeBigItemTemplate.xaml.cs │ ├── HomeSmallItemTemplate01.xaml │ ├── HomeSmallItemTemplate01.xaml.cs │ ├── HomeSmallItemTemplate02.xaml │ ├── HomeSmallItemTemplate02.xaml.cs │ ├── MenuItemTemplate.xaml │ └── MenuItemTemplate.xaml.cs └── packages.config /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.suo 8 | *.user 9 | *.userosscache 10 | *.sln.docstates 11 | 12 | # User-specific files (MonoDevelop/Xamarin Studio) 13 | *.userprefs 14 | 15 | # Build results 16 | [Dd]ebug/ 17 | [Dd]ebugPublic/ 18 | [Rr]elease/ 19 | [Rr]eleases/ 20 | x64/ 21 | x86/ 22 | bld/ 23 | [Bb]in/ 24 | [Oo]bj/ 25 | [Ll]og/ 26 | 27 | # Visual Studio 2015 cache/options directory 28 | .vs/ 29 | # Uncomment if you have tasks that create the project's static files in wwwroot 30 | #wwwroot/ 31 | 32 | # MSTest test Results 33 | [Tt]est[Rr]esult*/ 34 | [Bb]uild[Ll]og.* 35 | 36 | # NUNIT 37 | *.VisualState.xml 38 | TestResult.xml 39 | 40 | # Build Results of an ATL Project 41 | [Dd]ebugPS/ 42 | [Rr]eleasePS/ 43 | dlldata.c 44 | 45 | # .NET Core 46 | project.lock.json 47 | project.fragment.lock.json 48 | artifacts/ 49 | **/Properties/launchSettings.json 50 | 51 | *_i.c 52 | *_p.c 53 | *_i.h 54 | *.ilk 55 | *.meta 56 | *.obj 57 | *.pch 58 | *.pdb 59 | *.pgc 60 | *.pgd 61 | *.rsp 62 | *.sbr 63 | *.tlb 64 | *.tli 65 | *.tlh 66 | *.tmp 67 | *.tmp_proj 68 | *.log 69 | *.vspscc 70 | *.vssscc 71 | .builds 72 | *.pidb 73 | *.svclog 74 | *.scc 75 | 76 | # Chutzpah Test files 77 | _Chutzpah* 78 | 79 | # Visual C++ cache files 80 | ipch/ 81 | *.aps 82 | *.ncb 83 | *.opendb 84 | *.opensdf 85 | *.sdf 86 | *.cachefile 87 | *.VC.db 88 | *.VC.VC.opendb 89 | 90 | # Visual Studio profiler 91 | *.psess 92 | *.vsp 93 | *.vspx 94 | *.sap 95 | 96 | # TFS 2012 Local Workspace 97 | $tf/ 98 | 99 | # Guidance Automation Toolkit 100 | *.gpState 101 | 102 | # ReSharper is a .NET coding add-in 103 | _ReSharper*/ 104 | *.[Rr]e[Ss]harper 105 | *.DotSettings.user 106 | 107 | # JustCode is a .NET coding add-in 108 | .JustCode 109 | 110 | # TeamCity is a build add-in 111 | _TeamCity* 112 | 113 | # DotCover is a Code Coverage Tool 114 | *.dotCover 115 | 116 | # Visual Studio code coverage results 117 | *.coverage 118 | *.coveragexml 119 | 120 | # NCrunch 121 | _NCrunch_* 122 | .*crunch*.local.xml 123 | nCrunchTemp_* 124 | 125 | # MightyMoose 126 | *.mm.* 127 | AutoTest.Net/ 128 | 129 | # Web workbench (sass) 130 | .sass-cache/ 131 | 132 | # Installshield output folder 133 | [Ee]xpress/ 134 | 135 | # DocProject is a documentation generator add-in 136 | DocProject/buildhelp/ 137 | DocProject/Help/*.HxT 138 | DocProject/Help/*.HxC 139 | DocProject/Help/*.hhc 140 | DocProject/Help/*.hhk 141 | DocProject/Help/*.hhp 142 | DocProject/Help/Html2 143 | DocProject/Help/html 144 | 145 | # Click-Once directory 146 | publish/ 147 | 148 | # Publish Web Output 149 | *.[Pp]ublish.xml 150 | *.azurePubxml 151 | # TODO: Comment the next line if you want to checkin your web deploy settings 152 | # but database connection strings (with potential passwords) will be unencrypted 153 | *.pubxml 154 | *.publishproj 155 | 156 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 157 | # checkin your Azure Web App publish settings, but sensitive information contained 158 | # in these scripts will be unencrypted 159 | PublishScripts/ 160 | 161 | # NuGet Packages 162 | *.nupkg 163 | # The packages folder can be ignored because of Package Restore 164 | **/packages/* 165 | # except build/, which is used as an MSBuild target. 166 | !**/packages/build/ 167 | # Uncomment if necessary however generally it will be regenerated when needed 168 | #!**/packages/repositories.config 169 | # NuGet v3's project.json files produces more ignorable files 170 | *.nuget.props 171 | *.nuget.targets 172 | 173 | # Microsoft Azure Build Output 174 | csx/ 175 | *.build.csdef 176 | 177 | # Microsoft Azure Emulator 178 | ecf/ 179 | rcf/ 180 | 181 | # Windows Store app package directories and files 182 | AppPackages/ 183 | BundleArtifacts/ 184 | Package.StoreAssociation.xml 185 | _pkginfo.txt 186 | 187 | # Visual Studio cache files 188 | # files ending in .cache can be ignored 189 | *.[Cc]ache 190 | # but keep track of directories ending in .cache 191 | !*.[Cc]ache/ 192 | 193 | # Others 194 | ClientBin/ 195 | ~$* 196 | *~ 197 | *.dbmdl 198 | *.dbproj.schemaview 199 | *.jfm 200 | *.pfx 201 | *.publishsettings 202 | orleans.codegen.cs 203 | 204 | # Since there are multiple workflows, uncomment next line to ignore bower_components 205 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 206 | #bower_components/ 207 | 208 | # RIA/Silverlight projects 209 | Generated_Code/ 210 | 211 | # Backup & report files from converting an old project file 212 | # to a newer Visual Studio version. Backup files are not needed, 213 | # because we have git ;-) 214 | _UpgradeReport_Files/ 215 | Backup*/ 216 | UpgradeLog*.XML 217 | UpgradeLog*.htm 218 | 219 | # SQL Server files 220 | *.mdf 221 | *.ldf 222 | *.ndf 223 | 224 | # Business Intelligence projects 225 | *.rdl.data 226 | *.bim.layout 227 | *.bim_*.settings 228 | 229 | # Microsoft Fakes 230 | FakesAssemblies/ 231 | 232 | # GhostDoc plugin setting file 233 | *.GhostDoc.xml 234 | 235 | # Node.js Tools for Visual Studio 236 | .ntvs_analysis.dat 237 | node_modules/ 238 | 239 | # Typescript v1 declaration files 240 | typings/ 241 | 242 | # Visual Studio 6 build log 243 | *.plg 244 | 245 | # Visual Studio 6 workspace options file 246 | *.opt 247 | 248 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 249 | *.vbw 250 | 251 | # Visual Studio LightSwitch build output 252 | **/*.HTMLClient/GeneratedArtifacts 253 | **/*.DesktopClient/GeneratedArtifacts 254 | **/*.DesktopClient/ModelManifest.xml 255 | **/*.Server/GeneratedArtifacts 256 | **/*.Server/ModelManifest.xml 257 | _Pvt_Extensions 258 | 259 | # Paket dependency manager 260 | .paket/paket.exe 261 | paket-files/ 262 | 263 | # FAKE - F# Make 264 | .fake/ 265 | 266 | # JetBrains Rider 267 | .idea/ 268 | *.sln.iml 269 | 270 | # CodeRush 271 | .cr/ 272 | 273 | # Python Tools for Visual Studio (PTVS) 274 | __pycache__/ 275 | *.pyc 276 | 277 | # Cake - Uncomment if you are using it 278 | # tools/** 279 | # !tools/packages.config 280 | 281 | # Telerik's JustMock configuration file 282 | *.jmconfig 283 | 284 | # BizTalk build output 285 | *.btp.cs 286 | *.btm.cs 287 | *.odx.cs 288 | *.xsd.cs 289 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Xamarin.Channel 9 2 | 3 | **Channel 9** Application made with **Xamarin.Forms**. 4 | 5 | *Work in progress!* 6 | 7 | ## The result 8 | 9 | ### Android 10 | 11 | 12 | 13 | ## iOS 14 | 15 | 16 | 17 | ### UWP 18 | 19 | 20 | 21 | ### GTK 22 | 23 | 24 | 25 | ## Xamarin.Forms 3.0 Feed 26 | 27 | The **Xamarin.Forms 3.0** preview is published to a custom NuGet feed. To get it: 28 | 29 | - Add a new source to your NuGet Manager: [https://www.myget.org/F/xamarinforms-dev/api/v3/index.json](https://www.myget.org/F/xamarinforms-dev/api/v3/index.json). 30 | - Check Pre-Release. 31 | - Select and install the package with the name **3.0.0.201-gtk**. 32 | 33 | ## Notes 34 | 35 | The purpose of this demo is simply to show how you can create nice UI in Xamarin.Forms. Channel 9 is used as a reference but this is NOT the official Channel 9 App. 36 | 37 | ## Setup 38 | 39 | Download or clone the repository. This is a solution with two projects. 40 | 41 | Rebuild the solution to get all neccesary NuGet packages. 42 | 43 | **Enjoy!** 44 | 45 | ## Copyright and license 46 | 47 | Code released under the [MIT license](https://opensource.org/licenses/MIT). 48 | -------------------------------------------------------------------------------- /images/channel9-home-android.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/images/channel9-home-android.png -------------------------------------------------------------------------------- /images/channel9-home-gtk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/images/channel9-home-gtk.png -------------------------------------------------------------------------------- /images/channel9-home-ios.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/images/channel9-home-ios.png -------------------------------------------------------------------------------- /images/channel9-home-uwp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/images/channel9-home-uwp.png -------------------------------------------------------------------------------- /images/channel9-menu-android.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/images/channel9-menu-android.png -------------------------------------------------------------------------------- /images/channel9-menu-gtk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/images/channel9-menu-gtk.png -------------------------------------------------------------------------------- /images/channel9-menu-ios.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/images/channel9-menu-ios.png -------------------------------------------------------------------------------- /images/channel9-menu-uwp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/images/channel9-menu-uwp.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Assets/AboutAssets.txt: -------------------------------------------------------------------------------- 1 | Any raw assets you want to be deployed with your application can be placed in 2 | this directory (and child directories) and given a Build Action of "AndroidAsset". 3 | 4 | These files will be deployed with you package and will be accessible using Android's 5 | AssetManager, like this: 6 | 7 | public class ReadAsset : Activity 8 | { 9 | protected override void OnCreate (Bundle bundle) 10 | { 11 | base.OnCreate (bundle); 12 | 13 | InputStream input = Assets.Open ("my_asset.txt"); 14 | } 15 | } 16 | 17 | Additionally, some Android functions will automatically load asset files: 18 | 19 | Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf"); 20 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/MainActivity.cs: -------------------------------------------------------------------------------- 1 | using Android.App; 2 | using Android.Content.PM; 3 | using Android.OS; 4 | 5 | namespace Channel9.Droid 6 | { 7 | [Activity( 8 | Label = "Channel 9", 9 | Icon = "@drawable/icon", 10 | Theme = "@style/MainTheme", 11 | MainLauncher = true, 12 | ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)] 13 | public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity 14 | { 15 | protected override void OnCreate(Bundle bundle) 16 | { 17 | TabLayoutResource = Resource.Layout.Tabbar; 18 | ToolbarResource = Resource.Layout.ToolbarLogo; 19 | 20 | base.OnCreate(bundle); 21 | 22 | global::Xamarin.Forms.Forms.Init(this, bundle); 23 | 24 | LoadApplication(new App()); 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Properties/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | using Android.App; 5 | 6 | // General Information about an assembly is controlled through the following 7 | // set of attributes. Change these attribute values to modify the information 8 | // associated with an assembly. 9 | [assembly: AssemblyTitle("Channel9.Android")] 10 | [assembly: AssemblyDescription("")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("")] 13 | [assembly: AssemblyProduct("Channel9.Android")] 14 | [assembly: AssemblyCopyright("Copyright © 2014")] 15 | [assembly: AssemblyTrademark("")] 16 | [assembly: AssemblyCulture("")] 17 | [assembly: ComVisible(false)] 18 | 19 | // Version information for an assembly consists of the following four values: 20 | // 21 | // Major Version 22 | // Minor Version 23 | // Build Number 24 | // Revision 25 | // 26 | // You can specify all the values or you can default the Build and Revision Numbers 27 | // by using the '*' as shown below: 28 | // [assembly: AssemblyVersion("1.0.*")] 29 | [assembly: AssemblyVersion("1.0.0.0")] 30 | [assembly: AssemblyFileVersion("1.0.0.0")] 31 | 32 | // Add some common permissions, these can be removed if not needed 33 | [assembly: UsesPermission(Android.Manifest.Permission.Internet)] 34 | [assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)] 35 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/AboutResources.txt: -------------------------------------------------------------------------------- 1 | Images, layout descriptions, binary blobs and string dictionaries can be included 2 | in your application as resource files. Various Android APIs are designed to 3 | operate on the resource IDs instead of dealing with images, strings or binary blobs 4 | directly. 5 | 6 | For example, a sample Android app that contains a user interface layout (main.xml), 7 | an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png) 8 | would keep its resources in the "Resources" directory of the application: 9 | 10 | Resources/ 11 | drawable-hdpi/ 12 | icon.png 13 | 14 | drawable-ldpi/ 15 | icon.png 16 | 17 | drawable-mdpi/ 18 | icon.png 19 | 20 | layout/ 21 | main.xml 22 | 23 | values/ 24 | strings.xml 25 | 26 | In order to get the build system to recognize Android resources, set the build action to 27 | "AndroidResource". The native Android APIs do not operate directly with filenames, but 28 | instead operate on resource IDs. When you compile an Android application that uses resources, 29 | the build system will package the resources for distribution and generate a class called 30 | "Resource" that contains the tokens for each one of the resources included. For example, 31 | for the above Resources layout, this is what the Resource class would expose: 32 | 33 | public class Resource { 34 | public class drawable { 35 | public const int icon = 0x123; 36 | } 37 | 38 | public class layout { 39 | public const int main = 0x456; 40 | } 41 | 42 | public class strings { 43 | public const int first_string = 0xabc; 44 | public const int second_string = 0xbcd; 45 | } 46 | } 47 | 48 | You would then use R.drawable.icon to reference the drawable/icon.png file, or Resource.layout.main 49 | to reference the layout/main.xml file, or Resource.strings.first_string to reference the first 50 | string in the dictionary file values/strings.xml. 51 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.Android/Resources/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.Android/Resources/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/drawable-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.Android/Resources/drawable-xxhdpi/icon.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/drawable/channel9_downloads.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.Android/Resources/drawable/channel9_downloads.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/drawable/channel9_events.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.Android/Resources/drawable/channel9_events.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/drawable/channel9_featured.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.Android/Resources/drawable/channel9_featured.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/drawable/channel9_fresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.Android/Resources/drawable/channel9_fresh.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/drawable/channel9_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.Android/Resources/drawable/channel9_home.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/drawable/channel9_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.Android/Resources/drawable/channel9_logo.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/drawable/channel9_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.Android/Resources/drawable/channel9_menu.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/drawable/channel9_mostviewed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.Android/Resources/drawable/channel9_mostviewed.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/drawable/channel9_myqueue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.Android/Resources/drawable/channel9_myqueue.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/drawable/channel9_popular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.Android/Resources/drawable/channel9_popular.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/drawable/channel9_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.Android/Resources/drawable/channel9_search.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/drawable/channel9_series.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.Android/Resources/drawable/channel9_series.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/drawable/channel9_settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.Android/Resources/drawable/channel9_settings.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/drawable/channel9_shows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.Android/Resources/drawable/channel9_shows.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/drawable/channel9_tags.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.Android/Resources/drawable/channel9_tags.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/drawable/channel9_toprated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.Android/Resources/drawable/channel9_toprated.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/drawable/channel9_watchlist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.Android/Resources/drawable/channel9_watchlist.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/drawable/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.Android/Resources/drawable/icon.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/layout/Tabbar.axml: -------------------------------------------------------------------------------- 1 | 2 | 12 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/layout/Toolbar.axml: -------------------------------------------------------------------------------- 1 | 9 | 10 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/layout/ToolbarLogo.axml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 16 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/Resources/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 26 | 27 | 30 | 31 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.Android/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.GTK/Channel9.GTK.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {19885808-0360-40E7-AC36-8E4542E96316} 8 | WinExe 9 | Properties 10 | Channel9.GTK 11 | Channel9.GTK 12 | v4.5.2 13 | 512 14 | 15 | 16 | 17 | 18 | 19 | true 20 | full 21 | false 22 | bin\Debug\ 23 | DEBUG;TRACE 24 | prompt 25 | 4 26 | 27 | 28 | pdbonly 29 | true 30 | bin\Release\ 31 | TRACE 32 | prompt 33 | 4 34 | 35 | 36 | 37 | 38 | 39 | 40 | False 41 | ..\..\..\..\..\..\..\..\Program Files (x86)\GtkSharp\2.12\lib\gtk-sharp-2.0\atk-sharp.dll 42 | False 43 | 44 | 45 | False 46 | ..\..\..\..\..\..\..\..\Program Files (x86)\GtkSharp\2.12\lib\gtk-sharp-2.0\gdk-sharp.dll 47 | False 48 | 49 | 50 | False 51 | ..\..\..\..\..\..\..\..\Program Files (x86)\GtkSharp\2.12\lib\gtk-sharp-2.0\glade-sharp.dll 52 | False 53 | 54 | 55 | False 56 | ..\..\..\..\..\..\..\..\Program Files (x86)\GtkSharp\2.12\lib\gtk-sharp-2.0\glib-sharp.dll 57 | False 58 | 59 | 60 | False 61 | ..\..\..\..\..\..\..\..\Program Files (x86)\GtkSharp\2.12\lib\gtk-sharp-2.0\gtk-dotnet.dll 62 | False 63 | 64 | 65 | False 66 | ..\..\..\..\..\..\..\..\Program Files (x86)\GtkSharp\2.12\lib\gtk-sharp-2.0\gtk-sharp.dll 67 | False 68 | 69 | 70 | ..\..\packages\CommonServiceLocator.1.3\lib\portable-net4+sl5+netcore45+wpa81+wp8\Microsoft.Practices.ServiceLocation.dll 71 | 72 | 73 | ..\..\packages\Unity.4.0.1\lib\net45\Microsoft.Practices.Unity.dll 74 | 75 | 76 | ..\..\packages\Unity.4.0.1\lib\net45\Microsoft.Practices.Unity.Configuration.dll 77 | 78 | 79 | ..\..\packages\Unity.4.0.1\lib\net45\Microsoft.Practices.Unity.RegistrationByConvention.dll 80 | 81 | 82 | False 83 | ..\..\..\..\..\..\..\..\Program Files (x86)\GtkSharp\2.12\lib\Mono.Cairo\Mono.Cairo.dll 84 | False 85 | 86 | 87 | False 88 | ..\..\..\..\..\..\..\..\Program Files (x86)\GtkSharp\2.12\lib\Mono.Posix\Mono.Posix.dll 89 | False 90 | 91 | 92 | False 93 | ..\..\..\..\..\..\..\..\Program Files (x86)\GtkSharp\2.12\lib\gtk-sharp-2.0\pango-sharp.dll 94 | False 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | ..\..\packages\Xamarin.Forms.3.0.0.201-gtk\lib\net45\Xamarin.Forms.Core.dll 108 | 109 | 110 | ..\..\packages\Xamarin.Forms.3.0.0.201-gtk\lib\net45\Xamarin.Forms.Platform.dll 111 | 112 | 113 | ..\..\packages\Xamarin.Forms.3.0.0.201-gtk\lib\net45\Xamarin.Forms.Platform.GTK.dll 114 | 115 | 116 | ..\..\packages\Xamarin.Forms.3.0.0.201-gtk\lib\net45\Xamarin.Forms.Xaml.dll 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | {5a9b7035-b1f2-4033-b005-788ff7d99e19} 130 | Channel9 131 | 132 | 133 | 134 | 135 | PreserveNewest 136 | 137 | 138 | PreserveNewest 139 | 140 | 141 | PreserveNewest 142 | 143 | 144 | PreserveNewest 145 | 146 | 147 | PreserveNewest 148 | 149 | 150 | PreserveNewest 151 | 152 | 153 | PreserveNewest 154 | 155 | 156 | PreserveNewest 157 | 158 | 159 | PreserveNewest 160 | 161 | 162 | PreserveNewest 163 | 164 | 165 | PreserveNewest 166 | 167 | 168 | PreserveNewest 169 | 170 | 171 | PreserveNewest 172 | 173 | 174 | PreserveNewest 175 | 176 | 177 | PreserveNewest 178 | 179 | 180 | PreserveNewest 181 | 182 | 183 | PreserveNewest 184 | 185 | 186 | PreserveNewest 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | Este proyecto hace referencia a los paquetes NuGet que faltan en este equipo. Use la restauración de paquetes NuGet para descargarlos. Para obtener más información, consulte http://go.microsoft.com/fwlink/?LinkID=322105. El archivo que falta es {0}. 195 | 196 | 197 | 198 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.GTK/Images/channel9-back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.GTK/Images/channel9-back.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.GTK/Images/channel9-downloads.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.GTK/Images/channel9-downloads.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.GTK/Images/channel9-events.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.GTK/Images/channel9-events.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.GTK/Images/channel9-featured.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.GTK/Images/channel9-featured.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.GTK/Images/channel9-fresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.GTK/Images/channel9-fresh.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.GTK/Images/channel9-home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.GTK/Images/channel9-home.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.GTK/Images/channel9-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.GTK/Images/channel9-logo.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.GTK/Images/channel9-menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.GTK/Images/channel9-menu.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.GTK/Images/channel9-mostviewed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.GTK/Images/channel9-mostviewed.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.GTK/Images/channel9-myqueue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.GTK/Images/channel9-myqueue.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.GTK/Images/channel9-popular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.GTK/Images/channel9-popular.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.GTK/Images/channel9-search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.GTK/Images/channel9-search.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.GTK/Images/channel9-series.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.GTK/Images/channel9-series.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.GTK/Images/channel9-settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.GTK/Images/channel9-settings.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.GTK/Images/channel9-shows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.GTK/Images/channel9-shows.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.GTK/Images/channel9-tags.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.GTK/Images/channel9-tags.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.GTK/Images/channel9-toprated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.GTK/Images/channel9-toprated.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.GTK/Images/channel9-watchlist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.GTK/Images/channel9-watchlist.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.GTK/Program.cs: -------------------------------------------------------------------------------- 1 | using Xamarin.Forms; 2 | using Xamarin.Forms.Platform.GTK; 3 | 4 | namespace Channel9.GTK 5 | { 6 | class Program 7 | { 8 | public static object VideoViewRenderer { get; private set; } 9 | 10 | static void Main(string[] args) 11 | { 12 | Gtk.Application.Init(); 13 | Forms.Init(); 14 | var app = new App(); 15 | var window = new FormsWindow(); 16 | window.LoadApplication(app); 17 | window.SetApplicationTitle("Channel 9"); 18 | window.SetApplicationIcon("Images/channel9-logo.png"); 19 | window.Show(); 20 | Gtk.Application.Run(); 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9.GTK/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // La información general de un ensamblado se controla mediante el siguiente 6 | // conjunto de atributos. Cambie estos valores de atributo para modificar la información 7 | // asociada con un ensamblado. 8 | [assembly: AssemblyTitle("Channel9.GTK")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Channel9.GTK")] 13 | [assembly: AssemblyCopyright("Copyright © 2017")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Si establece ComVisible en false, los tipos de este ensamblado no estarán visibles 18 | // para los componentes COM. Si es necesario obtener acceso a un tipo en este ensamblado desde 19 | // COM, establezca el atributo ComVisible en true en este tipo. 20 | [assembly: ComVisible(false)] 21 | 22 | // El siguiente GUID sirve como id. de typelib si este proyecto se expone a COM. 23 | [assembly: Guid("19885808-0360-40e7-ac36-8e4542e96316")] 24 | 25 | // La información de versión de un ensamblado consta de los cuatro valores siguientes: 26 | // 27 | // Versión principal 28 | // Versión secundaria 29 | // Número de compilación 30 | // Revisión 31 | // 32 | // Puede especificar todos los valores o usar los números de compilación y de revisión predeterminados 33 | // mediante el carácter "*", como se muestra a continuación: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.GTK/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.GTK/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/App.xaml: -------------------------------------------------------------------------------- 1 |  6 | 7 | 8 | 9 | #F47622 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Windows.ApplicationModel; 3 | using Windows.ApplicationModel.Activation; 4 | using Windows.UI.Xaml; 5 | using Windows.UI.Xaml.Controls; 6 | using Windows.UI.Xaml.Navigation; 7 | 8 | namespace Channel9.UWP 9 | { 10 | /// 11 | /// Provides application-specific behavior to supplement the default Application class. 12 | /// 13 | sealed partial class App : Application 14 | { 15 | /// 16 | /// Initializes the singleton application object. This is the first line of authored code 17 | /// executed, and as such is the logical equivalent of main() or WinMain(). 18 | /// 19 | public App() 20 | { 21 | this.InitializeComponent(); 22 | this.Suspending += OnSuspending; 23 | } 24 | 25 | /// 26 | /// Invoked when the application is launched normally by the end user. Other entry points 27 | /// will be used such as when the application is launched to open a specific file. 28 | /// 29 | /// Details about the launch request and process. 30 | protected override void OnLaunched(LaunchActivatedEventArgs e) 31 | { 32 | 33 | #if DEBUG 34 | if (System.Diagnostics.Debugger.IsAttached) 35 | { 36 | this.DebugSettings.EnableFrameRateCounter = true; 37 | } 38 | #endif 39 | 40 | Frame rootFrame = Window.Current.Content as Frame; 41 | 42 | // Do not repeat app initialization when the Window already has content, 43 | // just ensure that the window is active 44 | if (rootFrame == null) 45 | { 46 | // Create a Frame to act as the navigation context and navigate to the first page 47 | rootFrame = new Frame(); 48 | 49 | rootFrame.NavigationFailed += OnNavigationFailed; 50 | 51 | Xamarin.Forms.Forms.Init(e); 52 | 53 | if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) 54 | { 55 | //TODO: Load state from previously suspended application 56 | } 57 | 58 | // Place the frame in the current Window 59 | Window.Current.Content = rootFrame; 60 | } 61 | 62 | if (rootFrame.Content == null) 63 | { 64 | // When the navigation stack isn't restored navigate to the first page, 65 | // configuring the new page by passing required information as a navigation 66 | // parameter 67 | rootFrame.Navigate(typeof(MainPage), e.Arguments); 68 | } 69 | // Ensure the current window is active 70 | Window.Current.Activate(); 71 | } 72 | 73 | /// 74 | /// Invoked when Navigation to a certain page fails 75 | /// 76 | /// The Frame which failed navigation 77 | /// Details about the navigation failure 78 | void OnNavigationFailed(object sender, NavigationFailedEventArgs e) 79 | { 80 | throw new Exception("Failed to load Page " + e.SourcePageType.FullName); 81 | } 82 | 83 | /// 84 | /// Invoked when application execution is being suspended. Application state is saved 85 | /// without knowing whether the application will be terminated or resumed with the contents 86 | /// of memory still intact. 87 | /// 88 | /// The source of the suspend request. 89 | /// Details about the suspend request. 90 | private void OnSuspending(object sender, SuspendingEventArgs e) 91 | { 92 | var deferral = e.SuspendingOperation.GetDeferral(); 93 | //TODO: Save application state and stop any background activity 94 | deferral.Complete(); 95 | } 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/LockScreenLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/LockScreenLogo.scale-100.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/LockScreenLogo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/LockScreenLogo.scale-125.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/LockScreenLogo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/LockScreenLogo.scale-150.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/LockScreenLogo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/LockScreenLogo.scale-400.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/SplashScreen.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/SplashScreen.scale-100.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/SplashScreen.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/SplashScreen.scale-125.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/SplashScreen.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/SplashScreen.scale-150.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/SplashScreen.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/SplashScreen.scale-400.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/Square150x150Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/Square150x150Logo.scale-100.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/Square150x150Logo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/Square150x150Logo.scale-125.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/Square150x150Logo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/Square150x150Logo.scale-150.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/Square150x150Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/Square150x150Logo.scale-400.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/Square44x44Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/Square44x44Logo.scale-100.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/Square44x44Logo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/Square44x44Logo.scale-125.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/Square44x44Logo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/Square44x44Logo.scale-150.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/Square44x44Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/Square44x44Logo.scale-400.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/Square44x44Logo.targetsize-16_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/Square44x44Logo.targetsize-16_altform-unplated.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/Square44x44Logo.targetsize-256_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/Square44x44Logo.targetsize-256_altform-unplated.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/Square44x44Logo.targetsize-32_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/Square44x44Logo.targetsize-32_altform-unplated.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/Square44x44Logo.targetsize-48_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/Square44x44Logo.targetsize-48_altform-unplated.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/StoreLogo.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/Wide310x150Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/Wide310x150Logo.scale-100.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/Wide310x150Logo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/Wide310x150Logo.scale-125.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/Wide310x150Logo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/Wide310x150Logo.scale-150.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/Wide310x150Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/Wide310x150Logo.scale-400.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/channel9_downloads.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/channel9_downloads.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/channel9_events.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/channel9_events.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/channel9_featured.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/channel9_featured.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/channel9_fresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/channel9_fresh.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/channel9_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/channel9_home.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/channel9_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/channel9_logo.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/channel9_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/channel9_menu.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/channel9_mostviewed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/channel9_mostviewed.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/channel9_myqueue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/channel9_myqueue.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/channel9_popular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/channel9_popular.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/channel9_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/channel9_search.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/channel9_series.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/channel9_series.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/channel9_settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/channel9_settings.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/channel9_shows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/channel9_shows.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/channel9_tags.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/channel9_tags.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/channel9_toprated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/channel9_toprated.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Assets/channel9_watchlist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.UWP/Assets/channel9_watchlist.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Channel9.UWP.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | x86 7 | {DCE75E3A-4AEB-4AFA-8D83-9E85B5B66EA0} 8 | AppContainerExe 9 | Properties 10 | Channel9.UWP 11 | Channel9.UWP 12 | en-US 13 | UAP 14 | 10.0.16299.0 15 | 10.0.10586.0 16 | 14 17 | true 18 | 512 19 | {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 20 | Channel9.UWP_TemporaryKey.pfx 21 | 22 | 23 | true 24 | bin\ARM\Debug\ 25 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 26 | ;2008 27 | full 28 | ARM 29 | false 30 | prompt 31 | true 32 | 33 | 34 | bin\ARM\Release\ 35 | TRACE;NETFX_CORE;WINDOWS_UWP 36 | true 37 | ;2008 38 | pdbonly 39 | ARM 40 | false 41 | prompt 42 | true 43 | true 44 | 45 | 46 | true 47 | bin\x64\Debug\ 48 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 49 | ;2008 50 | full 51 | x64 52 | false 53 | prompt 54 | true 55 | 56 | 57 | bin\x64\Release\ 58 | TRACE;NETFX_CORE;WINDOWS_UWP 59 | true 60 | ;2008 61 | pdbonly 62 | x64 63 | false 64 | prompt 65 | true 66 | true 67 | 68 | 69 | true 70 | bin\x86\Debug\ 71 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP 72 | ;2008 73 | full 74 | x86 75 | false 76 | prompt 77 | true 78 | 79 | 80 | bin\x86\Release\ 81 | TRACE;NETFX_CORE;WINDOWS_UWP 82 | true 83 | ;2008 84 | pdbonly 85 | x86 86 | false 87 | prompt 88 | true 89 | true 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | App.xaml 98 | 99 | 100 | MainPage.xaml 101 | 102 | 103 | 104 | 105 | 106 | Designer 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | MSBuild:Compile 164 | Designer 165 | 166 | 167 | MSBuild:Compile 168 | Designer 169 | 170 | 171 | 172 | 173 | {1e6d8fae-9548-4e26-baea-f3a310de6efa} 174 | Channel9 175 | 176 | 177 | 178 | 179 | Windows Mobile Extensions for the UWP 180 | 181 | 182 | 183 | 14.0 184 | 185 | 186 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/MainPage.xaml: -------------------------------------------------------------------------------- 1 |  10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/MainPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using Windows.Foundation.Metadata; 2 | using Windows.UI; 3 | using Windows.UI.ViewManagement; 4 | 5 | namespace Channel9.UWP 6 | { 7 | public sealed partial class MainPage 8 | { 9 | public MainPage() 10 | { 11 | this.InitializeComponent(); 12 | 13 | LoadApplication(new Channel9.App()); 14 | 15 | NativeCustomize(); 16 | } 17 | 18 | private void NativeCustomize() 19 | { 20 | // PC Customization 21 | if (ApiInformation.IsTypePresent("Windows.UI.ViewManagement.ApplicationView")) 22 | { 23 | var titleBar = ApplicationView.GetForCurrentView().TitleBar; 24 | if (titleBar != null) 25 | { 26 | titleBar.BackgroundColor = (Color)App.Current.Resources["NativeAccentColor"]; 27 | titleBar.ButtonBackgroundColor = (Color)App.Current.Resources["NativeAccentColor"]; 28 | } 29 | } 30 | 31 | // Mobile Customization 32 | if (ApiInformation.IsTypePresent("Windows.UI.ViewManagement.StatusBar")) 33 | { 34 | var statusBar = StatusBar.GetForCurrentView(); 35 | if (statusBar != null) 36 | { 37 | statusBar.BackgroundOpacity = 1; 38 | statusBar.BackgroundColor = (Color)App.Current.Resources["NativeAccentColor"]; 39 | } 40 | } 41 | 42 | // Launch in Window Mode 43 | var currentView = ApplicationView.GetForCurrentView(); 44 | if (currentView.IsFullScreenMode) 45 | { 46 | currentView.ExitFullScreenMode(); 47 | } 48 | } 49 | } 50 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Package.appxmanifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | Channel9.UWP 7 | javie 8 | Assets\StoreLogo.png 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Channel9.UWP")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Channel9.UWP")] 13 | [assembly: AssemblyCopyright("Copyright © 2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | // You can specify all the values or you can default the Build and Revision Numbers 25 | // by using the '*' as shown below: 26 | // [assembly: AssemblyVersion("1.0.*")] 27 | [assembly: AssemblyVersion("1.0.0.0")] 28 | [assembly: AssemblyFileVersion("1.0.0.0")] 29 | [assembly: ComVisible(false)] -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/Properties/Default.rd.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.UWP/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.NETCore.UniversalWindowsPlatform": "5.2.2", 4 | "Unity": "4.0.1", 5 | "Xamarin.Forms": "3.0.0.201-gtk" 6 | }, 7 | "frameworks": { 8 | "uap10.0.10586": {} 9 | }, 10 | "runtimes": { 11 | "win10-arm": {}, 12 | "win10-arm-aot": {}, 13 | "win10-x86": {}, 14 | "win10-x86-aot": {}, 15 | "win10-x64": {}, 16 | "win10-x64-aot": {} 17 | } 18 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/AppDelegate.cs: -------------------------------------------------------------------------------- 1 | using Foundation; 2 | using UIKit; 3 | 4 | namespace Channel9.iOS 5 | { 6 | // The UIApplicationDelegate for the application. This class is responsible for launching the 7 | // User Interface of the application, as well as listening (and optionally responding) to 8 | // application events from iOS. 9 | [Register("AppDelegate")] 10 | public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate 11 | { 12 | // 13 | // This method is invoked when the application has loaded and is ready to run. In this 14 | // method you should instantiate the window, load the UI into it and then make the window 15 | // visible. 16 | // 17 | // You have 17 seconds to return from this method, or iOS will terminate your application. 18 | // 19 | public override bool FinishedLaunching(UIApplication app, NSDictionary options) 20 | { 21 | global::Xamarin.Forms.Forms.Init(); 22 | LoadApplication(new App()); 23 | 24 | return base.FinishedLaunching(app, options); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Channel9.iOS.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | iPhoneSimulator 6 | 8.0.30703 7 | 2.0 8 | {BA9BA72E-E56B-43AB-A63D-A6EFA2A2FE6F} 9 | {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 10 | Exe 11 | Channel9.iOS 12 | Resources 13 | Channel9.iOS 14 | 15 | 16 | 17 | 18 | true 19 | full 20 | false 21 | bin\iPhoneSimulator\Debug 22 | DEBUG 23 | prompt 24 | 4 25 | false 26 | i386, x86_64 27 | None 28 | true 29 | 30 | 31 | none 32 | true 33 | bin\iPhoneSimulator\Release 34 | prompt 35 | 4 36 | None 37 | i386, x86_64 38 | false 39 | 40 | 41 | true 42 | full 43 | false 44 | bin\iPhone\Debug 45 | DEBUG 46 | prompt 47 | 4 48 | false 49 | ARMv7, ARM64 50 | iPhone Developer 51 | true 52 | Entitlements.plist 53 | 54 | 55 | none 56 | true 57 | bin\iPhone\Release 58 | prompt 59 | 4 60 | ARMv7, ARM64 61 | false 62 | iPhone Developer 63 | Entitlements.plist 64 | 65 | 66 | none 67 | True 68 | bin\iPhone\Ad-Hoc 69 | prompt 70 | 4 71 | False 72 | ARMv7, ARM64 73 | True 74 | Automatic:AdHoc 75 | iPhone Distribution 76 | Entitlements.plist 77 | 78 | 79 | none 80 | True 81 | bin\iPhone\AppStore 82 | prompt 83 | 4 84 | False 85 | ARMv7, ARM64 86 | Automatic:AppStore 87 | iPhone Distribution 88 | Entitlements.plist 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | ..\..\packages\CommonServiceLocator.1.3\lib\portable-net4+sl5+netcore45+wpa81+wp8\Microsoft.Practices.ServiceLocation.dll 122 | 123 | 124 | ..\..\packages\Unity.4.0.1\lib\portable-net45+wp80+win8+wpa81+MonoAndroid10+MonoTouch10\Microsoft.Practices.Unity.dll 125 | 126 | 127 | ..\..\packages\Plugin.MediaManager.0.4.5\lib\Xamarin.iOS10\Plugin.MediaManager.dll 128 | 129 | 130 | ..\..\packages\Plugin.MediaManager.0.4.5\lib\Xamarin.iOS10\Plugin.MediaManager.Abstractions.dll 131 | 132 | 133 | 134 | 135 | 136 | ..\..\packages\Xamarin.Forms.3.0.0.201-gtk\lib\Xamarin.iOS10\Xamarin.Forms.Core.dll 137 | 138 | 139 | ..\..\packages\Xamarin.Forms.3.0.0.201-gtk\lib\Xamarin.iOS10\Xamarin.Forms.Platform.dll 140 | 141 | 142 | ..\..\packages\Xamarin.Forms.3.0.0.201-gtk\lib\Xamarin.iOS10\Xamarin.Forms.Platform.iOS.dll 143 | 144 | 145 | ..\..\packages\Xamarin.Forms.3.0.0.201-gtk\lib\Xamarin.iOS10\Xamarin.Forms.Xaml.dll 146 | 147 | 148 | 149 | 150 | 151 | {1e6d8fae-9548-4e26-baea-f3a310de6efa} 152 | Channel9 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | Este proyecto hace referencia a los paquetes NuGet que faltan en este equipo. Use la restauración de paquetes NuGet para descargarlos. Para obtener más información, consulte http://go.microsoft.com/fwlink/?LinkID=322105. El archivo que falta es {0}. 211 | 212 | 213 | 214 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Entitlements.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Info.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | UIDeviceFamily 6 | 7 | 1 8 | 2 9 | 10 | UISupportedInterfaceOrientations 11 | 12 | UIInterfaceOrientationPortrait 13 | UIInterfaceOrientationLandscapeLeft 14 | UIInterfaceOrientationLandscapeRight 15 | 16 | UISupportedInterfaceOrientations~ipad 17 | 18 | UIInterfaceOrientationPortrait 19 | UIInterfaceOrientationPortraitUpsideDown 20 | UIInterfaceOrientationLandscapeLeft 21 | UIInterfaceOrientationLandscapeRight 22 | 23 | MinimumOSVersion 24 | 8.0 25 | CFBundleDisplayName 26 | Channel9 27 | CFBundleIdentifier 28 | com.yourcompany.Channel9 29 | CFBundleVersion 30 | 1.0 31 | CFBundleIconFiles 32 | 33 | Icon-60@2x 34 | Icon-60@3x 35 | Icon-76 36 | Icon-76@2x 37 | Default 38 | Default@2x 39 | Default-568h@2x 40 | Default-Portrait 41 | Default-Portrait@2x 42 | Icon-Small-40 43 | Icon-Small-40@2x 44 | Icon-Small-40@3x 45 | Icon-Small 46 | Icon-Small@2x 47 | Icon-Small@3x 48 | 49 | UILaunchStoryboardName 50 | LaunchScreen 51 | 52 | 53 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Main.cs: -------------------------------------------------------------------------------- 1 | using UIKit; 2 | 3 | namespace Channel9.iOS 4 | { 5 | public class Application 6 | { 7 | // This is the main entry point of the application. 8 | static void Main(string[] args) 9 | { 10 | // if you want to use a different Application Delegate class from "AppDelegate" 11 | // you can specify it here. 12 | UIApplication.Main(args, null, "AppDelegate"); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Channel9.iOS")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Channel9.iOS")] 13 | [assembly: AssemblyCopyright("Copyright © 2014")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("72bdc44f-c588-44f3-b6df-9aace7daafdd")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Renderers/LogoPageRenderer.cs: -------------------------------------------------------------------------------- 1 | using Channel9.iOS.Renderers; 2 | using Channel9.Views; 3 | using CoreGraphics; 4 | using System.Linq; 5 | using UIKit; 6 | using Xamarin.Forms; 7 | using Xamarin.Forms.Platform.iOS; 8 | 9 | [assembly: ExportRenderer(typeof(HomeView), typeof(LogoPageRenderer))] 10 | namespace Channel9.iOS.Renderers 11 | { 12 | public class LogoPageRenderer : PageRenderer 13 | { 14 | public override void ViewWillAppear(bool animated) 15 | { 16 | base.ViewWillAppear(animated); 17 | 18 | var image = UIImage.FromBundle("channel9_logo.png"); 19 | var imageView = new UIImageView(new CGRect(0, 0, 140, 70)) 20 | { 21 | ContentMode = UIViewContentMode.ScaleAspectFit, 22 | Image = image.ImageWithRenderingMode(UIImageRenderingMode.AlwaysOriginal) 23 | }; 24 | 25 | if (NavigationController != null) 26 | { 27 | NavigationController.TopViewController.NavigationItem.TitleView = imageView; 28 | } 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/Default-568h@2x.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/Default-Portrait.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/Default-Portrait@2x.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/Default.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/Default@2x.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/Icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/Icon-60@2x.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/Icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/Icon-60@3x.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/Icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/Icon-76.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/Icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/Icon-76@2x.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/Icon-Small-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/Icon-Small-40.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/Icon-Small-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/Icon-Small-40@2x.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/Icon-Small-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/Icon-Small-40@3x.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/Icon-Small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/Icon-Small.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/Icon-Small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/Icon-Small@2x.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/Icon-Small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/Icon-Small@3x.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/channel9_downloads.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/channel9_downloads.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/channel9_events.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/channel9_events.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/channel9_featured.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/channel9_featured.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/channel9_fresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/channel9_fresh.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/channel9_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/channel9_home.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/channel9_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/channel9_logo.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/channel9_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/channel9_menu.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/channel9_mostviewed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/channel9_mostviewed.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/channel9_myqueue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/channel9_myqueue.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/channel9_popular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/channel9_popular.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/channel9_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/channel9_search.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/channel9_series.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/channel9_series.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/channel9_settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/channel9_settings.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/channel9_shows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/channel9_shows.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/channel9_tags.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/channel9_tags.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/channel9_toprated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/channel9_toprated.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/Resources/channel9_watchlist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/Resources/channel9_watchlist.png -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/iTunesArtwork: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/iTunesArtwork -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/iTunesArtwork@2x: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jsuarezruiz/xamarin-forms-channel9-sample/cd96f8b1e04d89f8303b7403f80b75df1b791f0f/src/Channel9/Channel9.iOS/iTunesArtwork@2x -------------------------------------------------------------------------------- /src/Channel9/Channel9.iOS/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/Channel9/Channel9/App.xaml: -------------------------------------------------------------------------------- 1 |  2 | 6 | 7 | 8 | 9 | 10 | #FFFFFF 11 | #000000 12 | 13 | 14 | #F47622 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/Channel9/Channel9/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using Channel9.Services.Navigation; 2 | using Channel9.ViewModels.Base; 3 | using System.Threading.Tasks; 4 | using Xamarin.Forms; 5 | 6 | namespace Channel9 7 | { 8 | public partial class App : Application 9 | { 10 | public App() 11 | { 12 | InitializeComponent(); 13 | InitNavigation(); 14 | } 15 | 16 | private Task InitNavigation() 17 | { 18 | var navigationService = Locator.Instance.Resolve(); 19 | return navigationService.InitializeAsync(); 20 | } 21 | 22 | protected override void OnStart() 23 | { 24 | // Handle when your app starts 25 | } 26 | 27 | protected override void OnSleep() 28 | { 29 | // Handle when your app sleeps 30 | } 31 | 32 | protected override void OnResume() 33 | { 34 | // Handle when your app resumes 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/AppSettings.cs: -------------------------------------------------------------------------------- 1 | namespace Channel9 2 | { 3 | public class AppSettings 4 | { 5 | public static string Channel9 = "https://s.ch9.ms/Feeds/RSS"; 6 | public static string XamarinShow = "https://s.ch9.ms/Shows/XamarinShow/feed"; 7 | public static string Build2017 = "https://s.ch9.ms/Events/Build/2017/RSS"; 8 | } 9 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/Behaviors/ItemTappedCommandListView.cs: -------------------------------------------------------------------------------- 1 | using System.Windows.Input; 2 | using Xamarin.Forms; 3 | 4 | namespace Channel9.Behaviors 5 | { 6 | public sealed class ItemTappedCommandListView 7 | { 8 | public static readonly BindableProperty ItemTappedCommandProperty = 9 | BindableProperty.CreateAttached( 10 | "ItemTappedCommand", 11 | typeof(ICommand), 12 | typeof(ItemTappedCommandListView), 13 | default(ICommand), 14 | BindingMode.OneWay, 15 | null, 16 | PropertyChanged); 17 | 18 | private static void PropertyChanged(BindableObject bindable, object oldValue, object newValue) 19 | { 20 | var listView = bindable as ListView; 21 | if (listView != null) 22 | { 23 | listView.ItemTapped -= ListViewOnItemTapped; 24 | listView.ItemTapped += ListViewOnItemTapped; 25 | } 26 | } 27 | 28 | private static void ListViewOnItemTapped(object sender, ItemTappedEventArgs e) 29 | { 30 | var list = sender as ListView; 31 | if (list != null && list.IsEnabled && !list.IsRefreshing) 32 | { 33 | list.SelectedItem = null; 34 | var command = GetItemTappedCommand(list); 35 | if (command != null && command.CanExecute(e.Item)) 36 | { 37 | command.Execute(e.Item); 38 | } 39 | } 40 | } 41 | 42 | public static ICommand GetItemTappedCommand(BindableObject bindableObject) 43 | { 44 | return (ICommand)bindableObject.GetValue(ItemTappedCommandProperty); 45 | } 46 | 47 | public static void SetItemTappedCommand(BindableObject bindableObject, object value) 48 | { 49 | bindableObject.SetValue(ItemTappedCommandProperty, value); 50 | } 51 | } 52 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/Channel9.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 11.0 6 | Debug 7 | AnyCPU 8 | {5A9B7035-B1F2-4033-B005-788FF7D99E19} 9 | Library 10 | Properties 11 | Channel9 12 | Channel9 13 | 512 14 | v4.5 15 | Profile111 16 | {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 17 | 18 | 19 | 20 | 21 | true 22 | full 23 | false 24 | bin\Debug\ 25 | DEBUG;TRACE 26 | prompt 27 | 4 28 | 29 | 30 | pdbonly 31 | true 32 | bin\Release\ 33 | TRACE 34 | prompt 35 | 4 36 | 37 | 38 | 39 | App.xaml 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | CustomNavigationPage.xaml 63 | 64 | 65 | HomeView.xaml 66 | 67 | 68 | MainView.xaml 69 | 70 | 71 | MenuView.xaml 72 | 73 | 74 | SplashView.xaml 75 | 76 | 77 | HomeBigItemTemplate.xaml 78 | 79 | 80 | HomeSmallItemTemplate02.xaml 81 | 82 | 83 | HomeSmallItemTemplate01.xaml 84 | 85 | 86 | MenuItemTemplate.xaml 87 | 88 | 89 | 90 | 91 | Designer 92 | MSBuild:UpdateDesignTimeXaml 93 | 94 | 95 | 96 | 97 | ..\..\packages\HtmlAgilityPack.1.6.3\lib\portable-net45+netcore45+wpa81+wp8+MonoAndroid+MonoTouch\HtmlAgilityPack.dll 98 | 99 | 100 | ..\..\packages\CommonServiceLocator.1.3\lib\portable-net4+sl5+netcore45+wpa81+wp8\Microsoft.Practices.ServiceLocation.dll 101 | 102 | 103 | ..\..\packages\Unity.4.0.1\lib\portable-net45+wp80+win8+wpa81+MonoAndroid10+MonoTouch10\Microsoft.Practices.Unity.dll 104 | 105 | 106 | ..\..\packages\Plugin.MediaManager.0.4.5\lib\portable-net45+wp8+wpa81+win8+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Plugin.MediaManager.dll 107 | 108 | 109 | ..\..\packages\Plugin.MediaManager.0.4.5\lib\portable-net45+wp8+wpa81+win8+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Plugin.MediaManager.Abstractions.dll 110 | 111 | 112 | ..\..\packages\Xamarin.Forms.3.0.0.201-gtk\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.Core.dll 113 | 114 | 115 | ..\..\packages\Xamarin.Forms.3.0.0.201-gtk\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.Platform.dll 116 | 117 | 118 | ..\..\packages\Xamarin.Forms.3.0.0.201-gtk\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.Xaml.dll 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | MSBuild:UpdateDesignTimeXaml 127 | Designer 128 | 129 | 130 | 131 | 132 | MSBuild:UpdateDesignTimeXaml 133 | Designer 134 | 135 | 136 | 137 | 138 | MSBuild:UpdateDesignTimeXaml 139 | Designer 140 | 141 | 142 | 143 | 144 | MSBuild:UpdateDesignTimeXaml 145 | Designer 146 | 147 | 148 | 149 | 150 | MSBuild:UpdateDesignTimeXaml 151 | Designer 152 | 153 | 154 | 155 | 156 | MSBuild:UpdateDesignTimeXaml 157 | Designer 158 | 159 | 160 | 161 | 162 | MSBuild:UpdateDesignTimeXaml 163 | Designer 164 | 165 | 166 | 167 | 168 | MSBuild:UpdateDesignTimeXaml 169 | Designer 170 | 171 | 172 | 173 | 174 | MSBuild:UpdateDesignTimeXaml 175 | Designer 176 | 177 | 178 | 179 | 180 | 181 | 182 | Este proyecto hace referencia a los paquetes NuGet que faltan en este equipo. Use la restauración de paquetes NuGet para descargarlos. Para obtener más información, consulte http://go.microsoft.com/fwlink/?LinkID=322105. El archivo que falta es {0}. 183 | 184 | 185 | 186 | -------------------------------------------------------------------------------- /src/Channel9/Channel9/Controls/HorizontalList/HorizontalList.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using System.Windows.Input; 5 | using Xamarin.Forms; 6 | 7 | namespace Channel9.Controls 8 | { 9 | public class HorizontalList : Grid 10 | { 11 | private ICommand _innerSelectedCommand; 12 | private readonly ScrollView _scrollView; 13 | private readonly StackLayout _itemsStackLayout; 14 | 15 | public event EventHandler SelectedItemChanged; 16 | 17 | public StackOrientation ListOrientation { get; set; } 18 | 19 | public double Spacing { get; set; } 20 | 21 | public static readonly BindableProperty SelectedCommandProperty = 22 | BindableProperty.Create("SelectedCommand", typeof(ICommand), typeof(HorizontalList), null); 23 | 24 | public static readonly BindableProperty ItemsSourceProperty = 25 | BindableProperty.Create("ItemsSource", typeof(IEnumerable), typeof(HorizontalList), default(IEnumerable), BindingMode.TwoWay, propertyChanged: ItemsSourceChanged); 26 | 27 | public static readonly BindableProperty SelectedItemProperty = 28 | BindableProperty.Create("SelectedItem", typeof(object), typeof(HorizontalList), null, BindingMode.TwoWay, propertyChanged: OnSelectedItemChanged); 29 | 30 | public static readonly BindableProperty ItemTemplateProperty = 31 | BindableProperty.Create("ItemTemplate", typeof(DataTemplate), typeof(HorizontalList), default(DataTemplate)); 32 | 33 | public ICommand SelectedCommand 34 | { 35 | get { return (ICommand)GetValue(SelectedCommandProperty); } 36 | set { SetValue(SelectedCommandProperty, value); } 37 | } 38 | 39 | public IEnumerable ItemsSource 40 | { 41 | get { return (IEnumerable)GetValue(ItemsSourceProperty); } 42 | set { SetValue(ItemsSourceProperty, value); } 43 | } 44 | 45 | public object SelectedItem 46 | { 47 | get { return (object)GetValue(SelectedItemProperty); } 48 | set { SetValue(SelectedItemProperty, value); } 49 | } 50 | 51 | public DataTemplate ItemTemplate 52 | { 53 | get { return (DataTemplate)GetValue(ItemTemplateProperty); } 54 | set { SetValue(ItemTemplateProperty, value); } 55 | } 56 | 57 | private static void ItemsSourceChanged(BindableObject bindable, object oldValue, object newValue) 58 | { 59 | var itemsLayout = (HorizontalList)bindable; 60 | itemsLayout.SetItems(); 61 | } 62 | 63 | public HorizontalList() 64 | { 65 | _scrollView = new ScrollView(); 66 | _itemsStackLayout = new StackLayout 67 | { 68 | BackgroundColor = BackgroundColor, 69 | Padding = Padding, 70 | Spacing = Spacing, 71 | HorizontalOptions = LayoutOptions.FillAndExpand 72 | }; 73 | 74 | _scrollView.BackgroundColor = BackgroundColor; 75 | _scrollView.Content = _itemsStackLayout; 76 | Children.Add(_scrollView); 77 | } 78 | 79 | protected virtual void SetItems() 80 | { 81 | _itemsStackLayout.Children.Clear(); 82 | _itemsStackLayout.Spacing = Spacing; 83 | 84 | _innerSelectedCommand = new Command(view => 85 | { 86 | SelectedItem = view.BindingContext; 87 | SelectedItem = null; // Allowing item second time selection 88 | }); 89 | 90 | _itemsStackLayout.Orientation = ListOrientation; 91 | _scrollView.Orientation = ListOrientation == StackOrientation.Horizontal 92 | ? ScrollOrientation.Horizontal 93 | : ScrollOrientation.Vertical; 94 | 95 | if (ItemsSource == null) 96 | { 97 | return; 98 | } 99 | 100 | foreach (var item in ItemsSource) 101 | { 102 | _itemsStackLayout.Children.Add(GetItemView(item)); 103 | } 104 | 105 | _itemsStackLayout.BackgroundColor = BackgroundColor; 106 | SelectedItem = null; 107 | } 108 | 109 | protected virtual View GetItemView(object item) 110 | { 111 | var content = ItemTemplate.CreateContent(); 112 | var view = content as View; 113 | 114 | if (view == null) 115 | { 116 | return null; 117 | } 118 | 119 | view.BindingContext = item; 120 | 121 | var gesture = new TapGestureRecognizer 122 | { 123 | Command = _innerSelectedCommand, 124 | CommandParameter = view 125 | }; 126 | 127 | AddGesture(view, gesture); 128 | 129 | return view; 130 | } 131 | 132 | private void AddGesture(View view, TapGestureRecognizer gesture) 133 | { 134 | view.GestureRecognizers.Add(gesture); 135 | 136 | var layout = view as Layout; 137 | 138 | if (layout == null) 139 | { 140 | return; 141 | } 142 | 143 | foreach (var child in layout.Children) 144 | { 145 | AddGesture(child, gesture); 146 | } 147 | } 148 | 149 | private static void OnSelectedItemChanged(BindableObject bindable, object oldValue, object newValue) 150 | { 151 | var itemsView = (HorizontalList)bindable; 152 | if (newValue == oldValue && newValue != null) 153 | { 154 | return; 155 | } 156 | 157 | itemsView.SelectedItemChanged?.Invoke(itemsView, EventArgs.Empty); 158 | 159 | if (itemsView.SelectedCommand?.CanExecute(newValue) ?? false) 160 | { 161 | itemsView.SelectedCommand?.Execute(newValue); 162 | } 163 | } 164 | } 165 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/Converters/HtmlToTextConverter.cs: -------------------------------------------------------------------------------- 1 | using HtmlAgilityPack; 2 | using System; 3 | using System.Globalization; 4 | using System.IO; 5 | using Xamarin.Forms; 6 | 7 | namespace Channel9.Converters 8 | { 9 | public class HtmlToTextConverter : IValueConverter 10 | { 11 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 12 | { 13 | if (value == null) 14 | return string.Empty; 15 | 16 | var html = value.ToString(); 17 | HtmlDocument doc = new HtmlDocument(); 18 | doc.LoadHtml(html); 19 | 20 | StringWriter sw = new StringWriter(); 21 | var node = doc.DocumentNode; 22 | ConvertTo(node, sw); 23 | sw.Flush(); 24 | 25 | return sw.ToString(); 26 | } 27 | 28 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 29 | { 30 | return null; 31 | } 32 | 33 | private void ConvertTo(HtmlNode node, TextWriter result) 34 | { 35 | string html; 36 | 37 | switch (node.NodeType) 38 | { 39 | case HtmlNodeType.Document: 40 | foreach (HtmlNode subnode in node.ChildNodes) 41 | { 42 | ConvertTo(subnode, result); 43 | } 44 | break; 45 | case HtmlNodeType.Text: 46 | string parentName = node.ParentNode.Name; 47 | if ((parentName == "script") || (parentName == "style")) 48 | break; 49 | 50 | html = ((HtmlTextNode)node).Text; 51 | 52 | if (HtmlNode.IsOverlappedClosingElement(html)) 53 | break; 54 | 55 | if (html.Trim().Length > 0) 56 | { 57 | result.Write(HtmlEntity.DeEntitize(html)); 58 | } 59 | break; 60 | case HtmlNodeType.Element: 61 | switch (node.Name) 62 | { 63 | case "p": 64 | result.Write("\r\n"); 65 | break; 66 | } 67 | 68 | if (node.HasChildNodes) 69 | { 70 | foreach (HtmlNode subnode in node.ChildNodes) 71 | { 72 | ConvertTo(subnode, result); 73 | } 74 | } 75 | break; 76 | } 77 | } 78 | } 79 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/Converters/InverseBoolConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Globalization; 3 | using Xamarin.Forms; 4 | 5 | namespace Channel9.Converters 6 | { 7 | public class InverseBoolConverter : IValueConverter 8 | { 9 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 10 | { 11 | if (!(value is bool)) 12 | { 13 | throw new InvalidOperationException("The target must be a boolean"); 14 | } 15 | 16 | return !(bool)value; 17 | } 18 | 19 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 20 | { 21 | return null; 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/Converters/MenuItemTypeConverter.cs: -------------------------------------------------------------------------------- 1 | using Channel9.Models; 2 | using System; 3 | using System.Globalization; 4 | using Xamarin.Forms; 5 | 6 | namespace Channel9.Converters 7 | { 8 | public class MenuItemTypeConverter : IValueConverter 9 | { 10 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 11 | { 12 | var menuItemType = (MenuItemType)value; 13 | 14 | switch (menuItemType) 15 | { 16 | case MenuItemType.Home: 17 | if(Device.RuntimePlatform == Device.GTK) 18 | return "Images/channel9-home.png"; 19 | else if (Device.RuntimePlatform == Device.UWP) 20 | return "Assets/channel9_home.png"; 21 | else 22 | return "channel9_home"; 23 | case MenuItemType.Featured: 24 | if (Device.RuntimePlatform == Device.GTK) 25 | return "Images/channel9-featured.png"; 26 | else if (Device.RuntimePlatform == Device.UWP) 27 | return "Assets/channel9_featured.png"; 28 | else 29 | return "channel9_featured"; 30 | case MenuItemType.Fresh: 31 | if (Device.RuntimePlatform == Device.GTK) 32 | return "Images/channel9-fresh.png"; 33 | else if (Device.RuntimePlatform == Device.UWP) 34 | return "Assets/channel9_fresh.png"; 35 | else 36 | return "channel9_fresh"; 37 | case MenuItemType.MostViewed: 38 | if (Device.RuntimePlatform == Device.GTK) 39 | return "Images/channel9-mostviewed.png"; 40 | else if (Device.RuntimePlatform == Device.UWP) 41 | return "Assets/channel9_mostviewed.png"; 42 | else 43 | return "channel9_mostviewed"; 44 | case MenuItemType.TopRated: 45 | if (Device.RuntimePlatform == Device.GTK) 46 | return "Images/channel9-toprated.png"; 47 | else if (Device.RuntimePlatform == Device.UWP) 48 | return "Assets/channel9_toprated.png"; 49 | else 50 | return "channel9_toprated"; 51 | case MenuItemType.Shows: 52 | if (Device.RuntimePlatform == Device.GTK) 53 | return "Images/channel9-shows.png"; 54 | else if (Device.RuntimePlatform == Device.UWP) 55 | return "Assets/channel9_shows.png"; 56 | else 57 | return "channel9_shows"; 58 | case MenuItemType.Series: 59 | if (Device.RuntimePlatform == Device.GTK) 60 | return "Images/channel9-series.png"; 61 | else if (Device.RuntimePlatform == Device.UWP) 62 | return "Assets/channel9_series.png"; 63 | else 64 | return "channel9_series"; 65 | case MenuItemType.Events: 66 | if (Device.RuntimePlatform == Device.GTK) 67 | return "Images/channel9-events.png"; 68 | else if (Device.RuntimePlatform == Device.UWP) 69 | return "Assets/channel9_events.png"; 70 | else 71 | return "channel9_events"; 72 | case MenuItemType.Tags: 73 | if (Device.RuntimePlatform == Device.GTK) 74 | return "Images/channel9-tags.png"; 75 | else if (Device.RuntimePlatform == Device.UWP) 76 | return "Assets/channel9_tags.png"; 77 | else 78 | return "channel9_tags"; 79 | case MenuItemType.Downloads: 80 | if (Device.RuntimePlatform == Device.GTK) 81 | return "Images/channel9_downloads.png"; 82 | else if (Device.RuntimePlatform == Device.UWP) 83 | return "Assets/channel9_downloads.png"; 84 | else 85 | return "channel9_downloads"; 86 | case MenuItemType.MyQueue: 87 | if (Device.RuntimePlatform == Device.GTK) 88 | return "Images/channel9-myqueue.png"; 89 | else if (Device.RuntimePlatform == Device.UWP) 90 | return "Assets/channel9_myqueue.png"; 91 | else 92 | return "channel9_myqueue"; 93 | case MenuItemType.Settings: 94 | if (Device.RuntimePlatform == Device.GTK) 95 | return "Images/channel9-settings.png"; 96 | else if (Device.RuntimePlatform == Device.UWP) 97 | return "Assets/channel9_settings.png"; 98 | else 99 | return "channel9_settings"; 100 | default: 101 | return string.Empty; 102 | } 103 | } 104 | 105 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 106 | { 107 | return null; 108 | } 109 | } 110 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/Converters/ToUpperConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Globalization; 3 | using Xamarin.Forms; 4 | 5 | namespace Channel9.Converters 6 | { 7 | public class ToUpperConverter : IValueConverter 8 | { 9 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 10 | { 11 | if (value != null) 12 | return value.ToString().ToUpper(); 13 | 14 | return value; 15 | } 16 | 17 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 18 | { 19 | return null; 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/Channel9/Channel9/Models/Episode.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Channel9.Models 4 | { 5 | public class Episode 6 | { 7 | public Episode( 8 | string key, 9 | string title, 10 | string description, 11 | string itemThumbnail, 12 | TimeSpan duration, 13 | string subtitle, 14 | string feedId = "") 15 | { 16 | Id = Guid.NewGuid(); 17 | Uri = key; 18 | Title = title; 19 | Description = description; 20 | ItemThumbnail = itemThumbnail; 21 | Duration = duration; 22 | Subtitle = subtitle; 23 | FeedId = feedId; 24 | } 25 | 26 | public Guid Id { get; set; } 27 | 28 | public string Uri { get; set; } 29 | 30 | public string Title { get; set; } 31 | 32 | public string Description { get; set; } 33 | 34 | public string ItemThumbnail { get; set; } 35 | 36 | public string FeedId { get; set; } 37 | 38 | public TimeSpan Duration { get; set; } 39 | 40 | public string Subtitle { get; set; } 41 | 42 | public override string ToString() 43 | { 44 | return Title ?? string.Empty; 45 | } 46 | } 47 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/Models/MenuItem.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Xamarin.Forms; 3 | 4 | namespace Channel9.Models 5 | { 6 | public enum MenuItemType 7 | { 8 | Home, 9 | Featured, 10 | Fresh, 11 | MostViewed, 12 | TopRated, 13 | Shows, 14 | Series, 15 | Events, 16 | Tags, 17 | Downloads, 18 | MyQueue, 19 | Settings 20 | } 21 | 22 | public class MenuItem : BindableObject 23 | { 24 | private string _title; 25 | 26 | public string Title 27 | { 28 | get 29 | { 30 | return _title; 31 | } 32 | 33 | set 34 | { 35 | _title = value; 36 | OnPropertyChanged(); 37 | } 38 | } 39 | 40 | private MenuItemType _menuItemType; 41 | 42 | public MenuItemType MenuItemType 43 | { 44 | get 45 | { 46 | return _menuItemType; 47 | } 48 | 49 | set 50 | { 51 | _menuItemType = value; 52 | OnPropertyChanged(); 53 | } 54 | } 55 | 56 | private Type _viewModelType; 57 | 58 | public Type ViewModelType 59 | { 60 | get 61 | { 62 | return _viewModelType; 63 | } 64 | 65 | set 66 | { 67 | _viewModelType = value; 68 | OnPropertyChanged(); 69 | } 70 | } 71 | 72 | private bool _isEnabled; 73 | 74 | public bool IsEnabled 75 | { 76 | get 77 | { 78 | return _isEnabled; 79 | } 80 | 81 | set 82 | { 83 | _isEnabled = value; 84 | OnPropertyChanged(); 85 | } 86 | } 87 | } 88 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Resources; 2 | using System.Reflection; 3 | using System.Runtime.CompilerServices; 4 | using System.Runtime.InteropServices; 5 | 6 | // General Information about an assembly is controlled through the following 7 | // set of attributes. Change these attribute values to modify the information 8 | // associated with an assembly. 9 | [assembly: AssemblyTitle("Channel9")] 10 | [assembly: AssemblyDescription("")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("")] 13 | [assembly: AssemblyProduct("Channel9")] 14 | [assembly: AssemblyCopyright("Copyright © 2014")] 15 | [assembly: AssemblyTrademark("")] 16 | [assembly: AssemblyCulture("")] 17 | [assembly: NeutralResourcesLanguage("en")] 18 | 19 | // Version information for an assembly consists of the following four values: 20 | // 21 | // Major Version 22 | // Minor Version 23 | // Build Number 24 | // Revision 25 | // 26 | // You can specify all the values or you can default the Build and Revision Numbers 27 | // by using the '*' as shown below: 28 | // [assembly: AssemblyVersion("1.0.*")] 29 | [assembly: AssemblyVersion("1.0.0.0")] 30 | [assembly: AssemblyFileVersion("1.0.0.0")] 31 | -------------------------------------------------------------------------------- /src/Channel9/Channel9/Services/Navigation/INavigationService.cs: -------------------------------------------------------------------------------- 1 | using Channel9.ViewModels.Base; 2 | using System; 3 | using System.Threading.Tasks; 4 | 5 | namespace Channel9.Services.Navigation 6 | { 7 | public interface INavigationService 8 | { 9 | Task InitializeAsync(); 10 | 11 | Task NavigateToAsync() where TViewModel : ViewModelBase; 12 | 13 | Task NavigateToAsync(object parameter) where TViewModel : ViewModelBase; 14 | 15 | Task NavigateToAsync(Type viewModelType); 16 | 17 | Task NavigateToAsync(Type viewModelType, object parameter); 18 | 19 | Task NavigateBackAsync(); 20 | 21 | Task RemoveLastFromBackStackAsync(); 22 | } 23 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/Services/Navigation/NavigationService.cs: -------------------------------------------------------------------------------- 1 | using Channel9.ViewModels; 2 | using Channel9.ViewModels.Base; 3 | using Channel9.Views; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Threading.Tasks; 7 | using Xamarin.Forms; 8 | 9 | namespace Channel9.Services.Navigation 10 | { 11 | public class NavigationService : INavigationService 12 | { 13 | protected readonly Dictionary _mappings; 14 | 15 | protected Application CurrentApplication 16 | { 17 | get { return Application.Current; } 18 | } 19 | 20 | public NavigationService() 21 | { 22 | _mappings = new Dictionary(); 23 | 24 | CreatePageViewModelMappings(); 25 | } 26 | 27 | public Task InitializeAsync() 28 | { 29 | return NavigateToAsync(); 30 | } 31 | 32 | public Task NavigateToAsync() where TViewModel : ViewModelBase 33 | { 34 | return InternalNavigateToAsync(typeof(TViewModel), null); 35 | } 36 | 37 | public Task NavigateToAsync(object parameter) where TViewModel : ViewModelBase 38 | { 39 | return InternalNavigateToAsync(typeof(TViewModel), parameter); 40 | } 41 | 42 | public Task NavigateToAsync(Type viewModelType) 43 | { 44 | return InternalNavigateToAsync(viewModelType, null); 45 | } 46 | 47 | public Task NavigateToAsync(Type viewModelType, object parameter) 48 | { 49 | return InternalNavigateToAsync(viewModelType, parameter); 50 | } 51 | 52 | public async Task NavigateBackAsync() 53 | { 54 | if (CurrentApplication.MainPage is MainView) 55 | { 56 | var mainPage = CurrentApplication.MainPage as MainView; 57 | await mainPage.Detail.Navigation.PopAsync(); 58 | } 59 | else if (CurrentApplication.MainPage != null) 60 | { 61 | await CurrentApplication.MainPage.Navigation.PopAsync(); 62 | } 63 | } 64 | 65 | public virtual Task RemoveLastFromBackStackAsync() 66 | { 67 | var mainPage = CurrentApplication.MainPage as MainView; 68 | 69 | if (mainPage != null) 70 | { 71 | mainPage.Detail.Navigation.RemovePage( 72 | mainPage.Detail.Navigation.NavigationStack[mainPage.Detail.Navigation.NavigationStack.Count - 2]); 73 | } 74 | 75 | return Task.FromResult(true); 76 | } 77 | 78 | protected virtual async Task InternalNavigateToAsync(Type viewModelType, object parameter) 79 | { 80 | Page page = CreateAndBindPage(viewModelType, parameter); 81 | 82 | if (page is SplashView) 83 | { 84 | CurrentApplication.MainPage = new CustomNavigationPage(page); 85 | } 86 | else if (page is MainView) 87 | { 88 | CurrentApplication.MainPage = page; 89 | } 90 | else if (CurrentApplication.MainPage is MainView) 91 | { 92 | var mainPage = CurrentApplication.MainPage as MainView; 93 | var navigationPage = mainPage.Detail as CustomNavigationPage; 94 | 95 | if (navigationPage != null) 96 | { 97 | await navigationPage.PushAsync(page); 98 | } 99 | else 100 | { 101 | navigationPage = new CustomNavigationPage(page); 102 | mainPage.Detail = navigationPage; 103 | } 104 | 105 | mainPage.IsPresented = false; 106 | } 107 | else 108 | { 109 | var navigationPage = CurrentApplication.MainPage as CustomNavigationPage; 110 | 111 | if (navigationPage != null) 112 | { 113 | await navigationPage.PushAsync(page); 114 | } 115 | else 116 | { 117 | CurrentApplication.MainPage = new CustomNavigationPage(page); 118 | } 119 | } 120 | 121 | await (page.BindingContext as ViewModelBase).InitializeAsync(parameter); 122 | } 123 | 124 | protected Type GetPageTypeForViewModel(Type viewModelType) 125 | { 126 | if (!_mappings.ContainsKey(viewModelType)) 127 | { 128 | throw new KeyNotFoundException($"No map for ${viewModelType} was found on navigation mappings"); 129 | } 130 | 131 | return _mappings[viewModelType]; 132 | } 133 | 134 | protected Page CreateAndBindPage(Type viewModelType, object parameter) 135 | { 136 | Type pageType = GetPageTypeForViewModel(viewModelType); 137 | 138 | if (pageType == null) 139 | { 140 | throw new Exception($"Mapping type for {viewModelType} is not a page"); 141 | } 142 | 143 | Page page = Activator.CreateInstance(pageType) as Page; 144 | ViewModelBase viewModel = Locator.Instance.Resolve(viewModelType) as ViewModelBase; 145 | page.BindingContext = viewModel; 146 | 147 | return page; 148 | } 149 | 150 | private void CreatePageViewModelMappings() 151 | { 152 | _mappings.Add(typeof(HomeViewModel), typeof(HomeView)); 153 | _mappings.Add(typeof(MainViewModel), typeof(MainView)); 154 | _mappings.Add(typeof(SplashViewModel), typeof(SplashView)); 155 | } 156 | } 157 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/Services/RssService/IRssService.cs: -------------------------------------------------------------------------------- 1 | using Channel9.Models; 2 | using System.Collections.Generic; 3 | using System.Threading.Tasks; 4 | 5 | namespace Channel9.Services.RssService 6 | { 7 | public interface IRssService 8 | { 9 | Task> GetEpisodesAsync(string uri, string feedId); 10 | } 11 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/Services/RssService/RssService.cs: -------------------------------------------------------------------------------- 1 | using Channel9.Models; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Diagnostics; 5 | using System.IO; 6 | using System.Linq; 7 | using System.Net.Http; 8 | using System.Text; 9 | using System.Threading.Tasks; 10 | using System.Xml.Linq; 11 | 12 | // 13 | namespace Channel9.Services.RssService 14 | { 15 | public class RssService : IRssService 16 | { 17 | public async Task> GetEpisodesAsync(string uri, string feedId) 18 | { 19 | HttpClient client = new HttpClient(); 20 | using (var stream = await client.GetStreamAsync(uri)) 21 | { 22 | return ParseRssFeed(stream, feedId); 23 | } 24 | } 25 | 26 | internal static List ParseRssFeed(Stream stream, string feedId = "") 27 | { 28 | List results = new List(); 29 | 30 | XNamespace ns = "http://purl.org/rss/1.0/"; 31 | XNamespace mrss = "http://search.yahoo.com/mrss/"; 32 | XNamespace itunes = "http://www.itunes.com/dtds/podcast-1.0.dtd"; 33 | var media = mrss.GetName("media"); 34 | 35 | XDocument xdoc = XDocument.Load(stream); 36 | 37 | var items = xdoc.Descendants("item"); 38 | foreach (var item in items) 39 | { 40 | string thumbUri = string.Empty; 41 | XAttribute mediadownload; 42 | 43 | var durationStr = item.Element(itunes + "duration")?.Value; 44 | TimeSpan duration = TimeSpan.MinValue; 45 | if (!string.IsNullOrEmpty(durationStr) && durationStr.Contains(":")) 46 | { 47 | duration = TimeSpan.Parse(durationStr); 48 | } 49 | else if (!string.IsNullOrEmpty(durationStr) && !durationStr.Contains(":")) // Channel 9 50 | { 51 | duration = TimeSpan.FromSeconds(Convert.ToInt32(durationStr)); 52 | } 53 | 54 | var subtitleStr = item.Element(itunes + "subtitle")?.Value; 55 | 56 | if (string.IsNullOrEmpty(subtitleStr)) 57 | { 58 | var cats = item.Elements("category"); 59 | if (cats != null && cats.Count() > 0) 60 | { 61 | StringBuilder sb = new StringBuilder(); 62 | 63 | foreach(var cat in cats.ToList()) 64 | { 65 | sb.Append($"{cat.Value} "); 66 | } 67 | 68 | subtitleStr = sb.ToString(); 69 | } 70 | } 71 | 72 | var desc = item.Element("description"); 73 | var content = item.Elements(mrss + "content").FirstOrDefault(); 74 | if (content != null) 75 | { 76 | mediadownload = content.Attribute("url"); 77 | var thumbnailElement = content.Element(mrss + "thumbnail"); 78 | if (thumbnailElement != null) 79 | { 80 | var thumbnail = thumbnailElement.Attribute("url"); 81 | thumbUri = thumbnail.Value; 82 | } 83 | } 84 | else 85 | { 86 | var thumbnailElements = item.Elements(mrss + "thumbnail"); 87 | XElement thumbElement = null; 88 | if (thumbnailElements.Count() >= 4) 89 | { 90 | thumbElement = thumbnailElements.ElementAt(3); 91 | } 92 | else if (thumbnailElements.Count() >= 1) 93 | { 94 | thumbElement = thumbnailElements.ElementAt(0); 95 | } 96 | 97 | if (thumbElement != null) 98 | { 99 | thumbUri = thumbElement.Attribute("url").Value; 100 | } 101 | 102 | var mediaGroup = item.Elements(mrss + "group"); 103 | var mediaUriElements = mediaGroup.Elements(mrss + "content"); 104 | XElement mediaUriElement = null; 105 | if (mediaUriElements.Count() >= 4) 106 | { 107 | mediaUriElement = mediaUriElements.ElementAt(3); 108 | } 109 | 110 | if (mediaUriElements.Count() == 1) 111 | { 112 | mediaUriElement = mediaUriElements.ElementAt(0); 113 | } 114 | 115 | mediadownload = mediaUriElement?.Attribute("url"); 116 | } 117 | 118 | if (mediadownload == null) 119 | { 120 | var mediadownloadElements = item.Element("enclosure"); 121 | mediadownload = mediadownloadElements?.Attribute("url"); 122 | } 123 | 124 | if (mediadownload != null) 125 | { 126 | var feed = new Episode( 127 | title: item.Element("title").Value, 128 | description: desc.Value, 129 | key: mediadownload.Value, 130 | itemThumbnail: thumbUri, 131 | duration: duration, 132 | subtitle: subtitleStr, 133 | feedId : feedId); 134 | results.Add(feed); 135 | } 136 | else 137 | { 138 | Debug.WriteLine($"Skipping"); 139 | } 140 | } 141 | 142 | return results; 143 | } 144 | } 145 | } 146 | -------------------------------------------------------------------------------- /src/Channel9/Channel9/ViewModels/Base/Locator.cs: -------------------------------------------------------------------------------- 1 | using Channel9.Services.Navigation; 2 | using Channel9.Services.RssService; 3 | using Microsoft.Practices.Unity; 4 | using System; 5 | 6 | namespace Channel9.ViewModels.Base 7 | { 8 | public class Locator 9 | { 10 | private readonly IUnityContainer _container; 11 | 12 | private static readonly Locator _instance = new Locator(); 13 | 14 | public static Locator Instance 15 | { 16 | get 17 | { 18 | return _instance; 19 | } 20 | } 21 | 22 | protected Locator() 23 | { 24 | _container = new UnityContainer(); 25 | 26 | _container.RegisterType(); 27 | _container.RegisterType(); 28 | 29 | _container.RegisterType(); 30 | _container.RegisterType(); 31 | _container.RegisterType(); 32 | } 33 | 34 | public T Resolve() 35 | { 36 | return _container.Resolve(); 37 | } 38 | 39 | public object Resolve(Type type) 40 | { 41 | return _container.Resolve(type); 42 | } 43 | } 44 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/ViewModels/Base/ViewModelBase.cs: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | using Xamarin.Forms; 3 | 4 | namespace Channel9.ViewModels.Base 5 | { 6 | public class ViewModelBase : BindableObject 7 | { 8 | private bool _isBusy; 9 | 10 | public bool IsBusy 11 | { 12 | get 13 | { 14 | return _isBusy; 15 | } 16 | 17 | set 18 | { 19 | _isBusy = value; 20 | OnPropertyChanged(); 21 | } 22 | } 23 | 24 | public virtual Task InitializeAsync(object navigationData) 25 | { 26 | return Task.FromResult(false); 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/ViewModels/HomeViewModel.cs: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | using Channel9.Services.RssService; 3 | using Channel9.ViewModels.Base; 4 | using Channel9.Models; 5 | using System.Collections.ObjectModel; 6 | using System.Linq; 7 | using System.Windows.Input; 8 | using Xamarin.Forms; 9 | using Channel9.Services.Navigation; 10 | using System.Diagnostics; 11 | 12 | namespace Channel9.ViewModels 13 | { 14 | public class HomeViewModel : ViewModelBase 15 | { 16 | private Episode _banner; 17 | private ObservableCollection _channel9; 18 | private ObservableCollection _xamarinShow; 19 | private ObservableCollection _build; 20 | 21 | private readonly INavigationService _navigationService; 22 | private readonly IRssService _rssService; 23 | 24 | public HomeViewModel( 25 | INavigationService navigationService, 26 | IRssService rssService) 27 | { 28 | _navigationService = navigationService; 29 | _rssService = rssService; 30 | } 31 | 32 | public Episode Banner 33 | { 34 | get { return _banner; } 35 | set 36 | { 37 | _banner = value; 38 | OnPropertyChanged(); 39 | } 40 | } 41 | 42 | public ObservableCollection Channel9 43 | { 44 | get { return _channel9; } 45 | set 46 | { 47 | _channel9 = value; 48 | OnPropertyChanged(); 49 | } 50 | } 51 | 52 | public ObservableCollection XamarinShow 53 | { 54 | get { return _xamarinShow; } 55 | set 56 | { 57 | _xamarinShow = value; 58 | OnPropertyChanged(); 59 | } 60 | } 61 | 62 | public ObservableCollection Build 63 | { 64 | get { return _build; } 65 | set 66 | { 67 | _build = value; 68 | OnPropertyChanged(); 69 | } 70 | } 71 | 72 | public ICommand PlayerCommand => new Command(PlayerAsync); 73 | 74 | public override async Task InitializeAsync(object navigationData) 75 | { 76 | IsBusy = true; 77 | 78 | var channel9 = await _rssService.GetEpisodesAsync(AppSettings.Channel9, "Channel 9"); 79 | Channel9 = new ObservableCollection(channel9.Take(10)); 80 | Banner = Channel9.FirstOrDefault(); 81 | 82 | var xamarinShow = await _rssService.GetEpisodesAsync(AppSettings.XamarinShow, "Xamarin Show"); 83 | XamarinShow = new ObservableCollection(xamarinShow.Take(10)); 84 | 85 | var build = await _rssService.GetEpisodesAsync(AppSettings.Build2017, "Build 2017"); 86 | Build = new ObservableCollection(build.Take(10)); 87 | 88 | IsBusy = false; 89 | } 90 | 91 | private void PlayerAsync(object obj) 92 | { 93 | var episode = obj as Episode; 94 | 95 | if (episode != null) 96 | { 97 | Debug.WriteLine(episode.Title); 98 | 99 | // TODO: Navigate to detail 100 | } 101 | } 102 | } 103 | } 104 | -------------------------------------------------------------------------------- /src/Channel9/Channel9/ViewModels/MainViewModel.cs: -------------------------------------------------------------------------------- 1 | using Channel9.Services.Navigation; 2 | using Channel9.ViewModels.Base; 3 | using System.Threading.Tasks; 4 | 5 | namespace Channel9.ViewModels 6 | { 7 | public class MainViewModel : ViewModelBase 8 | { 9 | private MenuViewModel _menuViewModel; 10 | private HomeViewModel _homeViewModel; 11 | 12 | private INavigationService _navigationService; 13 | 14 | public MainViewModel( 15 | INavigationService navigationService, 16 | MenuViewModel menuViewModel, 17 | HomeViewModel homeViewModel) 18 | { 19 | _navigationService = navigationService; 20 | _menuViewModel = menuViewModel; 21 | _homeViewModel = homeViewModel; 22 | } 23 | 24 | public MenuViewModel MenuViewModel 25 | { 26 | get 27 | { 28 | return _menuViewModel; 29 | } 30 | 31 | set 32 | { 33 | _menuViewModel = value; 34 | OnPropertyChanged(); 35 | } 36 | } 37 | 38 | public HomeViewModel HomeViewModel 39 | { 40 | get 41 | { 42 | return _homeViewModel; 43 | } 44 | 45 | set 46 | { 47 | _homeViewModel = value; 48 | OnPropertyChanged(); 49 | } 50 | } 51 | 52 | public override Task InitializeAsync(object navigationData) 53 | { 54 | return Task.WhenAll 55 | ( 56 | _menuViewModel.InitializeAsync(navigationData), 57 | _navigationService.NavigateToAsync() 58 | ); 59 | } 60 | } 61 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/ViewModels/MenuViewModel.cs: -------------------------------------------------------------------------------- 1 | using Channel9.Services.Navigation; 2 | using Channel9.ViewModels.Base; 3 | using System.Collections.ObjectModel; 4 | using System.Threading.Tasks; 5 | using System.Windows.Input; 6 | using Xamarin.Forms; 7 | 8 | namespace Channel9.ViewModels 9 | { 10 | public class MenuViewModel : ViewModelBase 11 | { 12 | private ObservableCollection _menuItems; 13 | 14 | private INavigationService _navigationService; 15 | 16 | public MenuViewModel(INavigationService navigationService) 17 | { 18 | _navigationService = navigationService; 19 | } 20 | 21 | public ObservableCollection MenuItems 22 | { 23 | get 24 | { 25 | return _menuItems; 26 | } 27 | set 28 | { 29 | _menuItems = value; 30 | OnPropertyChanged(); 31 | } 32 | } 33 | 34 | public ICommand ItemSelectedCommand => new Command(SelectMenuItem); 35 | 36 | public override Task InitializeAsync(object navigationData) 37 | { 38 | InitMenuItems(); 39 | 40 | return base.InitializeAsync(navigationData); 41 | } 42 | 43 | private void InitMenuItems() 44 | { 45 | MenuItems = new ObservableCollection 46 | { 47 | new Models.MenuItem 48 | { 49 | Title = "Home", 50 | MenuItemType = Models.MenuItemType.Home, 51 | ViewModelType = typeof(HomeViewModel), 52 | IsEnabled = true 53 | }, 54 | new Models.MenuItem 55 | { 56 | Title = "Featured", 57 | MenuItemType = Models.MenuItemType.Featured, 58 | IsEnabled = false 59 | }, 60 | new Models.MenuItem 61 | { 62 | Title = "Fresh", 63 | MenuItemType = Models.MenuItemType.Fresh, 64 | IsEnabled = false 65 | }, 66 | new Models.MenuItem 67 | { 68 | Title = "Most Viewed", 69 | MenuItemType = Models.MenuItemType.MostViewed, 70 | IsEnabled = false 71 | }, 72 | new Models.MenuItem 73 | { 74 | Title = "Top Rated", 75 | MenuItemType = Models.MenuItemType.TopRated, 76 | IsEnabled = false 77 | }, 78 | new Models.MenuItem 79 | { 80 | Title = "Shows", 81 | MenuItemType = Models.MenuItemType.Shows, 82 | IsEnabled = false 83 | }, 84 | new Models.MenuItem 85 | { 86 | Title = "Series", 87 | MenuItemType = Models.MenuItemType.Series, 88 | IsEnabled = false 89 | }, 90 | new Models.MenuItem 91 | { 92 | Title = "Events", 93 | MenuItemType = Models.MenuItemType.Events, 94 | IsEnabled = false 95 | }, 96 | new Models.MenuItem 97 | { 98 | Title = "Tags", 99 | MenuItemType = Models.MenuItemType.Tags, 100 | IsEnabled = false 101 | }, 102 | new Models.MenuItem 103 | { 104 | Title = "Downloads", 105 | MenuItemType = Models.MenuItemType.Downloads, 106 | IsEnabled = false 107 | }, 108 | new Models.MenuItem 109 | { 110 | Title = "My Queue", 111 | MenuItemType = Models.MenuItemType.MyQueue, 112 | IsEnabled = false 113 | }, 114 | new Models.MenuItem 115 | { 116 | Title = "Settings", 117 | MenuItemType = Models.MenuItemType.Settings, 118 | IsEnabled = false 119 | } 120 | }; 121 | } 122 | 123 | private async void SelectMenuItem(Models.MenuItem item) 124 | { 125 | if (item.IsEnabled) 126 | { 127 | await _navigationService.NavigateToAsync(item.ViewModelType, null); 128 | } 129 | } 130 | } 131 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/ViewModels/SplashViewModel.cs: -------------------------------------------------------------------------------- 1 | using Channel9.Services.Navigation; 2 | using Channel9.ViewModels.Base; 3 | using System.Threading.Tasks; 4 | 5 | namespace Channel9.ViewModels 6 | { 7 | public class SplashViewModel : ViewModelBase 8 | { 9 | private INavigationService _navigationService; 10 | 11 | public SplashViewModel(INavigationService navigationService) 12 | { 13 | _navigationService = navigationService; 14 | } 15 | 16 | public override async Task InitializeAsync(object navigationData) 17 | { 18 | await _navigationService.NavigateToAsync(); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/Views/CustomNavigationPage.xaml: -------------------------------------------------------------------------------- 1 |  2 | 8 | -------------------------------------------------------------------------------- /src/Channel9/Channel9/Views/CustomNavigationPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using Xamarin.Forms; 2 | using Xamarin.Forms.PlatformConfiguration; 3 | using Xamarin.Forms.PlatformConfiguration.GTKSpecific; 4 | 5 | namespace Channel9.Views 6 | { 7 | public partial class CustomNavigationPage : Xamarin.Forms.NavigationPage 8 | { 9 | public CustomNavigationPage() : base() 10 | { 11 | InitializeComponent(); 12 | } 13 | 14 | public CustomNavigationPage(Page root) : base(root) 15 | { 16 | InitializeComponent(); 17 | 18 | this.On().SetBackButtonIcon("Images/channel9-back.png"); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/Views/HomeView.xaml: -------------------------------------------------------------------------------- 1 |  2 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 26 | 27 | 31 | 32 | 38 | 39 | 46 | 47 | 54 | 55 | 56 | 57 | 58 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 72 | 73 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 103 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 138 | 139 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 187 | 188 | 189 | -------------------------------------------------------------------------------- /src/Channel9/Channel9/Views/HomeView.xaml.cs: -------------------------------------------------------------------------------- 1 | using Xamarin.Forms; 2 | 3 | namespace Channel9.Views 4 | { 5 | public partial class HomeView : ContentPage 6 | { 7 | public HomeView() 8 | { 9 | InitializeComponent(); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/Views/MainView.xaml: -------------------------------------------------------------------------------- 1 |  2 | 8 | 9 | 11 | 12 | 13 | 15 | 16 | -------------------------------------------------------------------------------- /src/Channel9/Channel9/Views/MainView.xaml.cs: -------------------------------------------------------------------------------- 1 | using Xamarin.Forms; 2 | 3 | namespace Channel9.Views 4 | { 5 | public partial class MainView : MasterDetailPage 6 | { 7 | public MainView() 8 | { 9 | InitializeComponent(); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/Views/MenuView.xaml: -------------------------------------------------------------------------------- 1 |  2 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /src/Channel9/Channel9/Views/MenuView.xaml.cs: -------------------------------------------------------------------------------- 1 | using Xamarin.Forms; 2 | 3 | namespace Channel9.Views 4 | { 5 | public partial class MenuView : ContentPage 6 | { 7 | public MenuView() 8 | { 9 | InitializeComponent(); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/Views/SplashView.xaml: -------------------------------------------------------------------------------- 1 |  2 | 5 | 6 | 8 | 9 | -------------------------------------------------------------------------------- /src/Channel9/Channel9/Views/SplashView.xaml.cs: -------------------------------------------------------------------------------- 1 | using Xamarin.Forms; 2 | 3 | namespace Channel9.Views 4 | { 5 | public partial class SplashView : ContentPage 6 | { 7 | public SplashView() 8 | { 9 | InitializeComponent(); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/Views/Templates/HomeBigItemTemplate.xaml: -------------------------------------------------------------------------------- 1 |  2 | 6 | 7 | 8 | 9 | 13 | 14 | 17 | 18 | 24 | 25 | 33 | 34 | 35 | 36 | 37 | 39 | 40 | 41 | 42 | 43 | 44 | 49 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 70 | 71 | -------------------------------------------------------------------------------- /src/Channel9/Channel9/Views/Templates/HomeBigItemTemplate.xaml.cs: -------------------------------------------------------------------------------- 1 | using Xamarin.Forms; 2 | 3 | namespace Channel9.Views.Templates 4 | { 5 | public partial class HomeBigItemTemplate : ContentView 6 | { 7 | public HomeBigItemTemplate() 8 | { 9 | InitializeComponent(); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/Views/Templates/HomeSmallItemTemplate01.xaml: -------------------------------------------------------------------------------- 1 |  2 | 6 | 7 | 8 | 9 | 13 | 14 | 17 | 18 | 24 | 25 | 33 | 34 | 35 | 36 | 37 | 39 | 40 | 41 | 42 | 43 | 44 | 49 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 70 | 71 | -------------------------------------------------------------------------------- /src/Channel9/Channel9/Views/Templates/HomeSmallItemTemplate01.xaml.cs: -------------------------------------------------------------------------------- 1 | using Xamarin.Forms; 2 | 3 | namespace Channel9.Views.Templates 4 | { 5 | public partial class HomeSmallItemTemplate01 : ContentView 6 | { 7 | public HomeSmallItemTemplate01() 8 | { 9 | InitializeComponent(); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/Views/Templates/HomeSmallItemTemplate02.xaml: -------------------------------------------------------------------------------- 1 |  2 | 6 | 7 | 8 | 9 | 13 | 14 | 17 | 18 | 21 | 22 | 28 | 29 | 33 | 34 | 42 | 43 | 49 | 50 | 56 | 57 | 58 | 59 | 60 | 63 | 65 | 66 | 67 | 68 | 69 | 70 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /src/Channel9/Channel9/Views/Templates/HomeSmallItemTemplate02.xaml.cs: -------------------------------------------------------------------------------- 1 | using Xamarin.Forms; 2 | 3 | namespace Channel9.Views.Templates 4 | { 5 | public partial class HomeSmallItemTemplate02 : ContentView 6 | { 7 | public HomeSmallItemTemplate02() 8 | { 9 | InitializeComponent(); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/Views/Templates/MenuItemTemplate.xaml: -------------------------------------------------------------------------------- 1 |  2 | 6 | 7 | 8 | 9 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 31 | 36 | 37 | -------------------------------------------------------------------------------- /src/Channel9/Channel9/Views/Templates/MenuItemTemplate.xaml.cs: -------------------------------------------------------------------------------- 1 | using Xamarin.Forms; 2 | 3 | namespace Channel9.Views.Templates 4 | { 5 | public partial class MenuItemTemplate : ContentView 6 | { 7 | public MenuItemTemplate() 8 | { 9 | InitializeComponent(); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/Channel9/Channel9/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | --------------------------------------------------------------------------------