Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Proyecto de Pruebas

Proyecto de Pruebas básico sin estructura
  • Loading branch information...
commit e08ebb267227c2631ffc4a0258c90e9c886acd57 1 parent bcc61ae
@pabloescribano authored
Showing with 7,678 additions and 0 deletions.
  1. +146 −0 CapitanTioApp/CapitanTioApp.Tests/CapitanTioApp.Tests.csproj
  2. BIN  CapitanTioApp/CapitanTioApp.Tests/CapitanTioApp.Tests_TemporaryKey.pfx
  3. BIN  CapitanTioApp/CapitanTioApp.Tests/Images/UnitTestLogo.png
  4. BIN  CapitanTioApp/CapitanTioApp.Tests/Images/UnitTestSmallLogo.png
  5. BIN  CapitanTioApp/CapitanTioApp.Tests/Images/UnitTestSplashScreen.png
  6. BIN  CapitanTioApp/CapitanTioApp.Tests/Images/UnitTestStoreLogo.png
  7. +56 −0 CapitanTioApp/CapitanTioApp.Tests/Package.appxmanifest
  8. +28 −0 CapitanTioApp/CapitanTioApp.Tests/Properties/AssemblyInfo.cs
  9. +17 −0 CapitanTioApp/CapitanTioApp.Tests/UnitTest1.cs
  10. BIN  CapitanTioApp/CapitanTioApp.Tests/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  11. 0  CapitanTioApp/CapitanTioApp.Tests/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
  12. 0  CapitanTioApp/CapitanTioApp.Tests/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
  13. 0  CapitanTioApp/CapitanTioApp.Tests/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
  14. +25 −0 CapitanTioApp/CapitanTioApp/bin/Debug/App.xaml
  15. +25 −0 CapitanTioApp/CapitanTioApp/bin/Debug/AppX/App.xaml
  16. +42 −0 CapitanTioApp/CapitanTioApp/bin/Debug/AppX/AppxManifest.xml
  17. BIN  CapitanTioApp/CapitanTioApp/bin/Debug/AppX/Assets/DarkGray.png
  18. BIN  CapitanTioApp/CapitanTioApp/bin/Debug/AppX/Assets/LightGray.png
  19. BIN  CapitanTioApp/CapitanTioApp/bin/Debug/AppX/Assets/Logo.png
  20. BIN  CapitanTioApp/CapitanTioApp/bin/Debug/AppX/Assets/MediumGray.png
  21. BIN  CapitanTioApp/CapitanTioApp/bin/Debug/AppX/Assets/SmallLogo.png
  22. BIN  CapitanTioApp/CapitanTioApp/bin/Debug/AppX/Assets/SplashScreen.png
  23. BIN  CapitanTioApp/CapitanTioApp/bin/Debug/AppX/Assets/StoreLogo.png
  24. BIN  CapitanTioApp/CapitanTioApp/bin/Debug/AppX/CapitanTioApp.exe
  25. BIN  CapitanTioApp/CapitanTioApp/bin/Debug/AppX/CapitanTioApp.pdb
  26. +1,830 −0 CapitanTioApp/CapitanTioApp/bin/Debug/AppX/Common/StandardStyles.xaml
  27. +147 −0 CapitanTioApp/CapitanTioApp/bin/Debug/AppX/GroupDetailPage.xaml
  28. +176 −0 CapitanTioApp/CapitanTioApp/bin/Debug/AppX/GroupedItemsPage.xaml
  29. +183 −0 CapitanTioApp/CapitanTioApp/bin/Debug/AppX/ItemDetailPage.xaml
  30. BIN  ...App/bin/Debug/AppX/microsoft.system.package.metadata/S-1-5-21-1083906950-3478340512-2245345066-1001.pckgdep
  31. BIN  CapitanTioApp/CapitanTioApp/bin/Debug/AppX/resources.pri
  32. +90 −0 CapitanTioApp/CapitanTioApp/bin/Debug/AppX/vs.appxrecipe
  33. +42 −0 CapitanTioApp/CapitanTioApp/bin/Debug/AppxManifest.xml
  34. +68 −0 CapitanTioApp/CapitanTioApp/bin/Debug/CapitanTioApp.build.appxrecipe
  35. BIN  CapitanTioApp/CapitanTioApp/bin/Debug/CapitanTioApp.exe
  36. BIN  CapitanTioApp/CapitanTioApp/bin/Debug/CapitanTioApp.pdb
  37. +1,830 −0 CapitanTioApp/CapitanTioApp/bin/Debug/Common/StandardStyles.xaml
  38. +147 −0 CapitanTioApp/CapitanTioApp/bin/Debug/GroupDetailPage.xaml
  39. +176 −0 CapitanTioApp/CapitanTioApp/bin/Debug/GroupedItemsPage.xaml
  40. +183 −0 CapitanTioApp/CapitanTioApp/bin/Debug/ItemDetailPage.xaml
  41. BIN  CapitanTioApp/CapitanTioApp/bin/Debug/resources.pri
  42. +25 −0 CapitanTioApp/CapitanTioApp/obj/Debug/App.xaml
  43. +33 −0 CapitanTioApp/CapitanTioApp/obj/Debug/CapitanTioApp.csproj.FileListAbsolute.txt
  44. BIN  CapitanTioApp/CapitanTioApp/obj/Debug/CapitanTioApp.exe
  45. BIN  CapitanTioApp/CapitanTioApp/obj/Debug/CapitanTioApp.pdb
  46. +1,830 −0 CapitanTioApp/CapitanTioApp/obj/Debug/Common/StandardStyles.xaml
  47. +147 −0 CapitanTioApp/CapitanTioApp/obj/Debug/GroupDetailPage.xaml
  48. +176 −0 CapitanTioApp/CapitanTioApp/obj/Debug/GroupedItemsPage.xaml
  49. +183 −0 CapitanTioApp/CapitanTioApp/obj/Debug/ItemDetailPage.xaml
  50. 0  CapitanTioApp/CapitanTioApp/obj/Debug/LanguageQualifiers.txt
  51. 0  CapitanTioApp/CapitanTioApp/obj/Debug/LanguageQualifiers.txt.intermediate
  52. +1 −0  CapitanTioApp/CapitanTioApp/obj/Debug/ProjectArchitectures.txt
  53. BIN  CapitanTioApp/CapitanTioApp/obj/Debug/intermediatexaml/CapitanTioApp.exe
  54. BIN  CapitanTioApp/CapitanTioApp/obj/Debug/intermediatexaml/CapitanTioApp.pdb
  55. +12 −0 CapitanTioApp/CapitanTioApp/obj/Debug/layout.resfiles
  56. +12 −0 CapitanTioApp/CapitanTioApp/obj/Debug/layout.resfiles.intermediate
  57. 0  CapitanTioApp/CapitanTioApp/obj/Debug/pri.resfiles
  58. 0  CapitanTioApp/CapitanTioApp/obj/Debug/pri.resfiles.intermediate
  59. +24 −0 CapitanTioApp/CapitanTioApp/obj/Debug/priconfig.xml
  60. +24 −0 CapitanTioApp/CapitanTioApp/obj/Debug/priconfig.xml.intermediate
  61. 0  CapitanTioApp/CapitanTioApp/obj/Debug/resources.resfiles
  62. 0  CapitanTioApp/CapitanTioApp/obj/Debug/resources.resfiles.intermediate
View
146 CapitanTioApp/CapitanTioApp.Tests/CapitanTioApp.Tests.csproj
@@ -0,0 +1,146 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>0c24550f-ec27-448c-a225-1c099a0d0bca</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>CapitanTioApp.Tests</RootNamespace>
+ <AssemblyName>CapitanTioApp.Tests</AssemblyName>
+ <DefaultLanguage>es-ES</DefaultLanguage>
+ <FileAlignment>512</FileAlignment>
+ <ProjectTypeGuids>{BC8A1FFA-BEE3-4634-8014-F334798102B3};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <PackageCertificateKeyFile>CapitanTioApp.Tests_TemporaryKey.pfx</PackageCertificateKeyFile>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE;NETFX_CORE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE;NETFX_CORE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
+ <DebugSymbols>true</DebugSymbols>
+ <OutputPath>bin\ARM\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE;NETFX_CORE</DefineConstants>
+ <NoWarn>;2008</NoWarn>
+ <DebugType>full</DebugType>
+ <PlatformTarget>ARM</PlatformTarget>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ <ErrorReport>prompt</ErrorReport>
+ <Prefer32Bit>true</Prefer32Bit>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
+ <OutputPath>bin\ARM\Release\</OutputPath>
+ <DefineConstants>TRACE;NETFX_CORE</DefineConstants>
+ <Optimize>true</Optimize>
+ <NoWarn>;2008</NoWarn>
+ <DebugType>pdbonly</DebugType>
+ <PlatformTarget>ARM</PlatformTarget>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ <ErrorReport>prompt</ErrorReport>
+ <Prefer32Bit>true</Prefer32Bit>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
+ <DebugSymbols>true</DebugSymbols>
+ <OutputPath>bin\x64\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE;NETFX_CORE</DefineConstants>
+ <NoWarn>;2008</NoWarn>
+ <DebugType>full</DebugType>
+ <PlatformTarget>x64</PlatformTarget>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ <ErrorReport>prompt</ErrorReport>
+ <Prefer32Bit>true</Prefer32Bit>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
+ <OutputPath>bin\x64\Release\</OutputPath>
+ <DefineConstants>TRACE;NETFX_CORE</DefineConstants>
+ <Optimize>true</Optimize>
+ <NoWarn>;2008</NoWarn>
+ <DebugType>pdbonly</DebugType>
+ <PlatformTarget>x64</PlatformTarget>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ <ErrorReport>prompt</ErrorReport>
+ <Prefer32Bit>true</Prefer32Bit>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
+ <DebugSymbols>true</DebugSymbols>
+ <OutputPath>bin\x86\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE;NETFX_CORE</DefineConstants>
+ <NoWarn>;2008</NoWarn>
+ <DebugType>full</DebugType>
+ <PlatformTarget>x86</PlatformTarget>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ <ErrorReport>prompt</ErrorReport>
+ <Prefer32Bit>true</Prefer32Bit>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
+ <OutputPath>bin\x86\Release\</OutputPath>
+ <DefineConstants>TRACE;NETFX_CORE</DefineConstants>
+ <Optimize>true</Optimize>
+ <NoWarn>;2008</NoWarn>
+ <DebugType>pdbonly</DebugType>
+ <PlatformTarget>x86</PlatformTarget>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ <ErrorReport>prompt</ErrorReport>
+ <Prefer32Bit>true</Prefer32Bit>
+ </PropertyGroup>
+ <PropertyGroup>
+ <AppXPackage>True</AppXPackage>
+ <AppxPackageIncludePrivateSymbols>true</AppxPackageIncludePrivateSymbols>
+ </PropertyGroup>
+ <ItemGroup>
+ <!--A reference to the entire .Net Framework and Windows SDK are automatically included-->
+ <SDKReference Include="MSTestFramework, Version=11.0" />
+ <SDKReference Include="TestPlatform, Version=11.0" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="UnitTest1.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <AppxManifest Include="Package.appxmanifest">
+ <SubType>Designer</SubType>
+ </AppxManifest>
+ <None Include="CapitanTioApp.Tests_TemporaryKey.pfx" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="Images\UnitTestLogo.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="Images\UnitTestSmallLogo.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="Images\UnitTestSplashScreen.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="Images\UnitTestStoreLogo.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ </ItemGroup>
+ <PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '11.0' ">
+ <VisualStudioVersion>11.0</VisualStudioVersion>
+ </PropertyGroup>
+ <Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
View
BIN  CapitanTioApp/CapitanTioApp.Tests/CapitanTioApp.Tests_TemporaryKey.pfx
Binary file not shown
View
BIN  CapitanTioApp/CapitanTioApp.Tests/Images/UnitTestLogo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  CapitanTioApp/CapitanTioApp.Tests/Images/UnitTestSmallLogo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  CapitanTioApp/CapitanTioApp.Tests/Images/UnitTestSplashScreen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  CapitanTioApp/CapitanTioApp.Tests/Images/UnitTestStoreLogo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
56 CapitanTioApp/CapitanTioApp.Tests/Package.appxmanifest
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">
+
+ <Identity Name="a60f6084-346b-4bd8-a1f6-3fedf987cfbb"
+ Publisher="CN=pablo_000"
+ Version="1.0.0.0" />
+
+ <Properties>
+ <DisplayName>CapitanTioApp.Tests</DisplayName>
+ <PublisherDisplayName>pablo_000</PublisherDisplayName>
+ <Logo>Images\UnitTestStoreLogo.png</Logo>
+ <Description>CapitanTioApp.Tests</Description>
+ </Properties>
+
+ <Prerequisites>
+ <OSMinVersion>6.2.1</OSMinVersion>
+ <OSMaxVersionTested>6.2.1</OSMaxVersionTested>
+ </Prerequisites>
+
+ <Resources>
+ <Resource Language="x-generate"/>
+ </Resources>
+
+ <Applications>
+ <Application Id="vstest.executionengine.App"
+ Executable="vstest.executionengine.appcontainer.exe"
+ EntryPoint="vstest.executionengine.App">
+ <VisualElements
+ DisplayName="NoUIEntryPoints"
+ Logo="Images\UnitTestLogo.png"
+ SmallLogo="Images\UnitTestSmallLogo.png"
+ Description="vstest.executionengine.App"
+ ForegroundText="light"
+ BackgroundColor="#0084FF">
+ <SplashScreen Image="Images\UnitTestSplashScreen.png" />
+ </VisualElements>
+ </Application>
+
+ <Application Id="vstest.executionengine.x86.App"
+ Executable="vstest.executionengine.appcontainer.x86.exe"
+ EntryPoint="vstest.executionengine.x86.App">
+ <VisualElements
+ DisplayName="NoUIEntryPoints"
+ Logo="Images\UnitTestLogo.png"
+ SmallLogo="Images\UnitTestSmallLogo.png"
+ Description="vstest.executionengine.x86.App"
+ ForegroundText="light"
+ BackgroundColor="#0084FF">
+ <SplashScreen Image="Images\UnitTestSplashScreen.png" />
+ </VisualElements>
+ </Application>
+ </Applications>
+ <Capabilities>
+ <Capability Name="internetClient" />
+ </Capabilities>
+</Package>
View
28 CapitanTioApp/CapitanTioApp.Tests/Properties/AssemblyInfo.cs
@@ -0,0 +1,28 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// La información general sobre un ensamblado se controla mediante el siguiente
+// conjunto de atributos. Cambie estos atributos para modificar la información
+// asociada con un ensamblado.
+[assembly: AssemblyTitle("CapitanTioApp.Tests")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("CapitanTioApp.Tests")]
+[assembly: AssemblyCopyright("Copyright © 2012")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// La información de versión de un ensamblado consta de los cuatro valores siguientes:
+//
+// Versión principal
+// Versión secundaria
+// Número de compilación
+// Revisión
+//
+// Puede especificar todos los valores o establecer como predeterminados los números de compilación y de revisión
+// mediante el carácter '*', como se muestra a continuación:
+// [ensamblado: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
View
17 CapitanTioApp/CapitanTioApp.Tests/UnitTest1.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
+
+namespace CapitanTioApp.Tests
+{
+ [TestClass]
+ public class UnitTest1
+ {
+ [TestMethod]
+ public void TestMethod1()
+ {
+ }
+ }
+}
View
BIN  CapitanTioApp/CapitanTioApp.Tests/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown
View
0  CapitanTioApp/CapitanTioApp.Tests/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
No changes.
View
0  CapitanTioApp/CapitanTioApp.Tests/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
No changes.
View
0  CapitanTioApp/CapitanTioApp.Tests/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
No changes.
View
25 CapitanTioApp/CapitanTioApp/bin/Debug/App.xaml
@@ -0,0 +1,25 @@
+<Application
+ x:Class="CapitanTioApp.App"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:local="using:CapitanTioApp"
+ xmlns:localData="using:CapitanTioApp.Data">
+
+ <Application.Resources>
+ <ResourceDictionary>
+ <ResourceDictionary.MergedDictionaries>
+
+ <!--
+ Estilos que definen aspectos comunes de la apariencia de la aplicación.
+ Requeridos por las plantillas de elementos y proyecto de Visual Studio.
+ -->
+ <ResourceDictionary Source="Common/StandardStyles.xaml"/>
+ </ResourceDictionary.MergedDictionaries>
+
+ <!-- Recursos específicos de la aplicación -->
+
+ <x:String x:Key="AppName">CapitanTioApp</x:String>
+ </ResourceDictionary>
+ </Application.Resources>
+</Application>
+
View
25 CapitanTioApp/CapitanTioApp/bin/Debug/AppX/App.xaml
@@ -0,0 +1,25 @@
+<Application
+ x:Class="CapitanTioApp.App"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:local="using:CapitanTioApp"
+ xmlns:localData="using:CapitanTioApp.Data">
+
+ <Application.Resources>
+ <ResourceDictionary>
+ <ResourceDictionary.MergedDictionaries>
+
+ <!--
+ Estilos que definen aspectos comunes de la apariencia de la aplicación.
+ Requeridos por las plantillas de elementos y proyecto de Visual Studio.
+ -->
+ <ResourceDictionary Source="Common/StandardStyles.xaml"/>
+ </ResourceDictionary.MergedDictionaries>
+
+ <!-- Recursos específicos de la aplicación -->
+
+ <x:String x:Key="AppName">CapitanTioApp</x:String>
+ </ResourceDictionary>
+ </Application.Resources>
+</Application>
+
View
42 CapitanTioApp/CapitanTioApp/bin/Debug/AppX/AppxManifest.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:build="http://schemas.microsoft.com/developer/appx/2012/build" IgnorableNamespaces="build">
+ <!--
+ ESTE ARCHIVO DE MANIFIESTO DEL PAQUETE SE GENERA MEDIANTE EL PROCESO DE COMPILACIÓN.
+
+ Los cambios realizados en el archivo se perderán al regenerarlo. Para corregir los errores de este archivo, edite el archivo de origen .appxmanifest.
+
+ Para obtener más información acerca de los archivos de manifiesto del paquete, vea http://go.microsoft.com/fwlink/?LinkID=241727
+ -->
+ <Identity Name="ed10c136-9873-49a3-a512-4cd669285510" Publisher="CN=pablo_000" Version="1.0.0.0" ProcessorArchitecture="neutral" />
+ <Properties>
+ <DisplayName>CapitanTioApp</DisplayName>
+ <PublisherDisplayName>pablo_000</PublisherDisplayName>
+ <Logo>Assets\StoreLogo.png</Logo>
+ </Properties>
+ <Prerequisites>
+ <OSMinVersion>6.2.1</OSMinVersion>
+ <OSMaxVersionTested>6.2.1</OSMaxVersionTested>
+ </Prerequisites>
+ <Resources>
+ <Resource Language="ES-ES" />
+ </Resources>
+ <Applications>
+ <Application Id="App" Executable="CapitanTioApp.exe" EntryPoint="CapitanTioApp.App">
+ <VisualElements DisplayName="CapitanTioApp" Logo="Assets\Logo.png" SmallLogo="Assets\SmallLogo.png" Description="CapitanTioApp" ForegroundText="light" BackgroundColor="#464646">
+ <DefaultTile ShowName="allLogos" />
+ <SplashScreen Image="Assets\SplashScreen.png" />
+ </VisualElements>
+ </Application>
+ </Applications>
+ <Capabilities>
+ <Capability Name="internetClient" />
+ </Capabilities>
+ <build:Metadata>
+ <build:Item Name="TargetFrameworkMoniker" Value=".NETCore,Version=v4.5" />
+ <build:Item Name="VisualStudio" Version="11.0" />
+ <build:Item Name="OperatingSystem" Version="6.2.9200.16384 (win8_rtm.120725-1247)" />
+ <build:Item Name="Microsoft.Build.AppxPackage.dll" Version="11.0.50727.1" />
+ <build:Item Name="Microsoft.Windows.UI.Xaml.Build.Tasks.dll" Version="11.0.50727.1" />
+ <build:Item Name="MakePri.exe" Version="6.2.9200.16384 (win8_rtm.120725-1247)" />
+ </build:Metadata>
+</Package>
View
BIN  CapitanTioApp/CapitanTioApp/bin/Debug/AppX/Assets/DarkGray.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  CapitanTioApp/CapitanTioApp/bin/Debug/AppX/Assets/LightGray.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  CapitanTioApp/CapitanTioApp/bin/Debug/AppX/Assets/Logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  CapitanTioApp/CapitanTioApp/bin/Debug/AppX/Assets/MediumGray.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  CapitanTioApp/CapitanTioApp/bin/Debug/AppX/Assets/SmallLogo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  CapitanTioApp/CapitanTioApp/bin/Debug/AppX/Assets/SplashScreen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  CapitanTioApp/CapitanTioApp/bin/Debug/AppX/Assets/StoreLogo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  CapitanTioApp/CapitanTioApp/bin/Debug/AppX/CapitanTioApp.exe
Binary file not shown
View
BIN  CapitanTioApp/CapitanTioApp/bin/Debug/AppX/CapitanTioApp.pdb
Binary file not shown
View
1,830 CapitanTioApp/CapitanTioApp/bin/Debug/AppX/Common/StandardStyles.xaml
1,830 additions, 0 deletions not shown
View
147 CapitanTioApp/CapitanTioApp/bin/Debug/AppX/GroupDetailPage.xaml
@@ -0,0 +1,147 @@
+<common:LayoutAwarePage
+ x:Name="pageRoot"
+ x:Class="CapitanTioApp.GroupDetailPage"
+ DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:local="using:CapitanTioApp"
+ xmlns:data="using:CapitanTioApp.Data"
+ xmlns:common="using:CapitanTioApp.Common"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ mc:Ignorable="d">
+
+ <Page.Resources>
+
+ <!-- Colección de elementos que muestra esta página -->
+ <CollectionViewSource
+ x:Name="itemsViewSource"
+ Source="{Binding Items}"
+ d:Source="{Binding AllGroups[0].Items, Source={d:DesignInstance Type=data:SampleDataSource, IsDesignTimeCreatable=True}}"/>
+ </Page.Resources>
+
+ <!--
+ Esta cuadrícula actúa como panel raíz de la página que define dos filas:
+ * La fila 0 contiene el botón Atrás y el título de página
+ * La fila 1 contiene el resto del diseño de página
+ -->
+ <Grid
+ Style="{StaticResource LayoutRootStyle}"
+ DataContext="{Binding Group}"
+ d:DataContext="{Binding AllGroups[0], Source={d:DesignInstance Type=data:SampleDataSource, IsDesignTimeCreatable=True}}">
+
+ <Grid.RowDefinitions>
+ <RowDefinition Height="140"/>
+ <RowDefinition Height="*"/>
+ </Grid.RowDefinitions>
+
+ <!-- Cuadrícula de desplazamiento horizontal usada en la mayoría de los estados de vista -->
+ <GridView x:ConnectionId='1'
+ x:Name="itemGridView"
+ AutomationProperties.AutomationId="ItemGridView"
+ AutomationProperties.Name="Items In Group"
+ TabIndex="1"
+ Grid.RowSpan="2"
+ Padding="120,126,120,50"
+ ItemsSource="{Binding Source={StaticResource itemsViewSource}}"
+ ItemTemplate="{StaticResource Standard500x130ItemTemplate}"
+ SelectionMode="None"
+ IsSwipeEnabled="false"
+ IsItemClickEnabled="True"
+ >
+
+ <GridView.Header>
+ <StackPanel Width="480" Margin="0,4,14,0">
+ <TextBlock Text="{Binding Subtitle}" Margin="0,0,18,20" Style="{StaticResource SubheaderTextStyle}" MaxHeight="60"/>
+ <Image Source="{Binding Image}" Height="400" Margin="0,0,18,20" Stretch="UniformToFill" AutomationProperties.Name="{Binding Title}"/>
+ <TextBlock Text="{Binding Description}" Margin="0,0,18,0" Style="{StaticResource BodyTextStyle}"/>
+ </StackPanel>
+ </GridView.Header>
+ <GridView.ItemContainerStyle>
+ <Style TargetType="FrameworkElement">
+ <Setter Property="Margin" Value="52,0,0,10"/>
+ </Style>
+ </GridView.ItemContainerStyle>
+ </GridView>
+
+ <!-- Lista de desplazamiento vertical usada solamente en Snapped -->
+ <ListView x:ConnectionId='2'
+ x:Name="itemListView"
+ AutomationProperties.AutomationId="ItemListView"
+ AutomationProperties.Name="Items In Group"
+ TabIndex="1"
+ Grid.Row="1"
+ Visibility="Collapsed"
+ Padding="10,0,0,60"
+ ItemsSource="{Binding Source={StaticResource itemsViewSource}}"
+ ItemTemplate="{StaticResource Standard80ItemTemplate}"
+ SelectionMode="None"
+ IsSwipeEnabled="false"
+ IsItemClickEnabled="True"
+ >
+
+ <ListView.Header>
+ <StackPanel>
+ <TextBlock Text="{Binding Subtitle}" Margin="10,0,18,20" Style="{StaticResource TitleTextStyle}" MaxHeight="60"/>
+ <Image Source="{Binding Image}" Margin="10,0,18,0" MaxHeight="160" Stretch="UniformToFill" AutomationProperties.Name="{Binding Title}"/>
+ <TextBlock Margin="10,20,18,30" Text="{Binding Description}" Style="{StaticResource BodyTextStyle}"/>
+ </StackPanel>
+ </ListView.Header>
+ </ListView>
+
+ <!-- Botón Atrás y título de página -->
+ <Grid>
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="Auto"/>
+ <ColumnDefinition Width="*"/>
+ </Grid.ColumnDefinitions>
+ <Button x:ConnectionId='3' x:Name="backButton" IsEnabled="{Binding Frame.CanGoBack, ElementName=pageRoot}" Style="{StaticResource BackButtonStyle}"/>
+ <TextBlock x:Name="pageTitle" Text="{Binding Title}" Style="{StaticResource PageHeaderTextStyle}" Grid.Column="1" IsHitTestVisible="false"/>
+ </Grid>
+
+ <VisualStateManager.VisualStateGroups>
+
+ <!-- Los estados visuales reflejan el estado de vista de la aplicación -->
+ <VisualStateGroup x:Name="ApplicationViewStates">
+ <VisualState x:Name="FullScreenLandscape"/>
+ <VisualState x:Name="Filled"/>
+
+ <!-- Toda la página respeta la convención de margen más estrecho de 100 píxeles para Portrait -->
+ <VisualState x:Name="FullScreenPortrait">
+ <Storyboard>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PortraitBackButtonStyle}"/>
+ </ObjectAnimationUsingKeyFrames>
+
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="itemGridView" Storyboard.TargetProperty="Padding">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="100,126,90,0"/>
+ </ObjectAnimationUsingKeyFrames>
+ </Storyboard>
+ </VisualState>
+
+ <!--
+ El botón Atrás y el título tienen estilos distintos en Snapped y la representación de lista se sustituye
+ por la cuadrícula mostrada en el resto de estados de vista
+ -->
+ <VisualState x:Name="Snapped">
+ <Storyboard>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedBackButtonStyle}"/>
+ </ObjectAnimationUsingKeyFrames>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="pageTitle" Storyboard.TargetProperty="Style">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedPageHeaderTextStyle}"/>
+ </ObjectAnimationUsingKeyFrames>
+
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="itemGridView" Storyboard.TargetProperty="Visibility">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
+ </ObjectAnimationUsingKeyFrames>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="itemListView" Storyboard.TargetProperty="Visibility">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
+ </ObjectAnimationUsingKeyFrames>
+ </Storyboard>
+ </VisualState>
+ </VisualStateGroup>
+ </VisualStateManager.VisualStateGroups>
+ </Grid>
+</common:LayoutAwarePage>
+
View
176 CapitanTioApp/CapitanTioApp/bin/Debug/AppX/GroupedItemsPage.xaml
@@ -0,0 +1,176 @@
+<common:LayoutAwarePage
+ x:Name="pageRoot"
+ x:Class="CapitanTioApp.GroupedItemsPage"
+ DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:local="using:CapitanTioApp"
+ xmlns:data="using:CapitanTioApp.Data"
+ xmlns:common="using:CapitanTioApp.Common"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ mc:Ignorable="d">
+
+ <Page.Resources>
+
+ <!--
+ Colección de elementos agrupados que muestra esta página, enlazados a un subconjunto
+ de la lista completa de elementos porque los elementos que están en grupos no se pueden virtualizar
+ -->
+ <CollectionViewSource
+ x:Name="groupedItemsViewSource"
+ Source="{Binding Groups}"
+ IsSourceGrouped="true"
+ ItemsPath="TopItems"
+ d:Source="{Binding AllGroups, Source={d:DesignInstance Type=data:SampleDataSource, IsDesignTimeCreatable=True}}"/>
+ </Page.Resources>
+
+ <!--
+ Esta cuadrícula actúa como panel raíz de la página que define dos filas:
+ * La fila 0 contiene el botón Atrás y el título de página
+ * La fila 1 contiene el resto del diseño de página
+ -->
+ <Grid Style="{StaticResource LayoutRootStyle}">
+ <Grid.RowDefinitions>
+ <RowDefinition Height="140"/>
+ <RowDefinition Height="*"/>
+ </Grid.RowDefinitions>
+
+ <!-- Cuadrícula de desplazamiento horizontal usada en la mayoría de los estados de vista -->
+ <GridView x:ConnectionId='1'
+ x:Name="itemGridView"
+ AutomationProperties.AutomationId="ItemGridView"
+ AutomationProperties.Name="Grouped Items"
+ Grid.RowSpan="2"
+ Padding="116,137,40,46"
+ ItemsSource="{Binding Source={StaticResource groupedItemsViewSource}}"
+ ItemTemplate="{StaticResource Standard250x250ItemTemplate}"
+ SelectionMode="None"
+ IsSwipeEnabled="false"
+ IsItemClickEnabled="True"
+ >
+
+ <GridView.ItemsPanel>
+ <ItemsPanelTemplate>
+ <VirtualizingStackPanel Orientation="Horizontal"/>
+ </ItemsPanelTemplate>
+ </GridView.ItemsPanel>
+ <GridView.GroupStyle>
+ <GroupStyle>
+ <GroupStyle.HeaderTemplate>
+ <DataTemplate>
+ <Grid Margin="1,0,0,6">
+ <Button x:ConnectionId='5'
+ AutomationProperties.Name="Group Title"
+
+ Style="{StaticResource TextPrimaryButtonStyle}" >
+ <StackPanel Orientation="Horizontal">
+ <TextBlock Text="{Binding Title}" Margin="3,-7,10,10" Style="{StaticResource GroupHeaderTextStyle}" />
+ <TextBlock Text="{StaticResource ChevronGlyph}" FontFamily="Segoe UI Symbol" Margin="0,-7,0,10" Style="{StaticResource GroupHeaderTextStyle}"/>
+ </StackPanel>
+ </Button>
+ </Grid>
+ </DataTemplate>
+ </GroupStyle.HeaderTemplate>
+ <GroupStyle.Panel>
+ <ItemsPanelTemplate>
+ <VariableSizedWrapGrid Orientation="Vertical" Margin="0,0,80,0"/>
+ </ItemsPanelTemplate>
+ </GroupStyle.Panel>
+ </GroupStyle>
+ </GridView.GroupStyle>
+ </GridView>
+
+ <!-- Lista de desplazamiento vertical usada solamente en Snapped -->
+ <ListView x:ConnectionId='2'
+ x:Name="itemListView"
+ AutomationProperties.AutomationId="ItemListView"
+ AutomationProperties.Name="Grouped Items"
+ Grid.Row="1"
+ Visibility="Collapsed"
+ Margin="0,-10,0,0"
+ Padding="10,0,0,60"
+ ItemsSource="{Binding Source={StaticResource groupedItemsViewSource}}"
+ ItemTemplate="{StaticResource Standard80ItemTemplate}"
+ SelectionMode="None"
+ IsSwipeEnabled="false"
+ IsItemClickEnabled="True"
+ >
+
+ <ListView.GroupStyle>
+ <GroupStyle>
+ <GroupStyle.HeaderTemplate>
+ <DataTemplate>
+ <Grid Margin="7,7,0,0">
+ <Button x:ConnectionId='4'
+ AutomationProperties.Name="Group Title"
+
+ Style="{StaticResource TextPrimaryButtonStyle}">
+ <StackPanel Orientation="Horizontal">
+ <TextBlock Text="{Binding Title}" Margin="3,-7,10,10" Style="{StaticResource GroupHeaderTextStyle}" />
+ <TextBlock Text="{StaticResource ChevronGlyph}" FontFamily="Segoe UI Symbol" Margin="0,-7,0,10" Style="{StaticResource GroupHeaderTextStyle}"/>
+ </StackPanel>
+ </Button>
+ </Grid>
+ </DataTemplate>
+ </GroupStyle.HeaderTemplate>
+ </GroupStyle>
+ </ListView.GroupStyle>
+ </ListView>
+
+ <!-- Botón Atrás y título de página -->
+ <Grid>
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="Auto"/>
+ <ColumnDefinition Width="*"/>
+ </Grid.ColumnDefinitions>
+ <Button x:ConnectionId='3' x:Name="backButton" IsEnabled="{Binding Frame.CanGoBack, ElementName=pageRoot}" Style="{StaticResource BackButtonStyle}"/>
+ <TextBlock x:Name="pageTitle" Text="{StaticResource AppName}" Grid.Column="1" IsHitTestVisible="false" Style="{StaticResource PageHeaderTextStyle}"/>
+ </Grid>
+
+ <VisualStateManager.VisualStateGroups>
+
+ <!-- Los estados visuales reflejan el estado de vista de la aplicación -->
+ <VisualStateGroup x:Name="ApplicationViewStates">
+ <VisualState x:Name="FullScreenLandscape"/>
+ <VisualState x:Name="Filled"/>
+
+ <!-- Toda la página respeta la convención de margen más estrecho de 100 píxeles para Portrait -->
+ <VisualState x:Name="FullScreenPortrait">
+ <Storyboard>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PortraitBackButtonStyle}"/>
+ </ObjectAnimationUsingKeyFrames>
+
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="itemGridView" Storyboard.TargetProperty="Padding">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="96,137,10,56"/>
+ </ObjectAnimationUsingKeyFrames>
+ </Storyboard>
+ </VisualState>
+
+ <!--
+ El botón Atrás y el título tienen estilos distintos en Snapped y la representación de lista se sustituye
+ por la cuadrícula mostrada en el resto de estados de vista
+ -->
+ <VisualState x:Name="Snapped">
+ <Storyboard>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedBackButtonStyle}"/>
+ </ObjectAnimationUsingKeyFrames>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="pageTitle" Storyboard.TargetProperty="Style">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedPageHeaderTextStyle}"/>
+ </ObjectAnimationUsingKeyFrames>
+
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="itemListView" Storyboard.TargetProperty="Visibility">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
+ </ObjectAnimationUsingKeyFrames>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="itemGridView" Storyboard.TargetProperty="Visibility">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
+ </ObjectAnimationUsingKeyFrames>
+ </Storyboard>
+ </VisualState>
+ </VisualStateGroup>
+ </VisualStateManager.VisualStateGroups>
+ </Grid>
+</common:LayoutAwarePage>
+
View
183 CapitanTioApp/CapitanTioApp/bin/Debug/AppX/ItemDetailPage.xaml
@@ -0,0 +1,183 @@
+<common:LayoutAwarePage
+ x:Name="pageRoot"
+ x:Class="CapitanTioApp.ItemDetailPage"
+ DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:local="using:CapitanTioApp"
+ xmlns:data="using:CapitanTioApp.Data"
+ xmlns:common="using:CapitanTioApp.Common"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ mc:Ignorable="d">
+
+ <Page.Resources>
+
+ <!-- Colección de elementos que muestra esta página -->
+ <CollectionViewSource
+ x:Name="itemsViewSource"
+ Source="{Binding Items}"
+ d:Source="{Binding AllGroups[0].Items, Source={d:DesignInstance Type=data:SampleDataSource, IsDesignTimeCreatable=True}}"/>
+ </Page.Resources>
+
+ <!--
+ Esta cuadrícula actúa como panel raíz de la página que define dos filas:
+ * La fila 0 contiene el botón Atrás y el título de página
+ * La fila 1 contiene el resto del diseño de página
+ -->
+ <Grid
+ Style="{StaticResource LayoutRootStyle}"
+ DataContext="{Binding Group}"
+ d:DataContext="{Binding AllGroups[0], Source={d:DesignInstance Type=data:SampleDataSource, IsDesignTimeCreatable=True}}">
+
+ <Grid.RowDefinitions>
+ <RowDefinition Height="140"/>
+ <RowDefinition Height="*"/>
+ </Grid.RowDefinitions>
+
+ <!--
+ El resto de la página es de tipo FlipView grande y muestra los detalles de
+ un elemento cada vez, lo que permite al usuario pasar por todos los elementos del grupo
+ seleccionado.
+ -->
+ <FlipView
+ x:Name="flipView"
+ AutomationProperties.AutomationId="ItemsFlipView"
+ AutomationProperties.Name="Item Details"
+ TabIndex="1"
+ Grid.RowSpan="2"
+ ItemsSource="{Binding Source={StaticResource itemsViewSource}}">
+
+ <FlipView.ItemContainerStyle>
+ <Style TargetType="FlipViewItem">
+ <Setter Property="Margin" Value="0,137,0,0"/>
+ </Style>
+ </FlipView.ItemContainerStyle>
+
+ <FlipView.ItemTemplate>
+ <DataTemplate>
+
+ <!--
+ Objeto UserControl elegido como elemento de plantilla porque admite la administración de estados de vista.
+ Los eventos de carga o descarga se suscriben explícitamente a las actualizaciones de estados de vista de la página.
+ -->
+ <UserControl x:ConnectionId='2' >
+ <ScrollViewer x:Name="scrollViewer" Style="{StaticResource HorizontalScrollViewerStyle}" Grid.Row="1">
+
+ <!-- Se permite que el contenido ocupe tantas columnas como sea necesario -->
+ <common:RichTextColumns x:Name="richTextColumns" Margin="117,0,117,47">
+ <RichTextBlock x:Name="richTextBlock" Width="560" Style="{StaticResource ItemRichTextStyle}" IsTextSelectionEnabled="False">
+ <Paragraph>
+ <Run FontSize="26.667" FontWeight="Light" Text="{Binding Title}"/>
+ <LineBreak/>
+ <LineBreak/>
+ <Run FontWeight="Normal" Text="{Binding Subtitle}"/>
+ </Paragraph>
+ <Paragraph LineStackingStrategy="MaxHeight">
+ <InlineUIContainer>
+ <Image x:Name="image" MaxHeight="480" Margin="0,20,0,10" Stretch="Uniform" Source="{Binding Image}" AutomationProperties.Name="{Binding Title}"/>
+ </InlineUIContainer>
+ </Paragraph>
+ <Paragraph>
+ <Run FontWeight="SemiLight" Text="{Binding Content}"/>
+ </Paragraph>
+ </RichTextBlock>
+
+ <!-- Se crean columnas adicionales de esta plantilla -->
+ <common:RichTextColumns.ColumnTemplate>
+ <DataTemplate>
+ <RichTextBlockOverflow Width="560" Margin="80,0,0,0">
+ <RichTextBlockOverflow.RenderTransform>
+ <TranslateTransform X="-1" Y="4"/>
+ </RichTextBlockOverflow.RenderTransform>
+ </RichTextBlockOverflow>
+ </DataTemplate>
+ </common:RichTextColumns.ColumnTemplate>
+ </common:RichTextColumns>
+
+ <VisualStateManager.VisualStateGroups>
+
+ <!-- Los estados visuales reflejan el estado de vista de la aplicación dentro de FlipView -->
+ <VisualStateGroup x:Name="ApplicationViewStates">
+ <VisualState x:Name="FullScreenLandscape"/>
+ <VisualState x:Name="Filled"/>
+
+ <!-- Respetar la convención de margen más estrecho de 100 píxeles para Portrait -->
+ <VisualState x:Name="FullScreenPortrait">
+ <Storyboard>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="richTextColumns" Storyboard.TargetProperty="Margin">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="97,0,87,57"/>
+ </ObjectAnimationUsingKeyFrames>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="image" Storyboard.TargetProperty="MaxHeight">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="400"/>
+ </ObjectAnimationUsingKeyFrames>
+ </Storyboard>
+ </VisualState>
+
+ <!-- En Snapped, se vuelve a aplicar formato al contenido y se desplaza verticalmente -->
+ <VisualState x:Name="Snapped">
+ <Storyboard>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="richTextColumns" Storyboard.TargetProperty="Margin">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="17,0,17,57"/>
+ </ObjectAnimationUsingKeyFrames>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="scrollViewer" Storyboard.TargetProperty="Style">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource VerticalScrollViewerStyle}"/>
+ </ObjectAnimationUsingKeyFrames>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="richTextBlock" Storyboard.TargetProperty="Width">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="280"/>
+ </ObjectAnimationUsingKeyFrames>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="image" Storyboard.TargetProperty="MaxHeight">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="160"/>
+ </ObjectAnimationUsingKeyFrames>
+ </Storyboard>
+ </VisualState>
+ </VisualStateGroup>
+ </VisualStateManager.VisualStateGroups>
+ </ScrollViewer>
+ </UserControl>
+ </DataTemplate>
+ </FlipView.ItemTemplate>
+ </FlipView>
+
+ <!-- Botón Atrás y título de página -->
+ <Grid>
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="Auto"/>
+ <ColumnDefinition Width="*"/>
+ </Grid.ColumnDefinitions>
+ <Button x:ConnectionId='1' x:Name="backButton" IsEnabled="{Binding Frame.CanGoBack, ElementName=pageRoot}" Style="{StaticResource BackButtonStyle}"/>
+ <TextBlock x:Name="pageTitle" Text="{Binding Title}" Style="{StaticResource PageHeaderTextStyle}" Grid.Column="1" IsHitTestVisible="false"/>
+ </Grid>
+
+ <VisualStateManager.VisualStateGroups>
+
+ <!-- Los estados visuales reflejan el estado de vista de la aplicación -->
+ <VisualStateGroup x:Name="ApplicationViewStates">
+ <VisualState x:Name="FullScreenLandscape"/>
+ <VisualState x:Name="Filled"/>
+
+ <!-- El botón Atrás respeta la convención de margen más estrecho de 100 píxeles para Portrait -->
+ <VisualState x:Name="FullScreenPortrait">
+ <Storyboard>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PortraitBackButtonStyle}"/>
+ </ObjectAnimationUsingKeyFrames>
+ </Storyboard>
+ </VisualState>
+
+ <!-- El botón Atrás y el título tienen estilos distintos en Snapped -->
+ <VisualState x:Name="Snapped">
+ <Storyboard>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedBackButtonStyle}"/>
+ </ObjectAnimationUsingKeyFrames>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="pageTitle" Storyboard.TargetProperty="Style">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedPageHeaderTextStyle}"/>
+ </ObjectAnimationUsingKeyFrames>
+ </Storyboard>
+ </VisualState>
+ </VisualStateGroup>
+ </VisualStateManager.VisualStateGroups>
+ </Grid>
+</common:LayoutAwarePage>
+
View
BIN  .../bin/Debug/AppX/microsoft.system.package.metadata/S-1-5-21-1083906950-3478340512-2245345066-1001.pckgdep
Binary file not shown
View
BIN  CapitanTioApp/CapitanTioApp/bin/Debug/AppX/resources.pri
Binary file not shown
View
90 CapitanTioApp/CapitanTioApp/bin/Debug/AppX/vs.appxrecipe
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Machine>PABLO-PC</Machine>
+ <WindowsUser>pablo_000</WindowsUser>
+ <SolutionConfiguration>Debug|AnyCPU</SolutionConfiguration>
+ <PackageArchitecture>neutral</PackageArchitecture>
+ <RegisteredManifestChecksum>A691E967FADF4692D4610EA293E9964BC045F0A300F8432FC429020147F110A7</RegisteredManifestChecksum>
+ <RegisteredPackageMoniker>ed10c136-9873-49a3-a512-4cd669285510_1.0.0.0_neutral__j23n9p23ar4sj</RegisteredPackageMoniker>
+ <RegisteredUserModeAppID>ed10c136-9873-49a3-a512-4cd669285510_j23n9p23ar4sj!App</RegisteredUserModeAppID>
+ <RegisteredPackageID>ed10c136-9873-49a3-a512-4cd669285510</RegisteredPackageID>
+ <RegisteredPackagePublisher>CN=pablo_000</RegisteredPackagePublisher>
+ <RegisteredVersion>1.0.0.0</RegisteredVersion>
+ </PropertyGroup>
+ <ItemGroup>
+ <AppXManifest Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\bin\Debug\AppxManifest.xml">
+ <PackagePath>AppxManifest.xml</PackagePath>
+ <ReRegisterAppIfChanged>true</ReRegisterAppIfChanged>
+ <Modified>2012-09-08T08:54:56.906</Modified>
+ </AppXManifest>
+ </ItemGroup>
+ <ItemGroup>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\bin\Debug\CapitanTioApp.exe">
+ <PackagePath>CapitanTioApp.exe</PackagePath>
+ <Modified>2012-09-08T08:54:54.729</Modified>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\bin\Debug\CapitanTioApp.pdb">
+ <PackagePath>CapitanTioApp.pdb</PackagePath>
+ <Modified>2012-09-08T08:54:54.583</Modified>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\Assets\Logo.png">
+ <PackagePath>Assets\Logo.png</PackagePath>
+ <ReRegisterAppIfChanged>true</ReRegisterAppIfChanged>
+ <Modified>2012-03-18T15:08:56.000</Modified>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\Assets\SmallLogo.png">
+ <PackagePath>Assets\SmallLogo.png</PackagePath>
+ <ReRegisterAppIfChanged>true</ReRegisterAppIfChanged>
+ <Modified>2012-03-18T15:08:56.000</Modified>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\Assets\SplashScreen.png">
+ <PackagePath>Assets\SplashScreen.png</PackagePath>
+ <ReRegisterAppIfChanged>true</ReRegisterAppIfChanged>
+ <Modified>2012-03-18T15:08:56.000</Modified>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\Assets\StoreLogo.png">
+ <PackagePath>Assets\StoreLogo.png</PackagePath>
+ <ReRegisterAppIfChanged>true</ReRegisterAppIfChanged>
+ <Modified>2012-03-18T15:08:56.000</Modified>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\Assets\LightGray.png">
+ <PackagePath>Assets\LightGray.png</PackagePath>
+ <Modified>2012-01-31T23:37:46.000</Modified>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\Assets\MediumGray.png">
+ <PackagePath>Assets\MediumGray.png</PackagePath>
+ <Modified>2012-01-31T23:37:46.000</Modified>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\Assets\DarkGray.png">
+ <PackagePath>Assets\DarkGray.png</PackagePath>
+ <Modified>2012-01-31T23:37:46.000</Modified>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\bin\Debug\App.xaml">
+ <PackagePath>App.xaml</PackagePath>
+ <Modified>2012-09-08T08:54:38.572</Modified>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\bin\Debug\Common\StandardStyles.xaml">
+ <PackagePath>Common\StandardStyles.xaml</PackagePath>
+ <Modified>2012-07-26T18:24:42.000</Modified>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\bin\Debug\GroupedItemsPage.xaml">
+ <PackagePath>GroupedItemsPage.xaml</PackagePath>
+ <Modified>2012-09-08T08:54:38.649</Modified>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\bin\Debug\GroupDetailPage.xaml">
+ <PackagePath>GroupDetailPage.xaml</PackagePath>
+ <Modified>2012-09-08T08:54:38.710</Modified>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\bin\Debug\ItemDetailPage.xaml">
+ <PackagePath>ItemDetailPage.xaml</PackagePath>
+ <Modified>2012-09-08T08:54:38.772</Modified>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\bin\Debug\resources.pri">
+ <PackagePath>resources.pri</PackagePath>
+ <Modified>2012-09-08T08:54:55.607</Modified>
+ </AppxPackagedFile>
+ </ItemGroup>
+ <ItemGroup>
+ </ItemGroup>
+</Project>
View
42 CapitanTioApp/CapitanTioApp/bin/Debug/AppxManifest.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:build="http://schemas.microsoft.com/developer/appx/2012/build" IgnorableNamespaces="build">
+ <!--
+ ESTE ARCHIVO DE MANIFIESTO DEL PAQUETE SE GENERA MEDIANTE EL PROCESO DE COMPILACIÓN.
+
+ Los cambios realizados en el archivo se perderán al regenerarlo. Para corregir los errores de este archivo, edite el archivo de origen .appxmanifest.
+
+ Para obtener más información acerca de los archivos de manifiesto del paquete, vea http://go.microsoft.com/fwlink/?LinkID=241727
+ -->
+ <Identity Name="ed10c136-9873-49a3-a512-4cd669285510" Publisher="CN=pablo_000" Version="1.0.0.0" ProcessorArchitecture="neutral" />
+ <Properties>
+ <DisplayName>CapitanTioApp</DisplayName>
+ <PublisherDisplayName>pablo_000</PublisherDisplayName>
+ <Logo>Assets\StoreLogo.png</Logo>
+ </Properties>
+ <Prerequisites>
+ <OSMinVersion>6.2.1</OSMinVersion>
+ <OSMaxVersionTested>6.2.1</OSMaxVersionTested>
+ </Prerequisites>
+ <Resources>
+ <Resource Language="ES-ES" />
+ </Resources>
+ <Applications>
+ <Application Id="App" Executable="CapitanTioApp.exe" EntryPoint="CapitanTioApp.App">
+ <VisualElements DisplayName="CapitanTioApp" Logo="Assets\Logo.png" SmallLogo="Assets\SmallLogo.png" Description="CapitanTioApp" ForegroundText="light" BackgroundColor="#464646">
+ <DefaultTile ShowName="allLogos" />
+ <SplashScreen Image="Assets\SplashScreen.png" />
+ </VisualElements>
+ </Application>
+ </Applications>
+ <Capabilities>
+ <Capability Name="internetClient" />
+ </Capabilities>
+ <build:Metadata>
+ <build:Item Name="TargetFrameworkMoniker" Value=".NETCore,Version=v4.5" />
+ <build:Item Name="VisualStudio" Version="11.0" />
+ <build:Item Name="OperatingSystem" Version="6.2.9200.16384 (win8_rtm.120725-1247)" />
+ <build:Item Name="Microsoft.Build.AppxPackage.dll" Version="11.0.50727.1" />
+ <build:Item Name="Microsoft.Windows.UI.Xaml.Build.Tasks.dll" Version="11.0.50727.1" />
+ <build:Item Name="MakePri.exe" Version="6.2.9200.16384 (win8_rtm.120725-1247)" />
+ </build:Metadata>
+</Package>
View
68 CapitanTioApp/CapitanTioApp/bin/Debug/CapitanTioApp.build.appxrecipe
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Machine>PABLO-PC</Machine>
+ <WindowsUser>pablo_000</WindowsUser>
+ <SolutionConfiguration>Debug|AnyCPU</SolutionConfiguration>
+ <PackageArchitecture>neutral</PackageArchitecture>
+ </PropertyGroup>
+ <ItemGroup>
+ <AppXManifest Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\bin\Debug\AppxManifest.xml">
+ <PackagePath>AppxManifest.xml</PackagePath>
+ <ReRegisterAppIfChanged>true</ReRegisterAppIfChanged>
+ </AppXManifest>
+ </ItemGroup>
+ <ItemGroup>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\bin\Debug\CapitanTioApp.exe">
+ <PackagePath>CapitanTioApp.exe</PackagePath>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\bin\Debug\CapitanTioApp.pdb">
+ <PackagePath>CapitanTioApp.pdb</PackagePath>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\Assets\Logo.png">
+ <PackagePath>Assets\Logo.png</PackagePath>
+ <ReRegisterAppIfChanged>true</ReRegisterAppIfChanged>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\Assets\SmallLogo.png">
+ <PackagePath>Assets\SmallLogo.png</PackagePath>
+ <ReRegisterAppIfChanged>true</ReRegisterAppIfChanged>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\Assets\SplashScreen.png">
+ <PackagePath>Assets\SplashScreen.png</PackagePath>
+ <ReRegisterAppIfChanged>true</ReRegisterAppIfChanged>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\Assets\StoreLogo.png">
+ <PackagePath>Assets\StoreLogo.png</PackagePath>
+ <ReRegisterAppIfChanged>true</ReRegisterAppIfChanged>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\Assets\LightGray.png">
+ <PackagePath>Assets\LightGray.png</PackagePath>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\Assets\MediumGray.png">
+ <PackagePath>Assets\MediumGray.png</PackagePath>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\Assets\DarkGray.png">
+ <PackagePath>Assets\DarkGray.png</PackagePath>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\bin\Debug\App.xaml">
+ <PackagePath>App.xaml</PackagePath>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\bin\Debug\Common\StandardStyles.xaml">
+ <PackagePath>Common\StandardStyles.xaml</PackagePath>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\bin\Debug\GroupedItemsPage.xaml">
+ <PackagePath>GroupedItemsPage.xaml</PackagePath>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\bin\Debug\GroupDetailPage.xaml">
+ <PackagePath>GroupDetailPage.xaml</PackagePath>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\bin\Debug\ItemDetailPage.xaml">
+ <PackagePath>ItemDetailPage.xaml</PackagePath>
+ </AppxPackagedFile>
+ <AppxPackagedFile Include="C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\bin\Debug\resources.pri">
+ <PackagePath>resources.pri</PackagePath>
+ </AppxPackagedFile>
+ </ItemGroup>
+ <ItemGroup>
+ </ItemGroup>
+</Project>
View
BIN  CapitanTioApp/CapitanTioApp/bin/Debug/CapitanTioApp.exe
Binary file not shown
View
BIN  CapitanTioApp/CapitanTioApp/bin/Debug/CapitanTioApp.pdb
Binary file not shown
View
1,830 CapitanTioApp/CapitanTioApp/bin/Debug/Common/StandardStyles.xaml
1,830 additions, 0 deletions not shown
View
147 CapitanTioApp/CapitanTioApp/bin/Debug/GroupDetailPage.xaml
@@ -0,0 +1,147 @@
+<common:LayoutAwarePage
+ x:Name="pageRoot"
+ x:Class="CapitanTioApp.GroupDetailPage"
+ DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:local="using:CapitanTioApp"
+ xmlns:data="using:CapitanTioApp.Data"
+ xmlns:common="using:CapitanTioApp.Common"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ mc:Ignorable="d">
+
+ <Page.Resources>
+
+ <!-- Colección de elementos que muestra esta página -->
+ <CollectionViewSource
+ x:Name="itemsViewSource"
+ Source="{Binding Items}"
+ d:Source="{Binding AllGroups[0].Items, Source={d:DesignInstance Type=data:SampleDataSource, IsDesignTimeCreatable=True}}"/>
+ </Page.Resources>
+
+ <!--
+ Esta cuadrícula actúa como panel raíz de la página que define dos filas:
+ * La fila 0 contiene el botón Atrás y el título de página
+ * La fila 1 contiene el resto del diseño de página
+ -->
+ <Grid
+ Style="{StaticResource LayoutRootStyle}"
+ DataContext="{Binding Group}"
+ d:DataContext="{Binding AllGroups[0], Source={d:DesignInstance Type=data:SampleDataSource, IsDesignTimeCreatable=True}}">
+
+ <Grid.RowDefinitions>
+ <RowDefinition Height="140"/>
+ <RowDefinition Height="*"/>
+ </Grid.RowDefinitions>
+
+ <!-- Cuadrícula de desplazamiento horizontal usada en la mayoría de los estados de vista -->
+ <GridView x:ConnectionId='1'
+ x:Name="itemGridView"
+ AutomationProperties.AutomationId="ItemGridView"
+ AutomationProperties.Name="Items In Group"
+ TabIndex="1"
+ Grid.RowSpan="2"
+ Padding="120,126,120,50"
+ ItemsSource="{Binding Source={StaticResource itemsViewSource}}"
+ ItemTemplate="{StaticResource Standard500x130ItemTemplate}"
+ SelectionMode="None"
+ IsSwipeEnabled="false"
+ IsItemClickEnabled="True"
+ >
+
+ <GridView.Header>
+ <StackPanel Width="480" Margin="0,4,14,0">
+ <TextBlock Text="{Binding Subtitle}" Margin="0,0,18,20" Style="{StaticResource SubheaderTextStyle}" MaxHeight="60"/>
+ <Image Source="{Binding Image}" Height="400" Margin="0,0,18,20" Stretch="UniformToFill" AutomationProperties.Name="{Binding Title}"/>
+ <TextBlock Text="{Binding Description}" Margin="0,0,18,0" Style="{StaticResource BodyTextStyle}"/>
+ </StackPanel>
+ </GridView.Header>
+ <GridView.ItemContainerStyle>
+ <Style TargetType="FrameworkElement">
+ <Setter Property="Margin" Value="52,0,0,10"/>
+ </Style>
+ </GridView.ItemContainerStyle>
+ </GridView>
+
+ <!-- Lista de desplazamiento vertical usada solamente en Snapped -->
+ <ListView x:ConnectionId='2'
+ x:Name="itemListView"
+ AutomationProperties.AutomationId="ItemListView"
+ AutomationProperties.Name="Items In Group"
+ TabIndex="1"
+ Grid.Row="1"
+ Visibility="Collapsed"
+ Padding="10,0,0,60"
+ ItemsSource="{Binding Source={StaticResource itemsViewSource}}"
+ ItemTemplate="{StaticResource Standard80ItemTemplate}"
+ SelectionMode="None"
+ IsSwipeEnabled="false"
+ IsItemClickEnabled="True"
+ >
+
+ <ListView.Header>
+ <StackPanel>
+ <TextBlock Text="{Binding Subtitle}" Margin="10,0,18,20" Style="{StaticResource TitleTextStyle}" MaxHeight="60"/>
+ <Image Source="{Binding Image}" Margin="10,0,18,0" MaxHeight="160" Stretch="UniformToFill" AutomationProperties.Name="{Binding Title}"/>
+ <TextBlock Margin="10,20,18,30" Text="{Binding Description}" Style="{StaticResource BodyTextStyle}"/>
+ </StackPanel>
+ </ListView.Header>
+ </ListView>
+
+ <!-- Botón Atrás y título de página -->
+ <Grid>
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="Auto"/>
+ <ColumnDefinition Width="*"/>
+ </Grid.ColumnDefinitions>
+ <Button x:ConnectionId='3' x:Name="backButton" IsEnabled="{Binding Frame.CanGoBack, ElementName=pageRoot}" Style="{StaticResource BackButtonStyle}"/>
+ <TextBlock x:Name="pageTitle" Text="{Binding Title}" Style="{StaticResource PageHeaderTextStyle}" Grid.Column="1" IsHitTestVisible="false"/>
+ </Grid>
+
+ <VisualStateManager.VisualStateGroups>
+
+ <!-- Los estados visuales reflejan el estado de vista de la aplicación -->
+ <VisualStateGroup x:Name="ApplicationViewStates">
+ <VisualState x:Name="FullScreenLandscape"/>
+ <VisualState x:Name="Filled"/>
+
+ <!-- Toda la página respeta la convención de margen más estrecho de 100 píxeles para Portrait -->
+ <VisualState x:Name="FullScreenPortrait">
+ <Storyboard>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PortraitBackButtonStyle}"/>
+ </ObjectAnimationUsingKeyFrames>
+
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="itemGridView" Storyboard.TargetProperty="Padding">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="100,126,90,0"/>
+ </ObjectAnimationUsingKeyFrames>
+ </Storyboard>
+ </VisualState>
+
+ <!--
+ El botón Atrás y el título tienen estilos distintos en Snapped y la representación de lista se sustituye
+ por la cuadrícula mostrada en el resto de estados de vista
+ -->
+ <VisualState x:Name="Snapped">
+ <Storyboard>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedBackButtonStyle}"/>
+ </ObjectAnimationUsingKeyFrames>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="pageTitle" Storyboard.TargetProperty="Style">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedPageHeaderTextStyle}"/>
+ </ObjectAnimationUsingKeyFrames>
+
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="itemGridView" Storyboard.TargetProperty="Visibility">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
+ </ObjectAnimationUsingKeyFrames>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="itemListView" Storyboard.TargetProperty="Visibility">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
+ </ObjectAnimationUsingKeyFrames>
+ </Storyboard>
+ </VisualState>
+ </VisualStateGroup>
+ </VisualStateManager.VisualStateGroups>
+ </Grid>
+</common:LayoutAwarePage>
+
View
176 CapitanTioApp/CapitanTioApp/bin/Debug/GroupedItemsPage.xaml
@@ -0,0 +1,176 @@
+<common:LayoutAwarePage
+ x:Name="pageRoot"
+ x:Class="CapitanTioApp.GroupedItemsPage"
+ DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:local="using:CapitanTioApp"
+ xmlns:data="using:CapitanTioApp.Data"
+ xmlns:common="using:CapitanTioApp.Common"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ mc:Ignorable="d">
+
+ <Page.Resources>
+
+ <!--
+ Colección de elementos agrupados que muestra esta página, enlazados a un subconjunto
+ de la lista completa de elementos porque los elementos que están en grupos no se pueden virtualizar
+ -->
+ <CollectionViewSource
+ x:Name="groupedItemsViewSource"
+ Source="{Binding Groups}"
+ IsSourceGrouped="true"
+ ItemsPath="TopItems"
+ d:Source="{Binding AllGroups, Source={d:DesignInstance Type=data:SampleDataSource, IsDesignTimeCreatable=True}}"/>
+ </Page.Resources>
+
+ <!--
+ Esta cuadrícula actúa como panel raíz de la página que define dos filas:
+ * La fila 0 contiene el botón Atrás y el título de página
+ * La fila 1 contiene el resto del diseño de página
+ -->
+ <Grid Style="{StaticResource LayoutRootStyle}">
+ <Grid.RowDefinitions>
+ <RowDefinition Height="140"/>
+ <RowDefinition Height="*"/>
+ </Grid.RowDefinitions>
+
+ <!-- Cuadrícula de desplazamiento horizontal usada en la mayoría de los estados de vista -->
+ <GridView x:ConnectionId='1'
+ x:Name="itemGridView"
+ AutomationProperties.AutomationId="ItemGridView"
+ AutomationProperties.Name="Grouped Items"
+ Grid.RowSpan="2"
+ Padding="116,137,40,46"
+ ItemsSource="{Binding Source={StaticResource groupedItemsViewSource}}"
+ ItemTemplate="{StaticResource Standard250x250ItemTemplate}"
+ SelectionMode="None"
+ IsSwipeEnabled="false"
+ IsItemClickEnabled="True"
+ >
+
+ <GridView.ItemsPanel>
+ <ItemsPanelTemplate>
+ <VirtualizingStackPanel Orientation="Horizontal"/>
+ </ItemsPanelTemplate>
+ </GridView.ItemsPanel>
+ <GridView.GroupStyle>
+ <GroupStyle>
+ <GroupStyle.HeaderTemplate>
+ <DataTemplate>
+ <Grid Margin="1,0,0,6">
+ <Button x:ConnectionId='5'
+ AutomationProperties.Name="Group Title"
+
+ Style="{StaticResource TextPrimaryButtonStyle}" >
+ <StackPanel Orientation="Horizontal">
+ <TextBlock Text="{Binding Title}" Margin="3,-7,10,10" Style="{StaticResource GroupHeaderTextStyle}" />
+ <TextBlock Text="{StaticResource ChevronGlyph}" FontFamily="Segoe UI Symbol" Margin="0,-7,0,10" Style="{StaticResource GroupHeaderTextStyle}"/>
+ </StackPanel>
+ </Button>
+ </Grid>
+ </DataTemplate>
+ </GroupStyle.HeaderTemplate>
+ <GroupStyle.Panel>
+ <ItemsPanelTemplate>
+ <VariableSizedWrapGrid Orientation="Vertical" Margin="0,0,80,0"/>
+ </ItemsPanelTemplate>
+ </GroupStyle.Panel>
+ </GroupStyle>
+ </GridView.GroupStyle>
+ </GridView>
+
+ <!-- Lista de desplazamiento vertical usada solamente en Snapped -->
+ <ListView x:ConnectionId='2'
+ x:Name="itemListView"
+ AutomationProperties.AutomationId="ItemListView"
+ AutomationProperties.Name="Grouped Items"
+ Grid.Row="1"
+ Visibility="Collapsed"
+ Margin="0,-10,0,0"
+ Padding="10,0,0,60"
+ ItemsSource="{Binding Source={StaticResource groupedItemsViewSource}}"
+ ItemTemplate="{StaticResource Standard80ItemTemplate}"
+ SelectionMode="None"
+ IsSwipeEnabled="false"
+ IsItemClickEnabled="True"
+ >
+
+ <ListView.GroupStyle>
+ <GroupStyle>
+ <GroupStyle.HeaderTemplate>
+ <DataTemplate>
+ <Grid Margin="7,7,0,0">
+ <Button x:ConnectionId='4'
+ AutomationProperties.Name="Group Title"
+
+ Style="{StaticResource TextPrimaryButtonStyle}">
+ <StackPanel Orientation="Horizontal">
+ <TextBlock Text="{Binding Title}" Margin="3,-7,10,10" Style="{StaticResource GroupHeaderTextStyle}" />
+ <TextBlock Text="{StaticResource ChevronGlyph}" FontFamily="Segoe UI Symbol" Margin="0,-7,0,10" Style="{StaticResource GroupHeaderTextStyle}"/>
+ </StackPanel>
+ </Button>
+ </Grid>
+ </DataTemplate>
+ </GroupStyle.HeaderTemplate>
+ </GroupStyle>
+ </ListView.GroupStyle>
+ </ListView>
+
+ <!-- Botón Atrás y título de página -->
+ <Grid>
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="Auto"/>
+ <ColumnDefinition Width="*"/>
+ </Grid.ColumnDefinitions>
+ <Button x:ConnectionId='3' x:Name="backButton" IsEnabled="{Binding Frame.CanGoBack, ElementName=pageRoot}" Style="{StaticResource BackButtonStyle}"/>
+ <TextBlock x:Name="pageTitle" Text="{StaticResource AppName}" Grid.Column="1" IsHitTestVisible="false" Style="{StaticResource PageHeaderTextStyle}"/>
+ </Grid>
+
+ <VisualStateManager.VisualStateGroups>
+
+ <!-- Los estados visuales reflejan el estado de vista de la aplicación -->
+ <VisualStateGroup x:Name="ApplicationViewStates">
+ <VisualState x:Name="FullScreenLandscape"/>
+ <VisualState x:Name="Filled"/>
+
+ <!-- Toda la página respeta la convención de margen más estrecho de 100 píxeles para Portrait -->
+ <VisualState x:Name="FullScreenPortrait">
+ <Storyboard>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PortraitBackButtonStyle}"/>
+ </ObjectAnimationUsingKeyFrames>
+
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="itemGridView" Storyboard.TargetProperty="Padding">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="96,137,10,56"/>
+ </ObjectAnimationUsingKeyFrames>
+ </Storyboard>
+ </VisualState>
+
+ <!--
+ El botón Atrás y el título tienen estilos distintos en Snapped y la representación de lista se sustituye
+ por la cuadrícula mostrada en el resto de estados de vista
+ -->
+ <VisualState x:Name="Snapped">
+ <Storyboard>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedBackButtonStyle}"/>
+ </ObjectAnimationUsingKeyFrames>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="pageTitle" Storyboard.TargetProperty="Style">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedPageHeaderTextStyle}"/>
+ </ObjectAnimationUsingKeyFrames>
+
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="itemListView" Storyboard.TargetProperty="Visibility">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
+ </ObjectAnimationUsingKeyFrames>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="itemGridView" Storyboard.TargetProperty="Visibility">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
+ </ObjectAnimationUsingKeyFrames>
+ </Storyboard>
+ </VisualState>
+ </VisualStateGroup>
+ </VisualStateManager.VisualStateGroups>
+ </Grid>
+</common:LayoutAwarePage>
+
View
183 CapitanTioApp/CapitanTioApp/bin/Debug/ItemDetailPage.xaml
@@ -0,0 +1,183 @@
+<common:LayoutAwarePage
+ x:Name="pageRoot"
+ x:Class="CapitanTioApp.ItemDetailPage"
+ DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:local="using:CapitanTioApp"
+ xmlns:data="using:CapitanTioApp.Data"
+ xmlns:common="using:CapitanTioApp.Common"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ mc:Ignorable="d">
+
+ <Page.Resources>
+
+ <!-- Colección de elementos que muestra esta página -->
+ <CollectionViewSource
+ x:Name="itemsViewSource"
+ Source="{Binding Items}"
+ d:Source="{Binding AllGroups[0].Items, Source={d:DesignInstance Type=data:SampleDataSource, IsDesignTimeCreatable=True}}"/>
+ </Page.Resources>
+
+ <!--
+ Esta cuadrícula actúa como panel raíz de la página que define dos filas:
+ * La fila 0 contiene el botón Atrás y el título de página
+ * La fila 1 contiene el resto del diseño de página
+ -->
+ <Grid
+ Style="{StaticResource LayoutRootStyle}"
+ DataContext="{Binding Group}"
+ d:DataContext="{Binding AllGroups[0], Source={d:DesignInstance Type=data:SampleDataSource, IsDesignTimeCreatable=True}}">
+
+ <Grid.RowDefinitions>
+ <RowDefinition Height="140"/>
+ <RowDefinition Height="*"/>
+ </Grid.RowDefinitions>
+
+ <!--
+ El resto de la página es de tipo FlipView grande y muestra los detalles de
+ un elemento cada vez, lo que permite al usuario pasar por todos los elementos del grupo
+ seleccionado.
+ -->
+ <FlipView
+ x:Name="flipView"
+ AutomationProperties.AutomationId="ItemsFlipView"
+ AutomationProperties.Name="Item Details"
+ TabIndex="1"
+ Grid.RowSpan="2"
+ ItemsSource="{Binding Source={StaticResource itemsViewSource}}">
+
+ <FlipView.ItemContainerStyle>
+ <Style TargetType="FlipViewItem">
+ <Setter Property="Margin" Value="0,137,0,0"/>
+ </Style>
+ </FlipView.ItemContainerStyle>
+
+ <FlipView.ItemTemplate>
+ <DataTemplate>
+
+ <!--
+ Objeto UserControl elegido como elemento de plantilla porque admite la administración de estados de vista.
+ Los eventos de carga o descarga se suscriben explícitamente a las actualizaciones de estados de vista de la página.
+ -->
+ <UserControl x:ConnectionId='2' >
+ <ScrollViewer x:Name="scrollViewer" Style="{StaticResource HorizontalScrollViewerStyle}" Grid.Row="1">
+
+ <!-- Se permite que el contenido ocupe tantas columnas como sea necesario -->
+ <common:RichTextColumns x:Name="richTextColumns" Margin="117,0,117,47">
+ <RichTextBlock x:Name="richTextBlock" Width="560" Style="{StaticResource ItemRichTextStyle}" IsTextSelectionEnabled="False">
+ <Paragraph>
+ <Run FontSize="26.667" FontWeight="Light" Text="{Binding Title}"/>
+ <LineBreak/>
+ <LineBreak/>
+ <Run FontWeight="Normal" Text="{Binding Subtitle}"/>
+ </Paragraph>
+ <Paragraph LineStackingStrategy="MaxHeight">
+ <InlineUIContainer>
+ <Image x:Name="image" MaxHeight="480" Margin="0,20,0,10" Stretch="Uniform" Source="{Binding Image}" AutomationProperties.Name="{Binding Title}"/>
+ </InlineUIContainer>
+ </Paragraph>
+ <Paragraph>
+ <Run FontWeight="SemiLight" Text="{Binding Content}"/>
+ </Paragraph>
+ </RichTextBlock>
+
+ <!-- Se crean columnas adicionales de esta plantilla -->
+ <common:RichTextColumns.ColumnTemplate>
+ <DataTemplate>
+ <RichTextBlockOverflow Width="560" Margin="80,0,0,0">
+ <RichTextBlockOverflow.RenderTransform>
+ <TranslateTransform X="-1" Y="4"/>
+ </RichTextBlockOverflow.RenderTransform>
+ </RichTextBlockOverflow>
+ </DataTemplate>
+ </common:RichTextColumns.ColumnTemplate>
+ </common:RichTextColumns>
+
+ <VisualStateManager.VisualStateGroups>
+
+ <!-- Los estados visuales reflejan el estado de vista de la aplicación dentro de FlipView -->
+ <VisualStateGroup x:Name="ApplicationViewStates">
+ <VisualState x:Name="FullScreenLandscape"/>
+ <VisualState x:Name="Filled"/>
+
+ <!-- Respetar la convención de margen más estrecho de 100 píxeles para Portrait -->
+ <VisualState x:Name="FullScreenPortrait">
+ <Storyboard>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="richTextColumns" Storyboard.TargetProperty="Margin">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="97,0,87,57"/>
+ </ObjectAnimationUsingKeyFrames>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="image" Storyboard.TargetProperty="MaxHeight">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="400"/>
+ </ObjectAnimationUsingKeyFrames>
+ </Storyboard>
+ </VisualState>
+
+ <!-- En Snapped, se vuelve a aplicar formato al contenido y se desplaza verticalmente -->
+ <VisualState x:Name="Snapped">
+ <Storyboard>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="richTextColumns" Storyboard.TargetProperty="Margin">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="17,0,17,57"/>
+ </ObjectAnimationUsingKeyFrames>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="scrollViewer" Storyboard.TargetProperty="Style">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource VerticalScrollViewerStyle}"/>
+ </ObjectAnimationUsingKeyFrames>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="richTextBlock" Storyboard.TargetProperty="Width">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="280"/>
+ </ObjectAnimationUsingKeyFrames>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="image" Storyboard.TargetProperty="MaxHeight">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="160"/>
+ </ObjectAnimationUsingKeyFrames>
+ </Storyboard>
+ </VisualState>
+ </VisualStateGroup>
+ </VisualStateManager.VisualStateGroups>
+ </ScrollViewer>
+ </UserControl>
+ </DataTemplate>
+ </FlipView.ItemTemplate>
+ </FlipView>
+
+ <!-- Botón Atrás y título de página -->
+ <Grid>
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="Auto"/>
+ <ColumnDefinition Width="*"/>
+ </Grid.ColumnDefinitions>
+ <Button x:ConnectionId='1' x:Name="backButton" IsEnabled="{Binding Frame.CanGoBack, ElementName=pageRoot}" Style="{StaticResource BackButtonStyle}"/>
+ <TextBlock x:Name="pageTitle" Text="{Binding Title}" Style="{StaticResource PageHeaderTextStyle}" Grid.Column="1" IsHitTestVisible="false"/>
+ </Grid>
+
+ <VisualStateManager.VisualStateGroups>
+
+ <!-- Los estados visuales reflejan el estado de vista de la aplicación -->
+ <VisualStateGroup x:Name="ApplicationViewStates">
+ <VisualState x:Name="FullScreenLandscape"/>
+ <VisualState x:Name="Filled"/>
+
+ <!-- El botón Atrás respeta la convención de margen más estrecho de 100 píxeles para Portrait -->
+ <VisualState x:Name="FullScreenPortrait">
+ <Storyboard>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PortraitBackButtonStyle}"/>
+ </ObjectAnimationUsingKeyFrames>
+ </Storyboard>
+ </VisualState>
+
+ <!-- El botón Atrás y el título tienen estilos distintos en Snapped -->
+ <VisualState x:Name="Snapped">
+ <Storyboard>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedBackButtonStyle}"/>
+ </ObjectAnimationUsingKeyFrames>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="pageTitle" Storyboard.TargetProperty="Style">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedPageHeaderTextStyle}"/>
+ </ObjectAnimationUsingKeyFrames>
+ </Storyboard>
+ </VisualState>
+ </VisualStateGroup>
+ </VisualStateManager.VisualStateGroups>
+ </Grid>
+</common:LayoutAwarePage>
+
View
BIN  CapitanTioApp/CapitanTioApp/bin/Debug/resources.pri
Binary file not shown
View
25 CapitanTioApp/CapitanTioApp/obj/Debug/App.xaml
@@ -0,0 +1,25 @@
+<Application
+ x:Class="CapitanTioApp.App"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:local="using:CapitanTioApp"
+ xmlns:localData="using:CapitanTioApp.Data">
+
+ <Application.Resources>
+ <ResourceDictionary>
+ <ResourceDictionary.MergedDictionaries>
+
+ <!--
+ Estilos que definen aspectos comunes de la apariencia de la aplicación.
+ Requeridos por las plantillas de elementos y proyecto de Visual Studio.
+ -->
+ <ResourceDictionary Source="Common/StandardStyles.xaml"/>
+ </ResourceDictionary.MergedDictionaries>
+
+ <!-- Recursos específicos de la aplicación -->
+
+ <x:String x:Key="AppName">CapitanTioApp</x:String>
+ </ResourceDictionary>
+ </Application.Resources>
+</Application>
+
View
33 CapitanTioApp/CapitanTioApp/obj/Debug/CapitanTioApp.csproj.FileListAbsolute.txt
@@ -0,0 +1,33 @@
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\bin\Debug\CapitanTioApp.exe
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\bin\Debug\CapitanTioApp.pdb
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\bin\Debug\resources.pri
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\bin\Debug\AppxManifest.xml
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\bin\Debug\CapitanTioApp.build.appxrecipe
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\App.g.i.cs
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\App.g.cs
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\Common\StandardStyles.g.i.cs
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\Common\StandardStyles.g.cs
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\GroupedItemsPage.g.i.cs
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\GroupedItemsPage.g.cs
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\GroupDetailPage.g.i.cs
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\GroupDetailPage.g.cs
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\ItemDetailPage.g.i.cs
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\ItemDetailPage.g.cs
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\XamlTypeInfo.g.cs
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\App.xaml
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\Common\StandardStyles.xaml
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\GroupedItemsPage.xaml
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\GroupDetailPage.xaml
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\ItemDetailPage.xaml
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\CapitanTioApp.exe
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\CapitanTioApp.pdb
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\priconfig.xml.intermediate
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\layout.resfiles.intermediate
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\resources.resfiles.intermediate
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\pri.resfiles.intermediate
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\priconfig.xml
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\layout.resfiles
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\resources.resfiles
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\pri.resfiles
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\LanguageQualifiers.txt
+C:\Users\pablo_000\Documents\GitHub\CapitanTioApp\CapitanTioApp\CapitanTioApp\obj\Debug\ProjectArchitectures.txt
View
BIN  CapitanTioApp/CapitanTioApp/obj/Debug/CapitanTioApp.exe
Binary file not shown
View
BIN  CapitanTioApp/CapitanTioApp/obj/Debug/CapitanTioApp.pdb
Binary file not shown
View
1,830 CapitanTioApp/CapitanTioApp/obj/Debug/Common/StandardStyles.xaml
1,830 additions, 0 deletions not shown
View
147 CapitanTioApp/CapitanTioApp/obj/Debug/GroupDetailPage.xaml
@@ -0,0 +1,147 @@
+<common:LayoutAwarePage
+ x:Name="pageRoot"
+ x:Class="CapitanTioApp.GroupDetailPage"
+ DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:local="using:CapitanTioApp"
+ xmlns:data="using:CapitanTioApp.Data"
+ xmlns:common="using:CapitanTioApp.Common"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ mc:Ignorable="d">
+
+ <Page.Resources>
+
+ <!-- Colección de elementos que muestra esta página -->
+ <CollectionViewSource
+ x:Name="itemsViewSource"
+ Source="{Binding Items}"
+ d:Source="{Binding AllGroups[0].Items, Source={d:DesignInstance Type=data:SampleDataSource, IsDesignTimeCreatable=True}}"/>
+ </Page.Resources>
+
+ <!--
+ Esta cuadrícula actúa como panel raíz de la página que define dos filas:
+ * La fila 0 contiene el botón Atrás y el título de página
+ * La fila 1 contiene el resto del diseño de página
+ -->
+ <Grid
+ Style="{StaticResource LayoutRootStyle}"
+ DataContext="{Binding Group}"
+ d:DataContext="{Binding AllGroups[0], Source={d:DesignInstance Type=data:SampleDataSource, IsDesignTimeCreatable=True}}">
+
+ <Grid.RowDefinitions>
+ <RowDefinition Height="140"/>
+ <RowDefinition Height="*"/>
+ </Grid.RowDefinitions>
+
+ <!-- Cuadrícula de desplazamiento horizontal usada en la mayoría de los estados de vista -->
+ <GridView x:ConnectionId='1'
+ x:Name="itemGridView"
+ AutomationProperties.AutomationId="ItemGridView"
+ AutomationProperties.Name="Items In Group"
+ TabIndex="1"
+ Grid.RowSpan="2"
+ Padding="120,126,120,50"
+ ItemsSource="{Binding Source={StaticResource itemsViewSource}}"
+ ItemTemplate="{StaticResource Standard500x130ItemTemplate}"
+ SelectionMode="None"
+ IsSwipeEnabled="false"
+ IsItemClickEnabled="True"
+ >
+
+ <GridView.Header>
+ <StackPanel Width="480" Margin="0,4,14,0">
+ <TextBlock Text="{Binding Subtitle}" Margin="0,0,18,20" Style="{StaticResource SubheaderTextStyle}" MaxHeight="60"/>
+ <Image Source="{Binding Image}" Height="400" Margin="0,0,18,20" Stretch="UniformToFill" AutomationProperties.Name="{Binding Title}"/>
+ <TextBlock Text="{Binding Description}" Margin="0,0,18,0" Style="{StaticResource BodyTextStyle}"/>
+ </StackPanel>
+ </GridView.Header>
+ <GridView.ItemContainerStyle>
+ <Style TargetType="FrameworkElement">
+ <Setter Property="Margin" Value="52,0,0,10"/>
+ </Style>
+ </GridView.ItemContainerStyle>
+ </GridView>
+
+ <!-- Lista de desplazamiento vertical usada solamente en Snapped -->
+ <ListView x:ConnectionId='2'
+ x:Name="itemListView"
+ AutomationProperties.AutomationId="ItemListView"
+ AutomationProperties.Name="Items In Group"
+ TabIndex="1"
+ Grid.Row="1"
+ Visibility="Collapsed"
+ Padding="10,0,0,60"
+ ItemsSource="{Binding Source={StaticResource itemsViewSource}}"
+ ItemTemplate="{StaticResource Standard80ItemTemplate}"
+ SelectionMode="None"
+ IsSwipeEnabled="false"
+ IsItemClickEnabled="True"
+ >
+
+ <ListView.Header>
+ <StackPanel>
+ <TextBlock Text="{Binding Subtitle}" Margin="10,0,18,20" Style="{StaticResource TitleTextStyle}" MaxHeight="60"/>
+ <Image Source="{Binding Image}" Margin="10,0,18,0" MaxHeight="160" Stretch="UniformToFill" AutomationProperties.Name="{Binding Title}"/>
+ <TextBlock Margin="10,20,18,30" Text="{Binding Description}" Style="{StaticResource BodyTextStyle}"/>
+ </StackPanel>
+ </ListView.Header>
+ </ListView>
+
+ <!-- Botón Atrás y título de página -->
+ <Grid>
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="Auto"/>
+ <ColumnDefinition Width="*"/>
+ </Grid.ColumnDefinitions>
+ <Button x:ConnectionId='3' x:Name="backButton" IsEnabled="{Binding Frame.CanGoBack, ElementName=pageRoot}" Style="{StaticResource BackButtonStyle}"/>
+ <TextBlock x:Name="pageTitle" Text="{Binding Title}" Style="{StaticResource PageHeaderTextStyle}" Grid.Column="1" IsHitTestVisible="false"/>
+ </Grid>
+
+ <VisualStateManager.VisualStateGroups>
+
+ <!-- Los estados visuales reflejan el estado de vista de la aplicación -->
+ <VisualStateGroup x:Name="ApplicationViewStates">
+ <VisualState x:Name="FullScreenLandscape"/>
+ <VisualState x:Name="Filled"/>
+
+ <!-- Toda la página respeta la convención de margen más estrecho de 100 píxeles para Portrait -->
+ <VisualState x:Name="FullScreenPortrait">
+ <Storyboard>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PortraitBackButtonStyle}"/>
+ </ObjectAnimationUsingKeyFrames>
+
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="itemGridView" Storyboard.TargetProperty="Padding">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="100,126,90,0"/>
+ </ObjectAnimationUsingKeyFrames>
+ </Storyboard>
+ </VisualState>
+
+ <!--
+ El botón Atrás y el título tienen estilos distintos en Snapped y la representación de lista se sustituye
+ por la cuadrícula mostrada en el resto de estados de vista
+ -->
+ <VisualState x:Name="Snapped">
+ <Storyboard>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedBackButtonStyle}"/>
+ </ObjectAnimationUsingKeyFrames>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="pageTitle" Storyboard.TargetProperty="Style">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedPageHeaderTextStyle}"/>
+ </ObjectAnimationUsingKeyFrames>
+
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="itemGridView" Storyboard.TargetProperty="Visibility">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
+ </ObjectAnimationUsingKeyFrames>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetName="itemListView" Storyboard.TargetProperty="Visibility">
+ <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
+ </ObjectAnimationUsingKeyFrames>
+ </Storyboard>
+ </VisualState>
+ </VisualStateGroup>
+ </VisualStateManager.VisualStateGroups>
+ </Grid>
+</common:LayoutAwarePage>
+
View
176 CapitanTioApp/CapitanTioApp/obj/Debug/GroupedItemsPage.xaml
@@ -0,0 +1,176 @@
+<common:LayoutAwarePage
+ x:Name="pageRoot"
+ x:Class="CapitanTioApp.GroupedItemsPage"
+ DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:local="using:CapitanTioApp"
+ xmlns:data="using:CapitanTioApp.Data"
+ xmlns:common="using:CapitanTioApp.Common"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ mc:Ignorable="d">
+
+ <Page.Resources>
+
+ <!--
+ Colección de elementos agrupados que muestra esta página, enlazados a un subconjunto
+ de la lista completa de elementos porque los elementos que están en grupos no se pueden virtualizar
+ -->
+ <CollectionViewSource
+ x:Name="groupedItemsViewSource"
+ Source="{Binding Groups}"
+ IsSourceGrouped="true"
+ ItemsPath="TopItems"
+ d:Source="{Binding AllGroups, Source={d:DesignInstance Type=data:SampleDataSource, IsDesignTimeCreatable=True}}"/>
+ </Page.Resources>
+
+ <!--
+ Esta cuadrícula actúa como panel raíz de la página que define dos filas:
+ * La fila 0 contiene el botón Atrás y el título de página
+ * La fila 1 contiene el resto del diseño de página
+ -->
+ <Grid Style="{StaticResource LayoutRootStyle}">
+ <Grid.RowDefinitions>
+ <RowDefinition Height="140"/>
+ <RowDefinition Height="*"/>
+ </Grid.RowDefinitions>
+
+ <!-- Cuadrícula de desplazamiento horizontal usada en la mayoría de los estados de vista -->
+ <GridView x:ConnectionId='1'
+ x:Name="itemGridView"
+ AutomationProperties.AutomationId="ItemGridView"
+ AutomationProperties.Name="Grouped Items"
+ Grid.RowSpan="2"
+ Padding="116,137,40,46"
+ ItemsSource="{Binding Source={StaticResource groupedItemsViewSource}}"
+ ItemTemplate="{StaticResource Standard250x250ItemTemplate}"
+ SelectionMode="None"
+ IsSwipeEnabled="false"
+ IsItemClickEnabled="True"
+ >
+
+ <GridView.ItemsPanel>
+ <ItemsPanelTemplate>
+ <VirtualizingStackPanel Orientation="Horizontal"/>
+ </ItemsPanelTemplate>
+ </GridView.ItemsPanel>
+ <GridView.GroupStyle>
+ <GroupStyle>
+ <GroupStyle.HeaderTemplate>
+ <DataTemplate>
+ <Grid Margin="1,0,0,6">
+ <Button x:ConnectionId='5'
+ AutomationProperties.Name="Group Title"
+
+ Style="{StaticResource TextPrimaryButtonStyle}" >
+ <StackPanel Orientation="Horizontal">
+ <TextBlock Text="{Binding Title}" Margin="3,-7,10,10" Style="{StaticResource GroupHeaderTextStyle}" />
+ <TextBlock Text="{StaticResource ChevronGlyph}" FontFamily="Segoe UI Symbol" Margin="0,-7,0,10" Style="{StaticResource GroupHeaderTextStyle}"/>
+ </StackPanel>
+ </Button>
+ </Grid>
+ </DataTemplate>
+ </GroupStyle.HeaderTemplate>
+ <GroupStyle.Panel>
+ <ItemsPanelTemplate>
+ <VariableSizedWrapGrid Orientation="Vertical" Margin="0,0,80,0"/>
+ </ItemsPanelTemplate>
+ </GroupStyle.Panel>
+ </GroupStyle>
+ </GridView.GroupStyle>
+ </GridView>
+
+ <!-- Lista de desplazamiento vertical usada solamente en Snapped -->
+ <ListView x:ConnectionId='2'
+ x:Name="itemListView"
+ AutomationProperties.AutomationId="ItemListView"
+ AutomationProperties.Name="Grouped Items"
+ Grid.Row="1"
+ Visibility="Collapsed"
+ Margin="0,-10,0,0"
+ Padding="10,0,0,60"
+ ItemsSource="{Binding Source={StaticResource groupedItemsViewSource}}"
+ ItemTemplate="{StaticResource Standard80ItemTemplate}"
+ SelectionMode="None"
+ IsSwipeEnabled="false"
+ IsItemClickEnabled="True"
+ >
+
+ <ListView.GroupStyle>
+ <GroupStyle>
+ <GroupStyle.HeaderTemplate>
+ <DataTemplate>
+ <Grid Margin="7,7,0,0">
+ <Button x:ConnectionId='4'
+ AutomationProperties.Name="Group Title"
+
+ Style="{StaticResource TextPrimaryButtonStyle}">
+ <StackPanel Orientation="Horizontal">
+ <TextBlock Text="{Binding Title}" Margin="3,-7,10,10" Style="{StaticResource GroupHeaderTextStyle}" />
+ <TextBlock Text="{StaticResource ChevronGlyph}" FontFamily="Segoe UI Symbol" Margin="0,-7,0,10" Style="{StaticResource GroupHeaderTextStyle}"/>
+ </StackPanel>
+ </Button>
+ </Grid>
+ </DataTemplate>
+ </GroupStyle.HeaderTemplate>
+ </GroupStyle>
+ </ListView.GroupStyle>
+ </ListView>
+
+ <!-- Botón Atrás y título de página -->
+ <Grid>
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="Auto"/>
+ <ColumnDefinition Width="*"/>
+ </Grid.ColumnDefinitions>
+ <Button x:ConnectionId='3' x:Name="backButton" IsEnabled="{Binding Frame.CanGoBack, ElementName=pageRoot}" Style="{StaticResource BackButtonStyle}"/>
+ <TextBlock x:Name="pageTitle" Text="{StaticResource AppName}" Grid.Column="1" IsHitTestVisible="false" Style="{StaticResource PageHeaderTextStyle}"/>
+ </Grid>
+
+ <VisualStateManager.VisualStateGroups>
+
+ <!-- Los estados visuales reflejan el estado de vista de la aplicación -->