 <?xml-stylesheet type="text/css" href="http://avanet.org/Data/style/rss1.css" ?> <?xml-stylesheet type="text/xsl" href="http://avanet.org/Data/style/rss1.xsl" ?>
<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
  <channel>
    <title>Windows 8</title>
    <link>http://avanet.org/windows-8.aspx</link>
    <description />
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>mojoPortal Blog Module</generator>
    <ttl>120</ttl>
    <itunes:owner />
    <itunes:explicit>no</itunes:explicit>
    <itunes:category text="Extensions" />
    <itunes:category text="iTunes" />
    <item>
      <title>Trabajando Bases de Datos locales SQLite y Windows 8</title>
      <description><![CDATA[<p>Hola a todos<br /> <br /> Aprovechando que hoy ando trabajando por estos días con <a href="http://blog.soreygarcia.me/search/label/Windows%208" target="_blank">Windows 8</a>, hoy les traigo este tema que nos hizo sufrir a más de uno mientras esperabamos el RTM, en realidad esperabamos ansiosamente el wrapper de <b><a href="http://www.sqlite.org/" target="_blank">SQLite</a> </b>sin saberlo.<br /> <br /> <i><b><a href="http://www.sqlite.org/" target="_blank">SQLite</a> </b>es una biblioteca de software que implementa una en sí misma, sin servidor, sin necesidad de configuración, el motor de base de datos transaccional de SQL y su código fuente es de dominio público</i>.<br /> <br /> Pues bien, <b>SQLite </b>ahora está disponible para nuestras aplicaciones <a href="http://blog.soreygarcia.me/search/label/Windows%208" target="_blank">Windows 8</a> que requieren almacenamiento estructurado local. El dolor que teniamos es que hasta ahora no existia una implementación de un <b>wrapper estable y aprobado por Microsoft</b>, que nos permitiera usarlo en nuestras apps. Soy enfática en el tema de aprobado por Microsoft puesto que ya habían varias implementaciones por ahí que muchos estaban usando, sin embargo al enviar nuestras aplicaciones a ser certificadas para publicarse en el Windows Store, estas podían recibir observaciones. Sin embargo ya la librería oficial escrita en C++ y que nos provee todo el poder y funcionalidad de <b>SQLite </b>está disponible para nuestras apps.<br /> <br /> A continuación voy a hacer un ejemplo sencillo, paso a paso, mostrando como usarlo en una aplicación  <a href="http://blog.soreygarcia.me/search/label/Windows%208" target="_blank">Windows 8</a>, este ejemplo está basado en el <a href="http://timheuer.com/blog/archive/2012/08/07/updated-how-to-using-sqlite-from-windows-store-apps.aspx" target="_blank">artículo publicado por Tim Heuer</a>, una de mis fuentes recurrentes.<br /> <br /> Aclaro y soy muy enfatica en ello, de la interfaz que use en el ejemplo, nada que ver con <a href="http://blog.soreygarcia.me/2012/04/metro-un-llamado-la-creatividad.html" target="_blank">como debería ser una aplicación Windows 8</a>, en este caso el ejemplo está más centrado en como usar SQLite<br /> <br /> En primer lugar debemos instalar la extensión que nos permite usar la librería de C++ creada por el equipo de Windows. La encontramos en <b>Tools &gt; Extensions and Updates<br /><br /></b><a style="margin-left: 1em; margin-right: 1em;" href="http://3.bp.blogspot.com/-xJJSHagP7qA/UE1V15UIFDI/AAAAAAAAEP4/FhPhKnKWqSE/s1600/1.png"><img style="display: block; margin-left: auto; margin-right: auto;" alt="" src="http://3.bp.blogspot.com/-xJJSHagP7qA/UE1V15UIFDI/AAAAAAAAEP4/FhPhKnKWqSE/s640/1.png" height="478" width="640" /></a></p>
<p><br /> Luego buscamos los componentes en línea <b>SQLite for Windows Runtime </b>y la descargamos para que sea instalada en nuestra máquina.</p>
<div style="clear: both; text-align: center;"> </div>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://2.bp.blogspot.com/-jRC9GS548xE/UE1Zp8yxVmI/AAAAAAAAETg/yfKKyUoKptA/s1600/2.png"><img alt="" src="http://2.bp.blogspot.com/-jRC9GS548xE/UE1Zp8yxVmI/AAAAAAAAETg/yfKKyUoKptA/s640/2.png" height="388" width="640" /></a></div>
<p><br /> Se nos pide una confirmación, que aceptamos para proceder con la instalación.</p>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://4.bp.blogspot.com/-usYxbzaVXhc/UE1V3FtmM0I/AAAAAAAAEQI/Gnp7Y-87SeY/s1600/3.png"><img alt="" src="http://4.bp.blogspot.com/-usYxbzaVXhc/UE1V3FtmM0I/AAAAAAAAEQI/Gnp7Y-87SeY/s1600/3.png" /></a></div>
<div style="clear: both; text-align: center;"> </div>
<div style="clear: both; text-align: left;">Visual Studio nos notifica que debemos reiniciar para que la extensión sea tomada.</div>
<div style="clear: both; text-align: center;"> </div>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://4.bp.blogspot.com/-DYxb_wvzlk0/UE1WKjKEwjI/AAAAAAAAESI/glukI31CtDo/s1600/4.png"><img alt="" src="http://4.bp.blogspot.com/-DYxb_wvzlk0/UE1WKjKEwjI/AAAAAAAAESI/glukI31CtDo/s400/4.png" height="243" width="400" /></a></div>
<div style="clear: both; text-align: center;"> </div>
<div style="clear: both; text-align: left;">Reiniciamos y abrimos nuestro proyecto y seleccionamos la opción de añadir referencias.</div>
<div style="clear: both; text-align: center;"> </div>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://1.bp.blogspot.com/-cUgZaXUAq1Y/UE1WLYIQleI/AAAAAAAAESQ/dj3sLkqx1TY/s1600/5.png"><img alt="" src="http://1.bp.blogspot.com/-cUgZaXUAq1Y/UE1WLYIQleI/AAAAAAAAESQ/dj3sLkqx1TY/s1600/5.png" /></a></div>
<div style="clear: both; text-align: center;"> </div>
<div style="clear: both; text-align: left;">Debemos seleccionar <b>SQLite y Microsoft Visual C++ Runtime</b> para que la librería funcione correctamente.</div>
<p> </p>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://3.bp.blogspot.com/-v6q5yPp31ec/UE1WL5pUzHI/AAAAAAAAESY/egmBloZkBQY/s1600/6.png"><img alt="" src="http://3.bp.blogspot.com/-v6q5yPp31ec/UE1WL5pUzHI/AAAAAAAAESY/egmBloZkBQY/s640/6.png" height="440" width="640" /></a></div>
<p><br /> En mi caso Visual Studio reportaba un error, ya que debía seleccionar una plataforma específica a pesar de que en realidad se nombran todas las posibles en el mismo mensaje de error.</p>
<div style="clear: both; text-align: center;"> </div>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://3.bp.blogspot.com/-uTeM-8JdUcI/UE1WMRGzjDI/AAAAAAAAESg/JbxBsKvhjJI/s1600/7.png"><img alt="" src="http://3.bp.blogspot.com/-uTeM-8JdUcI/UE1WMRGzjDI/AAAAAAAAESg/JbxBsKvhjJI/s640/7.png" height="410" width="640" /></a></div>
<p><br /> Para corregir ingresamos a las propiedades del proyecto</p>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://4.bp.blogspot.com/-9JYqn5LAfL0/UE1WMzn1A9I/AAAAAAAAESo/F32hrUcLoDQ/s1600/8.png"><img alt="" src="http://4.bp.blogspot.com/-9JYqn5LAfL0/UE1WMzn1A9I/AAAAAAAAESo/F32hrUcLoDQ/s1600/8.png" /></a></div>
<div style="clear: both; text-align: center;"> </div>
<div style="clear: both; text-align: left;">Y seleccionamos en la sección <b>Build</b>, la plataforma de destino.</div>
<p> </p>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://1.bp.blogspot.com/--O_Eh35yVyY/UE1WNQkz6_I/AAAAAAAAESw/65U45FVCSbI/s1600/9.png"><img alt="" src="http://1.bp.blogspot.com/--O_Eh35yVyY/UE1WNQkz6_I/AAAAAAAAESw/65U45FVCSbI/s640/9.png" height="309" width="640" /></a></div>
<div style="clear: both; text-align: center;"> </div>
<div style="clear: both; text-align: left;">Ahora bien,  en este punto si tenemos el conocimiento podríamos acceder a la librería y usarla, sin embargo lo recomendado es buscar algún <b>Wraper </b>existente en <b>C#</b> como es mi caso, para no tener que lidiar con esto si no sabemos como hacerlo. Muchos de esos wraper se encuentran disponibles en <a href="http://www.nuget.org/" target="_blank"><b>NuGet</b></a>. Si usamos VB debemos continuar los pasos hasta añadir el código del wraper, y compilar una librería en C# y luego referenciar esta desde nuestro proyecto VB.</div>
<div style="clear: both; text-align: left;"> </div>
<div style="clear: both; text-align: left;">Para iniciar la instalación del wraper verificamos en las extensiones si lo tenemos instalado y si no procedemos a hacerlo igual que se hizo con el SQLite.</div>
<div style="clear: both; text-align: center;"> </div>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://3.bp.blogspot.com/-P-L8V-XEGDM/UE1WDtdxEiI/AAAAAAAAEQQ/dwWbJdMXqd4/s1600/10.png"><img alt="" src="http://3.bp.blogspot.com/-P-L8V-XEGDM/UE1WDtdxEiI/AAAAAAAAEQQ/dwWbJdMXqd4/s640/10.png" height="390" width="640" /></a></div>
<p><br /> Ahora bien ingresamos a <b>NuGet </b>para buscar un wrapper adecuado para nuestra aplicación.</p>
<div style="clear: both; text-align: center;"> </div>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://3.bp.blogspot.com/-LquzxgmBmjE/UE1WEL2dMkI/AAAAAAAAEQY/BZgZf5amy-o/s1600/11.png"><img alt="" src="http://3.bp.blogspot.com/-LquzxgmBmjE/UE1WEL2dMkI/AAAAAAAAEQY/BZgZf5amy-o/s640/11.png" height="409" width="640" /></a></div>
<p><br /> El wrapper recomendado en el artículo de base de este post es <a href="http://www.nuget.org/packages/sqlite-net" target="_blank">sqlite-net</a>, lo seleccionamos e instalamos.</p>
<div style="clear: both; text-align: center;"> </div>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://1.bp.blogspot.com/-tRdqM_808RU/UE1WE_VBhEI/AAAAAAAAEQg/ohYYIBKPyu0/s1600/12.png"><img alt="" src="http://1.bp.blogspot.com/-tRdqM_808RU/UE1WE_VBhEI/AAAAAAAAEQg/ohYYIBKPyu0/s640/12.png" height="426" width="640" /></a></div>
<p> </p>
<div style="clear: both; text-align: center;">Se nos pide seleccionar en que aplicación vamos a añadir el código, en este caso solo tengo un proyecto.</div>
<div style="clear: both; text-align: center;"> </div>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://1.bp.blogspot.com/-TvRaTUazNwo/UE1WFPkMseI/AAAAAAAAEQo/IFKwF59dNK4/s1600/13.png"><img alt="" src="http://1.bp.blogspot.com/-TvRaTUazNwo/UE1WFPkMseI/AAAAAAAAEQo/IFKwF59dNK4/s320/13.png" height="320" width="320" /></a></div>
<div style="clear: both; text-align: center;"> </div>
<div style="clear: both; text-align: left;">Lo que sucede es que añaden dos API a nuestro código, una de ellas es una API que usa  <a href="http://msdn.microsoft.com/es-es/library/windows/apps/hh452713.aspx" target="_blank">Async</a> , palabra que si no entiendes a este instante te recomiendo estudiar en <b><a href="http://channel9.msdn.com/Events/BUILD/BUILD2011/TOOL-810T" target="_blank">Channel 9</a> o en el <a href="http://blogs.msdn.com/b/warnov/archive/2012/06/10/la-asincron-237-a-y-su-evoluci-243-n-en-pro-de-la-ux.aspx" target="_blank">Blog de Walter Novoa</a></b></div>
<div style="clear: both; text-align: left;"> </div>
<div style="clear: both; text-align: left;">En este post usaré <a href="http://msdn.microsoft.com/es-es/library/windows/apps/hh452713.aspx" target="_blank">Async</a>, si quieres ver como usar la otra API, puedes ver el post de <a href="http://timheuer.com/blog/archive/2012/08/07/updated-how-to-using-sqlite-from-windows-store-apps.aspx" target="_blank">Tim Heuer</a> o bien leer la documentación en español del <a href="http://msdn.microsoft.com/es-es/library/windows/apps/hh452713.aspx" target="_blank">Windows Developer Center</a></div>
<p> </p>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://4.bp.blogspot.com/-xWUKExDxYQ8/UE1WF7OwkRI/AAAAAAAAEQw/dXHWCPe-MBc/s1600/14.png"><img alt="" src="http://4.bp.blogspot.com/-xWUKExDxYQ8/UE1WF7OwkRI/AAAAAAAAEQw/dXHWCPe-MBc/s1600/14.png" /></a></div>
<div style="clear: both; text-align: center;"> </div>
<div style="clear: both; text-align: left;">Para esto también es muy importante tener los conceptos de objetos y ORM claros en tu cabeza. De hecho empezamos nuestro ejemplo construyendo la clase que mapea con la estructura de nuestra tabla de ejemplo. No debemos confundir la clase con la tabla, la tabla de hecho no la veremos, sin embargo es la clase quien nos ayudará a que finalmente se cree la tabla (esto solo suena enredado si no tienes claros los conceptos que te mencioné)</div>
<div style="clear: both; text-align: left;"> </div>
<div style="clear: both; text-align: left;">La clase es sencilla, sin embargo podrás ver unos decoradores sobre ella</div>
<div style="clear: both; text-align: left;"> </div>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://2.bp.blogspot.com/-FBcRuk-qxKw/UE1fZkQCnCI/AAAAAAAAEUQ/T17C_pw24jk/s1600/15.png"><img alt="" src="http://2.bp.blogspot.com/-FBcRuk-qxKw/UE1fZkQCnCI/AAAAAAAAEUQ/T17C_pw24jk/s1600/15.png" /></a></div>
<div style="clear: both; text-align: left;">Otros decoradores pueden ser <b>AutoIncrement, MaxLength(30).</b></div>
<div style="clear: both; text-align: left;"><b> </b></div>
<div style="clear: both; text-align: left;">Ahora creamos nuestra interfaz sencilla, les comparto el Document Outline para que se guien.</div>
<div style="clear: both; text-align: left;"> </div>
<div style="clear: both;"> </div>
<p> </p>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://3.bp.blogspot.com/-sr3Z1jgqdNQ/UE1WGinm7VI/AAAAAAAAERA/pfoOfuABrxs/s1600/16.png"><img alt="" src="http://3.bp.blogspot.com/-sr3Z1jgqdNQ/UE1WGinm7VI/AAAAAAAAERA/pfoOfuABrxs/s640/16.png" height="526" width="640" /></a></div>
<div style="clear: both; text-align: center;"> </div>
<div style="clear: both; text-align: left;">Tambien pueden ver el XAML del formulario. Solo recuerden que hacer una aplicación Windows 8 requiere de mucho más, pero es bueno iniciar desde lo fácil. </div>
<div style="clear: both; text-align: left;"> </div>
<div style="clear: both; text-align: left;">Aprovecho para recomendarles que aprendan a manejar Blend, de verdad es una gran herramienta para abstraernos un poco del arduo trabajo de hacer XAML, sin embargo es igual de importante entender y saber modifical el XAML cuando algo va mal.</div>
<div style="clear: both; text-align: center;"> </div>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://3.bp.blogspot.com/-5YMMDHeuOio/UE1WHEpV90I/AAAAAAAAERI/K2YqZmmAKP8/s1600/16_5.png"><img alt="" src="http://3.bp.blogspot.com/-5YMMDHeuOio/UE1WHEpV90I/AAAAAAAAERI/K2YqZmmAKP8/s640/16_5.png" height="340" width="640" /></a></div>
<div style="clear: both; text-align: left;"> </div>
<div style="clear: both; text-align: left;">Ahora va el código del botón insertar como ven es bastante sencillo de usar cuando ya tienes el wrapper correcto.</div>
<div style="clear: both; text-align: center;"> </div>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://4.bp.blogspot.com/-Az1IAbtqenk/UE1WH_z3O6I/AAAAAAAAERQ/UlRTNiVdvTc/s1600/17.png"><img alt="" src="http://4.bp.blogspot.com/-Az1IAbtqenk/UE1WH_z3O6I/AAAAAAAAERQ/UlRTNiVdvTc/s1600/17.png" /></a></div>
<div style="clear: both; text-align: left;"> </div>
<div style="clear: both; text-align: left;">Aquí la aplicación funcionando.</div>
<p> </p>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://4.bp.blogspot.com/-j9r3Jqz_7m8/UE1WIBY-hSI/AAAAAAAAERY/h6uBHtdAMEg/s1600/17_5.png"><img alt="" src="http://4.bp.blogspot.com/-j9r3Jqz_7m8/UE1WIBY-hSI/AAAAAAAAERY/h6uBHtdAMEg/s1600/17_5.png" /></a></div>
<div style="clear: both; text-align: center;"> </div>
<div style="clear: both; text-align: left;">Luego tenemos el botón consultar que lleva un ListView los items de la base de datos, bastante sencillo tambien.</div>
<p> </p>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://3.bp.blogspot.com/-2-GqIVJR60Q/UE1WIdK6C-I/AAAAAAAAERg/nnnwG8hFHhk/s1600/18.png"><img alt="" src="http://3.bp.blogspot.com/-2-GqIVJR60Q/UE1WIdK6C-I/AAAAAAAAERg/nnnwG8hFHhk/s1600/18.png" /></a></div>
<div style="clear: both; text-align: left;"> </div>
<div style="clear: both; text-align: left;">Aqui vemos la aplicación mostrando los nombres registrados.</div>
<p> </p>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://4.bp.blogspot.com/-5EppA5-9FZk/UE1WIynvNpI/AAAAAAAAERo/vq8z8-5cAuk/s1600/18_5.png"><img alt="" src="http://4.bp.blogspot.com/-5EppA5-9FZk/UE1WIynvNpI/AAAAAAAAERo/vq8z8-5cAuk/s1600/18_5.png" /></a></div>
<div style="clear: both; text-align: center;"> </div>
<div style="clear: both; text-align: left;">Recuerden que hay mucho que hacer con respecto a las listas, y en XAML si sabemos manejar los enlaces correctamente podemos mostrar más información sin hacer más código, veamos un ejemplo de esto para terminar.</div>
<div style="clear: both; text-align: left;"> </div>
<div style="clear: both; text-align: left;">Pueden modificar el <b>DataTemplate del ListView</b> así:</div>
<p> </p>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://4.bp.blogspot.com/-FoDqPgFxa14/UE1WJamahvI/AAAAAAAAERw/37kEUVzV1qs/s1600/19.png"><img alt="" src="http://4.bp.blogspot.com/-FoDqPgFxa14/UE1WJamahvI/AAAAAAAAERw/37kEUVzV1qs/s1600/19.png" /></a></div>
<p><br /> Como mostraremos todo el objeto y no solo una parte de el modificamos el código.</p>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://3.bp.blogspot.com/-j2n-nmQh8J8/UE1WJ_djiFI/AAAAAAAAER4/4n8nDsGDMrY/s1600/20.png"><img alt="" src="http://3.bp.blogspot.com/-j2n-nmQh8J8/UE1WJ_djiFI/AAAAAAAAER4/4n8nDsGDMrY/s1600/20.png" /></a></div>
<div style="clear: both; text-align: left;"> </div>
<div style="clear: both; text-align: left;">Y de esta forma podemos tener una lista con más forma, que de hecho podemos editar mucho mejor si usamos Expression Blend.</div>
<p> </p>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;" href="http://4.bp.blogspot.com/-vtgVypc3m54/UE1WKIz4lcI/AAAAAAAAESA/lIuehHk9GcY/s1600/21.png"><img alt="" src="http://4.bp.blogspot.com/-vtgVypc3m54/UE1WKIz4lcI/AAAAAAAAESA/lIuehHk9GcY/s1600/21.png" /></a></div>
<div style="clear: both; text-align: center;"> </div>
<div style="clear: both; text-align: left;">Espero que este corto ejemplo les resulte de mucha utilidad. Nos vemos la próxima.</div>
<div style="clear: both; text-align: left;"> </div>
<div style="clear: both; text-align: left;">Sorey</div><br /><a href='http://avanet.org/trabajando-bases-de-datos-locales-sqlite-y-windows-8-.aspx'>Sorey García</a>&nbsp;&nbsp;<a href='http://avanet.org/trabajando-bases-de-datos-locales-sqlite-y-windows-8-.aspx'>...</a><a class='tweetthislink' title='Tweet This' href='http://twitter.com/home?status=Trabajando+Bases+de+Datos+locales+SQLite+y+Windows+8+http%3a%2f%2favanet.org%2ftrabajando-bases-de-datos-locales-sqlite-y-windows-8-.aspx'><img src='http://avanet.org/Data/SiteImages/tweetthis3.png' alt='Tweet This' /></a><div class='fblikebutton'><iframe src='http://www.facebook.com/plugins/like.php?href=http%3a%2f%2favanet.org%2ftrabajando-bases-de-datos-locales-sqlite-y-windows-8-.aspx&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;height=35&amp;action=like&amp;colorscheme=light' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden;width:450px; height:35px;'></iframe></div>]]></description>
      <link>http://avanet.org/trabajando-bases-de-datos-locales-sqlite-y-windows-8-.aspx</link>
      <author>Sorey García</author>
      <comments>http://avanet.org/trabajando-bases-de-datos-locales-sqlite-y-windows-8-.aspx</comments>
      <guid isPermaLink="true">http://avanet.org/trabajando-bases-de-datos-locales-sqlite-y-windows-8-.aspx</guid>
      <pubDate>Mon, 10 Sep 2012 04:54:00 GMT</pubDate>
    </item>
    <item>
      <title>Plantillas METRO - Visual Studio 2012</title>
      <description><![CDATA[<p><strong>Fuente: </strong><a href="http://kaiclemente.wordpress.com/2012/06/15/plantillas-metro-visual-studio-2012/">http://kaiclemente.wordpress.com/2012/06/15/plantillas-metro-visual-studio-2012/</a></p>
<p>Cuando empezamos a crear nuevos proyectos usando Visual Studio, por cada tecnología que nos presenta, nos muestra una serie de plantillas, por ejemplo si elegimos web, tenemos como plantillas Web Forms, MVC, etc.</p>
<p>Si empezamos a crear aplicaciones <strong>"Windows Metro style", </strong>veremos lo siguiente:<br /><a href="http://kaiclemente.files.wordpress.com/2012/06/new-project.png"><img class="aligncenter size-full wp-image-178" title="new-project" src="http://kaiclemente.files.wordpress.com/2012/06/new-project.png" alt="" width="584" height="372" /></a></p>
<p>En un post anterior mencionamos que se pueden crear aplicaciones con estilo METRO usando XAML y HTML (usando JAVASCRIPT), peor en la imagen solo tenemos aplicaciones con XAML. Si usamos Visual Studio 2012 ¿Donde podemos encontrar las demas plantillas?.</p>
<p>Al lado Izquierdo tenemos que buscar "Otros Lenguajes (Other Languages)", y al desplegar veremos al final "JAVASCRIPT", cuano desplegamos recien vemos la opcion de estilo Metro:<br /><a href="http://kaiclemente.files.wordpress.com/2012/06/new-project2.png"><img class="aligncenter size-full wp-image-179" title="new-project2" src="http://kaiclemente.files.wordpress.com/2012/06/new-project2.png" alt="" width="584" height="372" /></a></p>
<p>Si vemos tenemos 3 plantillas iguales en ambos casos:<br />1.- Blank App - Crear aplicaciones estilos Metro desde 0, recomendado para personas que ya manejan este patrón.<br /><a href="http://kaiclemente.files.wordpress.com/2012/06/blank-app.png"><img class="aligncenter size-full wp-image-180" title="blank-app" src="http://kaiclemente.files.wordpress.com/2012/06/blank-app.png" alt="" width="233" height="176" /></a><br />2.- Grid App - Plantilla básica de como debería ser una aplicación METRO, para aquellas personas que desean crear una apps en poco tiempo, o para los que por primera vez van a crear una.<br /><a href="http://kaiclemente.files.wordpress.com/2012/06/grid-app.png"><img class="aligncenter size-full wp-image-181" title="grid-app" src="http://kaiclemente.files.wordpress.com/2012/06/grid-app.png" alt="" width="214" height="400" /></a><br />3.- Split App - Plantilla básica base de como crear una lista con su detalle, pensado también para personas que desean crear apps en poco tiempo, o para los que por primera vez van a crear una.<br /><a href="http://kaiclemente.files.wordpress.com/2012/06/split-app.png"><img class="aligncenter size-full wp-image-182" title="split-app" src="http://kaiclemente.files.wordpress.com/2012/06/split-app.png" alt="" width="220" height="281" /></a></p>
<p>Si se dan cuenta, ya estamos entrando poco a poco a crear aplicaciones con estilos METRO, si desean más información ingresen a <a href="http://msdn.microsoft.com/library/windows/apps/hh779072">http://msdn.microsoft.com/library/windows/apps/hh779072</a>.</p>
<p>Nos leemos</p><br /><a href='http://avanet.org/plantillas-metro-visual-studio-2012.aspx'>kaiclemente</a>&nbsp;&nbsp;<a href='http://avanet.org/plantillas-metro-visual-studio-2012.aspx'>...</a><a class='tweetthislink' title='Tweet This' href='http://twitter.com/home?status=Plantillas+METRO+-+Visual+Studio+2012+http%3a%2f%2favanet.org%2fplantillas-metro-visual-studio-2012.aspx'><img src='http://avanet.org/Data/SiteImages/tweetthis3.png' alt='Tweet This' /></a><div class='fblikebutton'><iframe src='http://www.facebook.com/plugins/like.php?href=http%3a%2f%2favanet.org%2fplantillas-metro-visual-studio-2012.aspx&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;height=35&amp;action=like&amp;colorscheme=light' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden;width:450px; height:35px;'></iframe></div>]]></description>
      <link>http://avanet.org/plantillas-metro-visual-studio-2012.aspx</link>
      <author>kaiclemente</author>
      <comments>http://avanet.org/plantillas-metro-visual-studio-2012.aspx</comments>
      <guid isPermaLink="true">http://avanet.org/plantillas-metro-visual-studio-2012.aspx</guid>
      <pubDate>Fri, 15 Jun 2012 17:19:00 GMT</pubDate>
    </item>
    <item>
      <title>Aplicaciones METRO para Windows 8</title>
      <description><![CDATA[<p><strong>Fuente: </strong><a href="http://kaiclemente.wordpress.com/2012/06/11/app-win8/">http://kaiclemente.wordpress.com/2012/06/11/app-win8/</a></p>
<p>Iniciamos una nueva semana, y cada día me sorprenden las cosas que descubro usando VS2012 y Windows 8.<br />Si aun no los tienes puedes descargarlos desde aquí:<br /><a title="Windows 8" href="http://windows.microsoft.com/es-ES/windows-8/release-preview" target="_blank">Windows 8 RC<br /></a><a title="VS2012" href="http://www.microsoft.com/visualstudio/11/es-es/downloads" target="_blank">VS2012 RC</a></p>
<p>Para empezar a dar ejemplos de como construir aplicaciones METRO debemos de entender lo siguiente:</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="https://kaiclemente.files.wordpress.com/2012/06/arquitectura-win8.png" alt="Windows 8" width="600" /></p>
<p>Como se puede observar, se tiene separadas las aplicaciones con estilo METRO y las aplicaciones de escritorio. Una observación muy importante:</p>
<blockquote>
<p><strong>“UNA APLICACION METRO NO ES UN LENGUAJE DE PROGRAMACION”</strong></p>
</blockquote>
<p>Las aplicaciones tipo metro, es una forma de trabajo basado en un estilo fomentado por MICROSOFT, que se quiere promover como un estándar un ejemplo clarisimo es Windows Phone que tambien tiene la interfaz METRO.</p>
<p>Para poder crear las aplicaciones con estilo metro, puedes usar como UX XAML o HTML, y para implementar la funcionalidad puedes usar C/C++, C#/VB y JavaScript. Voy a ir explicando en otros artículos cada detalle del grafico, y sobre todo como iniciar a crear este tipo de aplicaciones.</p>
<p>Las aplicaciones con estilo METRO están siendo muy revolucionarias por ser muy amigable e informativa al momento de usarlas.<br />Así que manos a la obra, empecemos a crear aplicaciones con las nuevas tecnologías.</p>
<p>Nos leemos,<br /><a href="http://kaiclemente.wordpress.com/" target="_blank">Kai Clemente</a> </p><br /><a href='http://avanet.org/aplicaciones-metro-para-windows-8.aspx'>kaiclemente</a>&nbsp;&nbsp;<a href='http://avanet.org/aplicaciones-metro-para-windows-8.aspx'>...</a><a class='tweetthislink' title='Tweet This' href='http://twitter.com/home?status=Aplicaciones+METRO+para+Windows+8+http%3a%2f%2favanet.org%2faplicaciones-metro-para-windows-8.aspx'><img src='http://avanet.org/Data/SiteImages/tweetthis3.png' alt='Tweet This' /></a><div class='fblikebutton'><iframe src='http://www.facebook.com/plugins/like.php?href=http%3a%2f%2favanet.org%2faplicaciones-metro-para-windows-8.aspx&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;height=35&amp;action=like&amp;colorscheme=light' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden;width:450px; height:35px;'></iframe></div>]]></description>
      <link>http://avanet.org/aplicaciones-metro-para-windows-8.aspx</link>
      <author>kaiclemente</author>
      <comments>http://avanet.org/aplicaciones-metro-para-windows-8.aspx</comments>
      <guid isPermaLink="true">http://avanet.org/aplicaciones-metro-para-windows-8.aspx</guid>
      <pubDate>Tue, 12 Jun 2012 04:12:00 GMT</pubDate>
    </item>
  </channel>
</rss>