<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1358727525610408775</id><updated>2024-09-09T19:40:50.255-07:00</updated><category term="windows"/><category term="html5"/><category term="javascript"/><category term="phone"/><category term="windows phone 8"/><category term="windows 8"/><category term="giochi"/><category term="C#"/><category term="hyper-v"/><category term="linux"/><category term="windows 8.1"/><title type='text'>Informatica semplice</title><subtitle type='html'>blog che tratta la programmazione in modo semplice ed intuitivo per tutti. Gli argomenti vanno da C# a HTML5/Javascript, piattaforme da Windows ad Android </subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://informaticasemplice.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1358727525610408775/posts/default'/><link rel='alternate' type='text/html' href='http://informaticasemplice.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Niccolò Petrocchi</name><uri>http://www.blogger.com/profile/01057098047235180688</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1358727525610408775.post-4711498116788400532</id><published>2013-12-20T06:24:00.000-08:00</published><updated>2013-12-20T06:24:08.017-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="windows 8"/><category scheme="http://www.blogger.com/atom/ns#" term="windows 8.1"/><title type='text'>C# Windows Store - Salvare un Canvas in un&#39;immagine</title><content type='html'>Dopo giorni di prove, ricerche online, test di qualche libreria, oggi vi voglio spiegare come salvare tutto quello che inserite in un canvas, in un&#39;immagine tramite l&#39;utlizzo di C# e Javascript in un&#39;applicazione per Windows Store.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Per prima cosa, apriamo visual studio e, creiamo un nuovo progetto Windows Store tramite il linguaggio C#:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJm6dusQWbTirNkaifKwVJNQc-MMR4RU-f9UY7u1ir_SoPNkxeRVUbidyiWkPIbiLugNnBzjMW2HI-uoCjgQaKuPdtGCzpJHT0E4B6j84ilNmY_LtZmWrlnyePccIBdvG6L07pKGndXSg/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJm6dusQWbTirNkaifKwVJNQc-MMR4RU-f9UY7u1ir_SoPNkxeRVUbidyiWkPIbiLugNnBzjMW2HI-uoCjgQaKuPdtGCzpJHT0E4B6j84ilNmY_LtZmWrlnyePccIBdvG6L07pKGndXSg/s1600/1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqdv4MM2DGXsX5GEbs7sbNEv-YJIJMJ79EthOZ8VWBn5mLqJukrIOnw72pUcYdzaw2RyQmPIBsK36ldWqcRPHWUx6VYNaLjAyoMdXPI-aA7nAuusRkP4_cAkPLUTRK5MFSl0HJmc_8dbY/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;243&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqdv4MM2DGXsX5GEbs7sbNEv-YJIJMJ79EthOZ8VWBn5mLqJukrIOnw72pUcYdzaw2RyQmPIBsK36ldWqcRPHWUx6VYNaLjAyoMdXPI-aA7nAuusRkP4_cAkPLUTRK5MFSl0HJmc_8dbY/s1600/1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Ora, apriamo il file &lt;b&gt;MainPage.xaml&lt;/b&gt;&amp;nbsp;e modifichiamolo nel modo seguente:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEPU6uzGE3UzH6Avqz_CNnqG9n_ZCiz1bUUDZ5ALASPnlxy5Gb_ToF3o1tuyulqTghQq7D3HMvOLwW2vyIB43JLrncVB-65spDLfoPFBsBnWK1DfqUNF04HisQorXqvG3EeXP-Li6NgCo/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;235&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEPU6uzGE3UzH6Avqz_CNnqG9n_ZCiz1bUUDZ5ALASPnlxy5Gb_ToF3o1tuyulqTghQq7D3HMvOLwW2vyIB43JLrncVB-65spDLfoPFBsBnWK1DfqUNF04HisQorXqvG3EeXP-Li6NgCo/s400/2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spigazione:&lt;/b&gt;&amp;nbsp;Creiamo una Barra in basso all&#39;applicazione con due bottoni, uno per scegliere la foto e uno, per applicare l&#39;effetto su di essa. Poi inseriamo un &lt;b&gt;WebView&lt;/b&gt;&amp;nbsp;non visibile che effettuerà la modifica della foto.&lt;/blockquote&gt;
Ora apriamo &lt;b&gt;MainPage.xaml.cs&lt;/b&gt;&amp;nbsp;e inseriamo:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;i seguenti &lt;b&gt;using:&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgX1nolB6v-T3mY7nqW93JIbZpzdPJzhij9vn0zoEZXyx04NRfEClGYXztmhiP_hlUofh7tBxou2BToPkHIe-KuYj05oKeTMTUXLJWO89S2j0KXZScxjDvHTeaPMC7qLF-gxiuT1xwbwc8/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;226&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgX1nolB6v-T3mY7nqW93JIbZpzdPJzhij9vn0zoEZXyx04NRfEClGYXztmhiP_hlUofh7tBxou2BToPkHIe-KuYj05oKeTMTUXLJWO89S2j0KXZScxjDvHTeaPMC7qLF-gxiuT1xwbwc8/s400/3.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Le seguenti variabili:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpDyrPxCsEUWrPGjHWqapljfgA8eAfn2YKr6opXnq9oeXRXjDViqXklFjQ4BC-YIADhEXgxnM1D3s9uAkvAyEfIXBtEE9rBdtG-WFGq9ApGy0WaSd5xPQ0xk8TV-ffwM3bQp9r4BL8zlI/s1600/4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;275&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpDyrPxCsEUWrPGjHWqapljfgA8eAfn2YKr6opXnq9oeXRXjDViqXklFjQ4BC-YIADhEXgxnM1D3s9uAkvAyEfIXBtEE9rBdtG-WFGq9ApGy0WaSd5xPQ0xk8TV-ffwM3bQp9r4BL8zlI/s400/4.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione:&lt;/b&gt;&amp;nbsp;Un array di &lt;b&gt;byte&lt;/b&gt;&amp;nbsp;che contiene la foto; &lt;b&gt;width&lt;/b&gt;&amp;nbsp;e &lt;b&gt;height&lt;/b&gt;, rispetivamente lunghezza e altezza della foto; &lt;b&gt;htmlFragment&lt;/b&gt;&amp;nbsp;è il contenuto della &lt;b&gt;WebView&lt;/b&gt;&amp;nbsp;nascosta, contiene una funzione &lt;b&gt;Javascript&lt;/b&gt;&amp;nbsp;che si occupa di applicare l&#39;effetto voluto alla foto. &lt;b&gt;In particolare:&lt;/b&gt;&amp;nbsp;questa funzione inserisce in alto a sinistra la data e, nella metà verso destra la scritta &lt;b&gt;&#39;Hello World&#39;&lt;/b&gt;.&lt;/blockquote&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 3. Il costruttore:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtGvLR96Y1XZvk5Eunl_gWwMz5UelFiksI4xpL4zFu0ZmuBAboBvggxedBRHC2F_VLQ44PerkfE5LK07zHX_f7W-_21Q80PSvhYQJKQSIl_S7Ao-OrcA1uTsygiBSQNzGHy-3UZbTzACA/s1600/5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;107&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtGvLR96Y1XZvk5Eunl_gWwMz5UelFiksI4xpL4zFu0ZmuBAboBvggxedBRHC2F_VLQ44PerkfE5LK07zHX_f7W-_21Q80PSvhYQJKQSIl_S7Ao-OrcA1uTsygiBSQNzGHy-3UZbTzACA/s400/5.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione:&lt;/b&gt;&amp;nbsp;Carica la pagina nella &lt;b&gt;WebView&lt;/b&gt;&lt;/blockquote&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 4. La funzione &lt;b&gt;Folder_Click&lt;/b&gt;, per quando viene cliccato il primo bottone sulla &lt;b&gt;BottomBar&lt;/b&gt;:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBJjNZH2w8TzJNr2TF8FbbHX7toQXpYZOiUaGpxwkeNFCAsXme7ehjvHK9Wu_i4a6U0KnZ6uIAY-b_f7CB0F0W2TvSKzHEcvUth_H64GHAIEbbGTDSPUZ-9tIFO42sq2E9bF4FjGaPXVY/s1600/6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBJjNZH2w8TzJNr2TF8FbbHX7toQXpYZOiUaGpxwkeNFCAsXme7ehjvHK9Wu_i4a6U0KnZ6uIAY-b_f7CB0F0W2TvSKzHEcvUth_H64GHAIEbbGTDSPUZ-9tIFO42sq2E9bF4FjGaPXVY/s1600/6.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione:&lt;/b&gt;&amp;nbsp;Visualizzo la finestra per scegliere l&#39;immagine(&lt;b&gt;solo .jpg&lt;/b&gt;), se ne viene scelta una, controllo se c&#39;è già un&#39;immagine visualizzata e, la cancello, poi imposto la nuova immagine selezionata per essere visualizzata e abilito il bottone per applicare l&#39;effetto.&lt;/blockquote&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 5. La funzione &lt;b&gt;Attach_Click&lt;/b&gt;, per quando viene cliccato il secondo bottone sulla &lt;b&gt;BottomBar&lt;/b&gt;:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwE2luc7uRJpYX7r3KEnae_T8HNyCDhvUcn2ZNJzRYQmeV4z_VV5M5lODLbi8rH8V6kzUNB298bMVd0bUcEurxfChTg4Y72DtRf0gnxy4EhbS11XoCgMJv60Z7a4ZLs6gjQfg9NALXcAU/s1600/7.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;32&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwE2luc7uRJpYX7r3KEnae_T8HNyCDhvUcn2ZNJzRYQmeV4z_VV5M5lODLbi8rH8V6kzUNB298bMVd0bUcEurxfChTg4Y72DtRf0gnxy4EhbS11XoCgMJv60Z7a4ZLs6gjQfg9NALXcAU/s400/7.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione&lt;/b&gt;: Converto l&#39;immagine in una stringa in &lt;b&gt;base64&lt;/b&gt;&amp;nbsp;e la spedisco come parametro alla funzione &lt;b&gt;Javascript&amp;nbsp;Elaborate.&lt;/b&gt;&lt;/blockquote&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; 6. La funzione &lt;b&gt;On_ScriptNotify&lt;/b&gt;, che viene richiamata dalla funzione &lt;b&gt;Javascript&lt;/b&gt;&amp;nbsp;quando finisce di&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; elaborare la foto:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjThAnUEt0qBd0Smh1r7xi5NF65Bin_UPKiUzL6qmdpqCKWKf17QrGSkJRMMjPl-f7m9EOaGFo0FxPCW-xtwAjJEhxXziALNtUGfBswIb_1apOF6g4w4Xny8JWZ7POvlOFZ8-5TDKFLOLo/s1600/8.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjThAnUEt0qBd0Smh1r7xi5NF65Bin_UPKiUzL6qmdpqCKWKf17QrGSkJRMMjPl-f7m9EOaGFo0FxPCW-xtwAjJEhxXziALNtUGfBswIb_1apOF6g4w4Xny8JWZ7POvlOFZ8-5TDKFLOLo/s640/8.png&quot; width=&quot;456&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione&lt;/b&gt;: Recupero la foto elaborata, la converto in &lt;b&gt;byte[]&lt;/b&gt;, visualizzo la finestra per salvare la foto(&lt;b&gt;solo .png&lt;/b&gt;), se è stato scelto un file, scrivo i &lt;b&gt;byte[]&lt;/b&gt;&amp;nbsp;nel file, cancello la foto visualizzata, carico quella elaborata e la visualizzo. Se non viene scelto nessun file su cui salvare, cancello la foto visualizzata e disabilito il secondo bottone sulla &lt;b&gt;BottomBar&lt;/b&gt;.&lt;/blockquote&gt;
Compiliamo ed eseguiamo. Piaciuto?&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://informaticasemplice.blogspot.com/feeds/4711498116788400532/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://informaticasemplice.blogspot.com/2013/12/c-windows-store-salvare-un-canvas-in.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1358727525610408775/posts/default/4711498116788400532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1358727525610408775/posts/default/4711498116788400532'/><link rel='alternate' type='text/html' href='http://informaticasemplice.blogspot.com/2013/12/c-windows-store-salvare-un-canvas-in.html' title='C# Windows Store - Salvare un Canvas in un&#39;immagine'/><author><name>Niccolò Petrocchi</name><uri>http://www.blogger.com/profile/01057098047235180688</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJm6dusQWbTirNkaifKwVJNQc-MMR4RU-f9UY7u1ir_SoPNkxeRVUbidyiWkPIbiLugNnBzjMW2HI-uoCjgQaKuPdtGCzpJHT0E4B6j84ilNmY_LtZmWrlnyePccIBdvG6L07pKGndXSg/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1358727525610408775.post-6893595555627369971</id><published>2013-09-06T10:02:00.000-07:00</published><updated>2013-12-20T06:23:16.599-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="phone"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="windows phone 8"/><title type='text'>Windows Phone 8 - Creare un MessageBox Personalizzato</title><content type='html'>Chi sviluppa per Windows Phone 8, si sarà accorto che la classe &lt;b&gt;MessageBox&lt;/b&gt;&amp;nbsp;da la possibilità di creare finestre di popup con due semplici bottoni: &lt;b&gt;OK&lt;/b&gt;, &lt;b&gt;Cancel&lt;/b&gt;. Oggi vediamo come ampliare questa funzione, creando una finestra di popup tutta nostra.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Per prima cosa apriamo &lt;b&gt;Visual Studio 2012&lt;/b&gt;&amp;nbsp;e creiamo un nuovo progetto &lt;b&gt;C#&lt;/b&gt;&amp;nbsp;per &lt;b&gt;Windows Phone 8&lt;/b&gt;, dopodiché creiamo una nuova cartella all&#39;interno della soluzione e la chiamiamo &lt;b&gt;CustomMessageBox&lt;/b&gt;. La soluzione finale sarà così:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7MIJ84WHaLSFbiXT-UHTeQP5UZRr24pbCRgVaiRMeMJT3QOKbMCDvLD5KO0CVHRUOMT5s1ZaRAGAY2jek9C8BM2wR-ICN-ECAhNfsOyeYYdNcDmdp0moLprbD3JG2Sn_3AVAdbguDY9c/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7MIJ84WHaLSFbiXT-UHTeQP5UZRr24pbCRgVaiRMeMJT3QOKbMCDvLD5KO0CVHRUOMT5s1ZaRAGAY2jek9C8BM2wR-ICN-ECAhNfsOyeYYdNcDmdp0moLprbD3JG2Sn_3AVAdbguDY9c/s640/1.png&quot; width=&quot;323&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
All&#39;interno di questa cartella creiamo un nuovo file in questo modo:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYvQib7ys1WUjmkRk2V_3gHNZK8lahVeBT-trx2myDbl5kliQkGJeIEKkvJ3JRPwEpaKG_FcsRLcVvcAo4_zyTT2OR1wxz5PmT_H60Rfmg8rgieugTwWFTHjMjM_ipQ_Y4qeRW79t-ULk/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYvQib7ys1WUjmkRk2V_3gHNZK8lahVeBT-trx2myDbl5kliQkGJeIEKkvJ3JRPwEpaKG_FcsRLcVvcAo4_zyTT2OR1wxz5PmT_H60Rfmg8rgieugTwWFTHjMjM_ipQ_Y4qeRW79t-ULk/s1600/2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMSZl3EgADvtllAqqjv3RiG4HpaKiSgaaAbTzQBoRgU0LOFiAEnS-G6geSuFZE_Ulqd5BPWl-MMGumZHOqbuvWwtfs2stQe53aYr6KN2t1wHde2S2Cbj0ayXeSuWv4Auq5DqZUUyfLyKo/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;244&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMSZl3EgADvtllAqqjv3RiG4HpaKiSgaaAbTzQBoRgU0LOFiAEnS-G6geSuFZE_Ulqd5BPWl-MMGumZHOqbuvWwtfs2stQe53aYr6KN2t1wHde2S2Cbj0ayXeSuWv4Auq5DqZUUyfLyKo/s400/3.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhn4x8xy5XPJ8AkvlaZOUhKl-wK1R-3gCv8Nnf4vbNKd4NAoif43bxBFtCLmM9yppo4xyyyz587q2pRgh4G8Dtn9q6XzFbZhmP_yxsav4MAN96noraX1JbGS2uc_fxMGCfx2HVjyfEfMX4/s1600/4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhn4x8xy5XPJ8AkvlaZOUhKl-wK1R-3gCv8Nnf4vbNKd4NAoif43bxBFtCLmM9yppo4xyyyz587q2pRgh4G8Dtn9q6XzFbZhmP_yxsav4MAN96noraX1JbGS2uc_fxMGCfx2HVjyfEfMX4/s640/4.png&quot; width=&quot;324&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Partiamo dalla grafica, quindi modifichiamo il file &lt;b&gt;CustomMessageBox.xaml&lt;/b&gt;&amp;nbsp;in questo modo:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwqG9ZnOm_4fxdbdLssYp_tP8NkAGOFsuysru99O0V4DyUfYwp4xVUqaqj0s8NC8xCHqwIQ4suFVJRSFiInjt7ac_JLooI3rs7Wz1acu9I6-WucV4D0YTraYQ3DJXT7SieyIOqp7OjR8I/s1600/5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;255&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwqG9ZnOm_4fxdbdLssYp_tP8NkAGOFsuysru99O0V4DyUfYwp4xVUqaqj0s8NC8xCHqwIQ4suFVJRSFiInjt7ac_JLooI3rs7Wz1acu9I6-WucV4D0YTraYQ3DJXT7SieyIOqp7OjR8I/s400/5.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione&lt;/b&gt;: Inseriamo nel &lt;b&gt;LayoutRoot&lt;/b&gt;&amp;nbsp;tre righe che contengono il &lt;b&gt;Titolo&lt;/b&gt;&amp;nbsp;il &lt;b&gt;Contenuto&lt;/b&gt;&amp;nbsp;e l&#39;ultima i &lt;b&gt;Bottoni&lt;/b&gt;&lt;/blockquote&gt;
Ora andiamo ad aprire il file &lt;b&gt;CustomMessageBox.xaml.cs&lt;/b&gt;&amp;nbsp;e aggiungiamo i seguenti &lt;b&gt;using&lt;/b&gt;:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHwT2rZ5Yxcgdef5Mgp6nyDuh_P3UvCZogFMlWmYINtFDI6M1DblX-oyQpWPxzZKpytefa-hujBw94oFcwR5SOnXxj2ePeyzd9sxL_5PzmOGRdNbrojWYiGq7lr1rgZ88pA5sH8ZBhpTE/s1600/6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHwT2rZ5Yxcgdef5Mgp6nyDuh_P3UvCZogFMlWmYINtFDI6M1DblX-oyQpWPxzZKpytefa-hujBw94oFcwR5SOnXxj2ePeyzd9sxL_5PzmOGRdNbrojWYiGq7lr1rgZ88pA5sH8ZBhpTE/s1600/6.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Poi questi due enumeratori:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtnNlCcSeT9MoKgX9EnUVR5nfDecAdW5e5JyNUiT4lJTkaNhVs9UTM8I8GgJ1eTG6sUrtSg7azVnTfPNeGRyE5ATx01-BG35RX16iu6vv8qTcjGcAGYcqcNWzh1Qham7d3maAeuRDteQE/s1600/7.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtnNlCcSeT9MoKgX9EnUVR5nfDecAdW5e5JyNUiT4lJTkaNhVs9UTM8I8GgJ1eTG6sUrtSg7azVnTfPNeGRyE5ATx01-BG35RX16iu6vv8qTcjGcAGYcqcNWzh1Qham7d3maAeuRDteQE/s1600/7.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione&lt;/b&gt;: L&#39;&lt;b&gt;enum CustomMessageBoxButtonType&lt;/b&gt;&amp;nbsp;dice quali tipi di bottoni il popup supporta. Il &lt;b&gt;CustomMessageBoxButtonResult&lt;/b&gt;&amp;nbsp;definisce i risultati che i bottoni restituiscono al click.&lt;/blockquote&gt;
Inseriamo la variabile &lt;b&gt;Result&lt;/b&gt;:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhK0_i9fTw9aOFtaejWJssYmJKic6mX3nCmFf4rkMBIlt0svmMvnDo8Npe-rUC_aYU4s8cu1KeiMMWmLp6_pb9oF7UogqjKBW7iNhKSkmgQDK4bL7fyMicMZ8mKeCbkzXFuRo8hZBB7vC4/s1600/8.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;30&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhK0_i9fTw9aOFtaejWJssYmJKic6mX3nCmFf4rkMBIlt0svmMvnDo8Npe-rUC_aYU4s8cu1KeiMMWmLp6_pb9oF7UogqjKBW7iNhKSkmgQDK4bL7fyMicMZ8mKeCbkzXFuRo8hZBB7vC4/s400/8.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione&lt;/b&gt;: Questa variabile restituisce il valore del bottone cliccato.&lt;/blockquote&gt;
Andiamo ad aggiungere 3 tipi di costruttori:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSrngHlJOZ82HkFNW91hiuw1suRHIhFH8fv8MWHVV0ARGly5FkXRPzZwhV2MkaF8R8agRibI5UATjb_NYGaqAj3JtkYhgFDXEoz8zgb-QGQ8jftqiPgPPZ_HjFHitcZcZZCyeHJ8XXw8o/s1600/9.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSrngHlJOZ82HkFNW91hiuw1suRHIhFH8fv8MWHVV0ARGly5FkXRPzZwhV2MkaF8R8agRibI5UATjb_NYGaqAj3JtkYhgFDXEoz8zgb-QGQ8jftqiPgPPZ_HjFHitcZcZZCyeHJ8XXw8o/s1600/9.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbiIzmR5mlNHdXpevuioT4BOdUTt-ClbRGjsRVNYThdVFO7vY8Z2NUOPBTEvSYgrznGBcnovEwDnfUHgSx4_773t9ta6rZhN2upbycGGZQ_fsUwQ1EeOKihOd_liEOoZDUjylDwcQuMis/s1600/10.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbiIzmR5mlNHdXpevuioT4BOdUTt-ClbRGjsRVNYThdVFO7vY8Z2NUOPBTEvSYgrznGBcnovEwDnfUHgSx4_773t9ta6rZhN2upbycGGZQ_fsUwQ1EeOKihOd_liEOoZDUjylDwcQuMis/s1600/10.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMWVBwjJj_mgsOzEvZA-dClCJw5jJArSIkZr9S_E8AfEpqs0heTcLIuQjeUviQbReKjyOu2XBBfokyR4L-37X9PQ3gGAUCt5VdoPhjHN4eRMk_bFSjItlGo1HWdKHrRRW9LS3UtZBTodk/s1600/11.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;149&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMWVBwjJj_mgsOzEvZA-dClCJw5jJArSIkZr9S_E8AfEpqs0heTcLIuQjeUviQbReKjyOu2XBBfokyR4L-37X9PQ3gGAUCt5VdoPhjHN4eRMk_bFSjItlGo1HWdKHrRRW9LS3UtZBTodk/s400/11.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione&lt;/b&gt;: Ovviamente differiscono per il numero di parametri passati, se si chiama il primo, viene costruita una finestra con i valori di &lt;b&gt;default&lt;/b&gt;&amp;nbsp;e con un bottone &lt;b&gt;OK&lt;/b&gt;. Con il secondo definiamo il &lt;b&gt;Titolo&lt;/b&gt;&amp;nbsp;e il &lt;b&gt;Contenuto&lt;/b&gt;&amp;nbsp;della finestra, ma il bottone è sempre quello di &lt;b&gt;default&lt;/b&gt;. Infine con l&#39;ultimo creiamo un popup con tutti i parametri personalizzati!&lt;/blockquote&gt;
Passiamo alla funzione&lt;b&gt;&amp;nbsp;CreateButton&lt;/b&gt;&amp;nbsp;che si occupa di aggiungere i bottoni al popup:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGVxLIRLUglFU8-SMecTwqcf-DihTn89_8nX84d0eHZ137JBgp8WB2BfmM4ou_KteccfXAGJAyHp7EL1wkQEnXrRzYjNhA94ewZC16nkqff1gOtBNIPXVlnPF_cLGhhLugri8mnxD3I1Q/s1600/12.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGVxLIRLUglFU8-SMecTwqcf-DihTn89_8nX84d0eHZ137JBgp8WB2BfmM4ou_KteccfXAGJAyHp7EL1wkQEnXrRzYjNhA94ewZC16nkqff1gOtBNIPXVlnPF_cLGhhLugri8mnxD3I1Q/s640/12.png&quot; width=&quot;524&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione&lt;/b&gt;: A seconda del tipo di bottone, impostiamo il testo da visualizzare(&lt;b&gt;Content&lt;/b&gt;) e al &lt;b&gt;Click&lt;/b&gt;&amp;nbsp;il tipo di valore da restituire, infine lo aggiungiamo all&#39;utlima riga del popup.&lt;/blockquote&gt;
L&#39;ultima funzione che ci serve, è quella che controlla quando un bottone viene cliccato:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitTIGZ5aK_ZjUHWbDOawP0nMdZcqck5NDWq05RB2pX_2L1zYN-ExkVnciU8eYMn102gayHozVMfZA8KroA4JqHWo3jzpu_YkA_Qd-xrsFomRm3DYyUluyRk_48sEQvVlabHK8hycghiIk/s1600/13.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;126&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitTIGZ5aK_ZjUHWbDOawP0nMdZcqck5NDWq05RB2pX_2L1zYN-ExkVnciU8eYMn102gayHozVMfZA8KroA4JqHWo3jzpu_YkA_Qd-xrsFomRm3DYyUluyRk_48sEQvVlabHK8hycghiIk/s400/13.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione&lt;/b&gt;: Questa funzione lavora su un &lt;b&gt;Thread&lt;/b&gt;&amp;nbsp;secondario, di modo che possiamo aggiungere una keyword &lt;b&gt;await&lt;/b&gt;&amp;nbsp;quando la richiamiamo ed attendere il termine della funzione. La funzione non fa altro che controllare la variabile &lt;b&gt;Result&lt;/b&gt;, appena cambia il valore da &lt;b&gt;Null&lt;/b&gt;&amp;nbsp;ad uno impostato dal bottone cliccato, la restituisce come risultato.&lt;/blockquote&gt;
&lt;b&gt;Utilizzo&lt;/b&gt;:&lt;br /&gt;
Passiamo a modificare il file &lt;b&gt;MainPage.xaml&lt;/b&gt;:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNwMYouC3ztYOVKg9rJbFn7JiLqxsV-3498MBBKbV4WkGVDiX0IYP8q2tcK1yRRtgz8RBBfvE4nv0gdl2_rnyvAnA9qOs5QTaUKrAunCGGoPVz60IFBUD_nUkLGCNJnKapRuacVZ87-Gw/s1600/14.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;255&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNwMYouC3ztYOVKg9rJbFn7JiLqxsV-3498MBBKbV4WkGVDiX0IYP8q2tcK1yRRtgz8RBBfvE4nv0gdl2_rnyvAnA9qOs5QTaUKrAunCGGoPVz60IFBUD_nUkLGCNJnKapRuacVZ87-Gw/s400/14.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione&lt;/b&gt;: Abbiamo aggiunto(&lt;b&gt;xmlns:local=&quot;clr-namespace:PhoneApp2.CustomMessageBox&quot;&lt;/b&gt;)lo spazione dei nomi per creare il popup. Abbiamo creato un bottone che al click visualizza il popup. In fondo al &lt;b&gt;LayoutRoot&lt;/b&gt;&amp;nbsp;abbiamo aggiunto un &lt;b&gt;Canvas&lt;/b&gt;&amp;nbsp;che sarà lo sfondo che oscura tutto tranne il popup.&lt;/blockquote&gt;
Passiamo al &lt;b&gt;MainPage.xaml.cs&lt;/b&gt;:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIUipBzmCTqF3vnJXQdjx9FFHnQoLy6u76VotxWJ1TrrgbfRo6vBRl05upF3pn0Jc2ci_OwQsr_bRfOSzDKA71tkbtb4xQwbsoDmHfoUoymvkENViOYv3RyCtkr5Ok3khzJZWyc6XOIjE/s1600/15.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIUipBzmCTqF3vnJXQdjx9FFHnQoLy6u76VotxWJ1TrrgbfRo6vBRl05upF3pn0Jc2ci_OwQsr_bRfOSzDKA71tkbtb4xQwbsoDmHfoUoymvkENViOYv3RyCtkr5Ok3khzJZWyc6XOIjE/s640/15.png&quot; width=&quot;438&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione&lt;/b&gt;: La funzione &lt;b&gt;ShowPopup&lt;/b&gt;&amp;nbsp;crea un primo &lt;b&gt;MessageBox&lt;/b&gt;&amp;nbsp;chiedendo di cliccare su &lt;b&gt;Sì &lt;/b&gt;o &lt;b&gt;No&lt;/b&gt;, a seconda di dove si clicca viene visualizzato un nuovo popup con il risultato!&lt;/blockquote&gt;
Ed ecco il risultato:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;a float=&quot;left&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRYz5k-0JNaRuKEI_jhzOkQZmtN83Z4ceVBO7hWi3-ne3dJcw3BFLAPFvMGHkXOX5Yen75Lww2IXtKUqGk4qlm23tLu3brP-abtWhrRTOHUj8ZYpqQlIpx5Ctn0QQX0Mq_r1OjRGTydWs/s1600/wp_ss_20130906_0001.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRYz5k-0JNaRuKEI_jhzOkQZmtN83Z4ceVBO7hWi3-ne3dJcw3BFLAPFvMGHkXOX5Yen75Lww2IXtKUqGk4qlm23tLu3brP-abtWhrRTOHUj8ZYpqQlIpx5Ctn0QQX0Mq_r1OjRGTydWs/s1600/wp_ss_20130906_0001.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRYz5k-0JNaRuKEI_jhzOkQZmtN83Z4ceVBO7hWi3-ne3dJcw3BFLAPFvMGHkXOX5Yen75Lww2IXtKUqGk4qlm23tLu3brP-abtWhrRTOHUj8ZYpqQlIpx5Ctn0QQX0Mq_r1OjRGTydWs/s320/wp_ss_20130906_0001.png&quot; width=&quot;204&quot; /&gt;&lt;/a&gt;
&lt;a float=&quot;left&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDlVWs9wXZaphyphenhyphenPKMIyu7xmk-lOLPmsJsQOf-B07nedaO2py1j_jzVoz_ST2tCMg49rXsqb_jDSApjZxZImp4l0g7lAUhaC3Xh11uTymA4QU57UqY1KtRO5PzXYYTw2TlAu30Fr04mIfY/s1600/wp_ss_20130906_0002.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: left;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDlVWs9wXZaphyphenhyphenPKMIyu7xmk-lOLPmsJsQOf-B07nedaO2py1j_jzVoz_ST2tCMg49rXsqb_jDSApjZxZImp4l0g7lAUhaC3Xh11uTymA4QU57UqY1KtRO5PzXYYTw2TlAu30Fr04mIfY/s320/wp_ss_20130906_0002.png&quot; width=&quot;199&quot; /&gt;&lt;/a&gt;
&lt;a float=&quot;left&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSxlo2qYGL77NRa6gMWllTaC3ZR4taWeyNFZuPlt_-gY-YsABWAD92J_8aUQ-uzdQB_XRqElwutP0OvvaPhhUz8-eG62lud7_aZn1hqfdScYQfqW6mnNnFTUzU410XsDr3tVwKQydsSOQ/s1600/wp_ss_20130906_0003.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: left;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSxlo2qYGL77NRa6gMWllTaC3ZR4taWeyNFZuPlt_-gY-YsABWAD92J_8aUQ-uzdQB_XRqElwutP0OvvaPhhUz8-eG62lud7_aZn1hqfdScYQfqW6mnNnFTUzU410XsDr3tVwKQydsSOQ/s320/wp_ss_20130906_0003.png&quot; width=&quot;199&quot; /&gt;&lt;/a&gt;
&lt;a float=&quot;left&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFN-nuKMCnvB3mrX0KzUf7LGkxW7fS3nwAFA2iROXaFq8_E5749LAoDOem1GtpUsfbx4zuZpYSV7nRlBvuPry-3ov8fNpwVzGTVKBS7RKJBRYIv_1v5lYGk2TshTSZ6S3V9JRJodynE9E/s1600/wp_ss_20130906_0004.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em; text-align: left;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFN-nuKMCnvB3mrX0KzUf7LGkxW7fS3nwAFA2iROXaFq8_E5749LAoDOem1GtpUsfbx4zuZpYSV7nRlBvuPry-3ov8fNpwVzGTVKBS7RKJBRYIv_1v5lYGk2TshTSZ6S3V9JRJodynE9E/s320/wp_ss_20130906_0004.png&quot; width=&quot;199&quot; /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://informaticasemplice.blogspot.com/feeds/6893595555627369971/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://informaticasemplice.blogspot.com/2013/09/windows-phone-8-creare-un-messagebox.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1358727525610408775/posts/default/6893595555627369971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1358727525610408775/posts/default/6893595555627369971'/><link rel='alternate' type='text/html' href='http://informaticasemplice.blogspot.com/2013/09/windows-phone-8-creare-un-messagebox.html' title='Windows Phone 8 - Creare un MessageBox Personalizzato'/><author><name>Niccolò Petrocchi</name><uri>http://www.blogger.com/profile/01057098047235180688</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7MIJ84WHaLSFbiXT-UHTeQP5UZRr24pbCRgVaiRMeMJT3QOKbMCDvLD5KO0CVHRUOMT5s1ZaRAGAY2jek9C8BM2wR-ICN-ECAhNfsOyeYYdNcDmdp0moLprbD3JG2Sn_3AVAdbguDY9c/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1358727525610408775.post-6121358722049830373</id><published>2013-07-07T07:20:00.001-07:00</published><updated>2013-07-07T07:20:46.411-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="hyper-v"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="windows 8"/><title type='text'>Windows 8 - Creare una macchina virtuale con Hyper-v</title><content type='html'>Oggi voglio spiegare a tutti quelli che come me si sono battuti in &lt;b&gt;Hyper-v&lt;/b&gt; per la prima volta, come utilizzarlo per creare una macchina virtuale.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Per prima cosa, apriamo &lt;b&gt;Hyper-v&lt;/b&gt;:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXP-2FeZBfcSS_Aecw61FIRRtxw6tPcWSga29dp1Qyu6JrjWNskXtKaufzfCxrI21gEiPqtH7uQMyoEORy3llTRFLJgiOZlFZ6p2z8cQPrBVQe0eNQQSY5eavYL0vZpAQCyukBStCMVt4/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;212&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXP-2FeZBfcSS_Aecw61FIRRtxw6tPcWSga29dp1Qyu6JrjWNskXtKaufzfCxrI21gEiPqtH7uQMyoEORy3llTRFLJgiOZlFZ6p2z8cQPrBVQe0eNQQSY5eavYL0vZpAQCyukBStCMVt4/s400/1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Clicchiamo su &lt;b&gt;Action&lt;/b&gt;&amp;nbsp;-&amp;gt; &lt;b&gt;New&lt;/b&gt;&amp;nbsp;-&amp;gt; &lt;b&gt;Virtual Machine...&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh58w-mt2ZK8ExJJyHQjUbwoIsv1aPqkfnx-LzIilwBoTM65LkaA8wa9CfAoGtDrNkU4c6CycmIZ5QNaC3-Q0BquylQa-ZeOjC5xUET8QjXoK71gpAWwlU-lZpewylF86iP9kqajn6JAmA/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh58w-mt2ZK8ExJJyHQjUbwoIsv1aPqkfnx-LzIilwBoTM65LkaA8wa9CfAoGtDrNkU4c6CycmIZ5QNaC3-Q0BquylQa-ZeOjC5xUET8QjXoK71gpAWwlU-lZpewylF86iP9kqajn6JAmA/s1600/2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Clicchiamo su &lt;b&gt;Next &amp;gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPwl3Luv1d47GFPT4nv2waFXfwxOu4cE0582d_VoWHuwfu5Qb_5kOnEsrn-dxp4e4vhm4pN3ybH5Km8u9l7wldERhjQvygYxJ-gfbBkJxWaTc7G_ImMKb3ex5SAwH8Ki7e-WKy2Oaev6U/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;301&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPwl3Luv1d47GFPT4nv2waFXfwxOu4cE0582d_VoWHuwfu5Qb_5kOnEsrn-dxp4e4vhm4pN3ybH5Km8u9l7wldERhjQvygYxJ-gfbBkJxWaTc7G_ImMKb3ex5SAwH8Ki7e-WKy2Oaev6U/s400/3.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Diamo un nome alla macchina e clicchiamo su &lt;b&gt;Next &amp;gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO41mH2prXqkskZYJ32qBhdrl341D0zQ1QU0RkVHw5nwbj910lkQKw6fwKiIhgdQJBzv_GPRroi_eMnQuAUpXrNob3StlLC6T15_-vTU0M3f2nOfvVq13s2FLPNo6HYZe59z_h_TtWjm4/s1600/4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;301&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO41mH2prXqkskZYJ32qBhdrl341D0zQ1QU0RkVHw5nwbj910lkQKw6fwKiIhgdQJBzv_GPRroi_eMnQuAUpXrNob3StlLC6T15_-vTU0M3f2nOfvVq13s2FLPNo6HYZe59z_h_TtWjm4/s400/4.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Assegniamo la &lt;b&gt;RAM&lt;/b&gt;&amp;nbsp;iniziale e clicchiamo su &lt;b&gt;Next &amp;gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigryWx_PBnCV-XOMB1PVN12I6jf_gkDcWpfUbK5vAQVGGxJrAgJlO6r09iKbG0Sy84xWT2pKd7VPYoejGYFUfJA_cpVhMaL0rshPUeSZvuq2GiZ64p4qbZ6zApOT2XGD6AyuMDGBJPSMc/s1600/5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;301&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigryWx_PBnCV-XOMB1PVN12I6jf_gkDcWpfUbK5vAQVGGxJrAgJlO6r09iKbG0Sy84xWT2pKd7VPYoejGYFUfJA_cpVhMaL0rshPUeSZvuq2GiZ64p4qbZ6zApOT2XGD6AyuMDGBJPSMc/s400/5.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione&lt;/b&gt;: Se è la prima macchina che create, per assegnare la memoria &lt;b&gt;RAM&lt;/b&gt;&amp;nbsp;consiglio questo metodo [(&lt;b&gt;RAM&lt;/b&gt;&amp;nbsp;totale del PC)/2]-148&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Esempio&lt;/b&gt;: Se la &lt;b&gt;RAM&lt;/b&gt;&amp;nbsp;totale è 4GB: (4096MB/2)-148MB=1900MB&lt;/blockquote&gt;
Nella nuova finestra clicchiamo su &lt;b&gt;Next&lt;/b&gt;&amp;nbsp;&lt;b&gt;&amp;gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVxbiE1-HmoeIGS1hsMnhijcGyyONda0yPUZvYlqfp90BecIQ1XdqDAOXP-eS__OaXHTX3Jahq4y2ka1szgWCenVlSC8QKS_f35vF2Uytqh859WL3PUVM5WCMWBfeZIfpyQXykYkN3a8c/s1600/6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;302&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVxbiE1-HmoeIGS1hsMnhijcGyyONda0yPUZvYlqfp90BecIQ1XdqDAOXP-eS__OaXHTX3Jahq4y2ka1szgWCenVlSC8QKS_f35vF2Uytqh859WL3PUVM5WCMWBfeZIfpyQXykYkN3a8c/s400/6.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Impostiamo un nome, locazione e dimensione al nostro &lt;b&gt;hard-disk&lt;/b&gt; virtuale e clicchiamo su &lt;b&gt;Next &amp;gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRJ05Quw4Uz2XBBhjV_XJNXB2h0negCZTu7w5yGz-hxTwDQnNcHvL6FAMd-DaN5bWu248BgFY4pvvuQoRWE1lEkVRwviZiKoMZaRMZEm99gT5J7PDKmDZ1KVZ8AgoF6ByZAWH1iAmyOVI/s1600/7.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRJ05Quw4Uz2XBBhjV_XJNXB2h0negCZTu7w5yGz-hxTwDQnNcHvL6FAMd-DaN5bWu248BgFY4pvvuQoRWE1lEkVRwviZiKoMZaRMZEm99gT5J7PDKmDZ1KVZ8AgoF6ByZAWH1iAmyOVI/s400/7.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Nella nuova finestra clicchiamo su &lt;b&gt;Next &amp;gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjq1ATol6ptO27reGJP8VLVEk-YZu96D2j_-_UyozbqH55qiOKagLnjsAOJ_8uSpaubAshk6-AfcS4FnxSSw2PW6b33MvCshXqr2NtK45n5W9u4Rjp_dlta-ncpA1hIBU6My73XdnzuRw0/s1600/8.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;301&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjq1ATol6ptO27reGJP8VLVEk-YZu96D2j_-_UyozbqH55qiOKagLnjsAOJ_8uSpaubAshk6-AfcS4FnxSSw2PW6b33MvCshXqr2NtK45n5W9u4Rjp_dlta-ncpA1hIBU6My73XdnzuRw0/s400/8.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Clicchiamo su &lt;b&gt;Finish&lt;/b&gt;:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidPjBxfv17WkOVrld8gttE9qf5CEUfSuV1gQ9G5u5r0fjpQPioCZ3Zk1ZZeNZKkMoUf1dDZjKPJpljnJNvfoPKQa2yR4zRjCvZ8tFAz3TQ-gZPiaHOC_tSy5Hhifq5IW9AOhujspF1YuI/s1600/9.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidPjBxfv17WkOVrld8gttE9qf5CEUfSuV1gQ9G5u5r0fjpQPioCZ3Zk1ZZeNZKkMoUf1dDZjKPJpljnJNvfoPKQa2yR4zRjCvZ8tFAz3TQ-gZPiaHOC_tSy5Hhifq5IW9AOhujspF1YuI/s400/9.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Terminato il processo di creazione, selezioniamo la nostra macchina:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmnID2SxkFFU1eeyq2SmG6vIMUNtS6SIG_yhGFygZwbX6E_qHvDgdj_RuFuZLj3Hq_P0euoUGH_MCEaR6yTgFxFEFDmsqgei87KdlccbATHX7sACQEej6BH_7ysK5QeGsMBbpC4ihq3nY/s1600/10.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;213&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmnID2SxkFFU1eeyq2SmG6vIMUNtS6SIG_yhGFygZwbX6E_qHvDgdj_RuFuZLj3Hq_P0euoUGH_MCEaR6yTgFxFEFDmsqgei87KdlccbATHX7sACQEej6BH_7ysK5QeGsMBbpC4ihq3nY/s400/10.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
E clicchiamo su &lt;b&gt;Action -&amp;gt; Settings...&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCsfW3q1kWu6uyz5QNq0l4T73K54_h2CducmIdM95LWUJodP1l-366O6vEU8_j5feKWBkwlBt9Dg9tDJTifX3G_GBW9F3EApG6uIsB1EoV6y0mkdXlNKkKooDp7_epCaVrl4QT5j4SREE/s1600/11.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCsfW3q1kWu6uyz5QNq0l4T73K54_h2CducmIdM95LWUJodP1l-366O6vEU8_j5feKWBkwlBt9Dg9tDJTifX3G_GBW9F3EApG6uIsB1EoV6y0mkdXlNKkKooDp7_epCaVrl4QT5j4SREE/s640/11.png&quot; width=&quot;406&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Nella nuova finestra clicchiamo su &lt;b&gt;Memory&lt;/b&gt;:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgig8OjcjU5Y_WLC4KLss-vkxGQN9T9f5jKDzBGpLizeIkN-1jcE_6DmpMFkrSvJEB_QH-Z34zcb-cxYQr3TMZENYdZFCRfOLWW2rfSAdrCYbu91U4lYOCCvOAdTT1VvsECbTr0ylbBdYE/s1600/12.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;377&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgig8OjcjU5Y_WLC4KLss-vkxGQN9T9f5jKDzBGpLizeIkN-1jcE_6DmpMFkrSvJEB_QH-Z34zcb-cxYQr3TMZENYdZFCRfOLWW2rfSAdrCYbu91U4lYOCCvOAdTT1VvsECbTr0ylbBdYE/s400/12.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione&lt;/b&gt;: Settaggio di &lt;b&gt;Minimun RAM&lt;/b&gt;&amp;nbsp;e &lt;b&gt;Maximun RAM&lt;/b&gt;, al &lt;b&gt;Minimun RAM&lt;/b&gt;&amp;nbsp;diamo la memoria totale della macchina virtuale, mentre a &lt;b&gt;Maximun RAM&lt;/b&gt;&amp;nbsp;gli assegniamo (Memoria totale macchina virtuale+148)&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Esempio&lt;/b&gt;: 1900MB+148MB=2048MB&lt;/blockquote&gt;
Clicchiamo su &lt;b&gt;Apply&lt;/b&gt;.&lt;br /&gt;
Ora clicchiamo su &lt;b&gt;Processor&lt;/b&gt;, se avete un PC con un singolo processore potete saltare questa parte, impostiamo &lt;b&gt;Number of virtual processor&lt;/b&gt;&amp;nbsp;con la metà dei processori disponibili:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOOlH8bnfjY7tZCzhpeiLOOfBDDmfi_MWZy0l_OrbCmaydvdIfdoqHRjK3dfCwqM9d73ZM7vRLc972cf9tdBv2bAlLsy1X0fiMD6AmLwOQm1sjwqNv4Ne8-vLeMUrSUVpZmazcFNJazW8/s1600/13.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;377&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOOlH8bnfjY7tZCzhpeiLOOfBDDmfi_MWZy0l_OrbCmaydvdIfdoqHRjK3dfCwqM9d73ZM7vRLc972cf9tdBv2bAlLsy1X0fiMD6AmLwOQm1sjwqNv4Ne8-vLeMUrSUVpZmazcFNJazW8/s400/13.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Esempio&lt;/b&gt;: Se il PC ha 4 processori: 4/2=2&lt;/blockquote&gt;
Clicchiamo su &lt;b&gt;Apply&lt;/b&gt;.&lt;br /&gt;
Clicchiamo su &lt;b&gt;OK&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
Adesso passiamo ad un argomento un po più complicato, la gestione della rete in &lt;b&gt;Hyper-v&lt;/b&gt;.&lt;b&gt;&amp;nbsp;&lt;/b&gt;Tale programma, ha dei problemi nel virtualizzare le schede wi-fi, praticamente non le virtualizza per nulla, quindi se avete un PC con connesione wi-fi, dovrete cambiare un po di impostazioni.&lt;br /&gt;&lt;br /&gt;
Selezionate il vostro server:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaZICy3qF7JtputzqG6kgMi4K6HutRhE3OVbKPhRgs4ojfp35rLjij7WVpulUtC3fEd9qfRo-wsieee7jco-tNLlKFKV8fDZ6du6VuaYgPYKHXmHalaaFpb6BGKjbpICwjLv2G91cXQFY/s1600/14.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;212&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaZICy3qF7JtputzqG6kgMi4K6HutRhE3OVbKPhRgs4ojfp35rLjij7WVpulUtC3fEd9qfRo-wsieee7jco-tNLlKFKV8fDZ6du6VuaYgPYKHXmHalaaFpb6BGKjbpICwjLv2G91cXQFY/s400/14.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Cliccate su &lt;b&gt;Action -&amp;gt; Virtual Switch Manager...,&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgg1gVMsJWbW70ERcGKStFaYL_H0_SgkEHLbZaoHkYcaE8t7CDmy3A18Vp_xVgcjT-4sCcYn7EEQEpLNUI9uQs_JMRA_Qs4mz4F7kGoOzoVMns8oytsbMhHmch0f8HZBFwX_JNlseM_9Lw/s1600/15.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;378&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgg1gVMsJWbW70ERcGKStFaYL_H0_SgkEHLbZaoHkYcaE8t7CDmy3A18Vp_xVgcjT-4sCcYn7EEQEpLNUI9uQs_JMRA_Qs4mz4F7kGoOzoVMns8oytsbMhHmch0f8HZBFwX_JNlseM_9Lw/s400/15.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Clicchiamo su &lt;b&gt;New virtual network switch&lt;/b&gt;, poi su &lt;b&gt;External&lt;/b&gt;&amp;nbsp;ed infine su &lt;b&gt;Create virtual switch&lt;/b&gt;:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSniqysgz5t0Djar0M-7scChXFrlE9V0eg05wFVKUeLwYqzLCZtZfhyZHc8kWPZIv8Ztdxyo3EXh42e3C_JYHeELz0rYT0ZPjlmg66bjToe_HriUj3E8jHs9JjZVeTlGh1Z0CtazAxVD8/s1600/16.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;377&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSniqysgz5t0Djar0M-7scChXFrlE9V0eg05wFVKUeLwYqzLCZtZfhyZHc8kWPZIv8Ztdxyo3EXh42e3C_JYHeELz0rYT0ZPjlmg66bjToe_HriUj3E8jHs9JjZVeTlGh1Z0CtazAxVD8/s400/16.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione&lt;/b&gt;: Diamo un nome alla scheda, nel menù a discesa invece selezioniamo la nostra scheda wi-fi&lt;/blockquote&gt;
Clicchiamo su &lt;b&gt;Apply&lt;/b&gt;&amp;nbsp;e poi su &lt;b&gt;OK&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
Torniamo nelle impostazioni sella macchina:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYdol5KWRex9iV7gXQ6eo5B2mIC_mpcLcfOScwfNSBwO-D_NI70GWET7i-R0Vh72XXMHU7fF_4waA0ToL74DuW9wOdPZbG-oiFrfAs-cAr9kHuLe2fpN_xenRNFkQaNNWr9nOGmhwogoI/s1600/10.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;212&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYdol5KWRex9iV7gXQ6eo5B2mIC_mpcLcfOScwfNSBwO-D_NI70GWET7i-R0Vh72XXMHU7fF_4waA0ToL74DuW9wOdPZbG-oiFrfAs-cAr9kHuLe2fpN_xenRNFkQaNNWr9nOGmhwogoI/s400/10.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZJyq8b5ZMBBvT52ZfwRse1mLc7ig9LXi6z5iA-iJrNy2TMyIaKaebU5RbEpG6TNfgEwMnywfRjY5Gy1W6fITRTrdsoCGdgUlJTEsDeGxtWV_MWg5j3ILHS4zKb2Wu1cxjW6rLogMdO2c/s1600/11.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZJyq8b5ZMBBvT52ZfwRse1mLc7ig9LXi6z5iA-iJrNy2TMyIaKaebU5RbEpG6TNfgEwMnywfRjY5Gy1W6fITRTrdsoCGdgUlJTEsDeGxtWV_MWg5j3ILHS4zKb2Wu1cxjW6rLogMdO2c/s640/11.png&quot; width=&quot;406&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Nella nuova finestra andiamo su &lt;b&gt;Network Adapter&lt;/b&gt;&amp;nbsp;e dal menù a tendina selezioniamo la rete che abbiamo appena creato:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipDurH1SrXLs4cfOPXI4KNC8MtUQAd_sv_z6iXFbaIENT_hVhyB1xkgNaAbg9sR349UO464cE8c5I020yKLSYQbQPKoP3DEG5DMcQLHztGq9EW5o3H_RnYv6QrQTNayadJVWZ1igeIEHY/s1600/21.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;377&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipDurH1SrXLs4cfOPXI4KNC8MtUQAd_sv_z6iXFbaIENT_hVhyB1xkgNaAbg9sR349UO464cE8c5I020yKLSYQbQPKoP3DEG5DMcQLHztGq9EW5o3H_RnYv6QrQTNayadJVWZ1igeIEHY/s400/21.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Clicchiamo su &lt;b&gt;Apply&lt;/b&gt;&amp;nbsp;e poi su &lt;b&gt;OK&lt;/b&gt;.&lt;/div&gt;
&lt;br /&gt;
Ora scegliamo una distribuzione &lt;b&gt;Linux&lt;/b&gt;&amp;nbsp;da installare sulla macchina, io personalmente ho scelto una &lt;b&gt;Ubuntu 13.04&lt;/b&gt;&amp;nbsp;a &lt;b&gt;32 bit&lt;/b&gt;&amp;nbsp;scaricabile da&amp;nbsp;&lt;a href=&quot;http://www.ubuntu.com/download/desktop/thank-you?release=latest&amp;amp;bits=32&amp;amp;distro=desktop&amp;amp;status=zeroc&quot; target=&quot;_blank&quot;&gt;qui&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Scaricata la distribuzione, riapriamo le Impostazione della macchina virtuale:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjE6b_dOjB66DBpLa96bmq7vNegGluWI9rIk0rI3x-Lhob4YHQKhucLppCTYE7fKmjAiME9HjebClBQX6WwEYpL_mKuz3HkfkkUSURYQAmhQQC1TbWVdSJry3BFQfxFO_F4MnK7J7g1OBY/s1600/17.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;378&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjE6b_dOjB66DBpLa96bmq7vNegGluWI9rIk0rI3x-Lhob4YHQKhucLppCTYE7fKmjAiME9HjebClBQX6WwEYpL_mKuz3HkfkkUSURYQAmhQQC1TbWVdSJry3BFQfxFO_F4MnK7J7g1OBY/s400/17.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Impostiamo il percorso della nostra immagine .iso e clicchiamo su &lt;b&gt;Apply&lt;/b&gt;&amp;nbsp;e poi su &lt;b&gt;OK&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Ora possiamo avviare la nostra macchina virtuale.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Selezioniamo la nostra macchina:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYdol5KWRex9iV7gXQ6eo5B2mIC_mpcLcfOScwfNSBwO-D_NI70GWET7i-R0Vh72XXMHU7fF_4waA0ToL74DuW9wOdPZbG-oiFrfAs-cAr9kHuLe2fpN_xenRNFkQaNNWr9nOGmhwogoI/s1600/10.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;213&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYdol5KWRex9iV7gXQ6eo5B2mIC_mpcLcfOScwfNSBwO-D_NI70GWET7i-R0Vh72XXMHU7fF_4waA0ToL74DuW9wOdPZbG-oiFrfAs-cAr9kHuLe2fpN_xenRNFkQaNNWr9nOGmhwogoI/s400/10.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Clicchiamo su &lt;b&gt;Action -&amp;gt; Connect...&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_sOU64IigV4ZTm94S8KNVtIgrIXdoKRu69OpQAj-SOunNvIlrtHsx7yg8T4hfgPfkJ7PTzVoYlFSOVdm-b7G9sZYSYHeG_8G84G0KcXEfFpVtdSbmn1MVokSa4nzaw9NT4NyTvCpRawc/s1600/18.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_sOU64IigV4ZTm94S8KNVtIgrIXdoKRu69OpQAj-SOunNvIlrtHsx7yg8T4hfgPfkJ7PTzVoYlFSOVdm-b7G9sZYSYHeG_8G84G0KcXEfFpVtdSbmn1MVokSa4nzaw9NT4NyTvCpRawc/s640/18.png&quot; width=&quot;411&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Nella nuova finestra clicchiamo sul bottone blu:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPJ1VMT1JOJ4bt1Zqwap6YY__e_4TQOJUdFRHl0OcQ2HByxvzbxylR-0Fw0DZmkap4a7FfAh5ujXp_YRMtXBxIcOATP6xNUVOWQGj0_9c-jD1O31UngvA4G85kMHTPmujTymUjxvJE0Ps/s1600/19.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;313&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPJ1VMT1JOJ4bt1Zqwap6YY__e_4TQOJUdFRHl0OcQ2HByxvzbxylR-0Fw0DZmkap4a7FfAh5ujXp_YRMtXBxIcOATP6xNUVOWQGj0_9c-jD1O31UngvA4G85kMHTPmujTymUjxvJE0Ps/s400/19.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Terminato l&#39;avvio, selezioniamo la nostra lingua e clicchiamo su &lt;b&gt;Try Ubuntu&lt;/b&gt;:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT88Fa2ci0Dl1iv-vSZVJR4W4KgZ-iAMC3UK0j3uf8OsJjROCtbU7G27R4CAlvLtLsfEVas7MInPJ0ecT3kH0qSCkNc3RNJCfL4M1VVx_OCNxW1q5lq9-AJ7wgaKBDR4eUXmMB17qbf9Q/s1600/20.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;224&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT88Fa2ci0Dl1iv-vSZVJR4W4KgZ-iAMC3UK0j3uf8OsJjROCtbU7G27R4CAlvLtLsfEVas7MInPJ0ecT3kH0qSCkNc3RNJCfL4M1VVx_OCNxW1q5lq9-AJ7wgaKBDR4eUXmMB17qbf9Q/s400/20.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Avviato il desktop, clicchiamo su questo bottone:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhc9_36Dek4yVnFgc-pWYb8vZZGpVHDB4fk8Hrm4iHLUTrlFjSe0fow-XKCX-vsQzK-uge1J8HXVZta8Gv7HHvcLT2Ml8GGhn1d6P3xcpLeWfssfmZCqD1c2-Se9qmkBPUZhh6KCvdAOYE/s1600/22.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhc9_36Dek4yVnFgc-pWYb8vZZGpVHDB4fk8Hrm4iHLUTrlFjSe0fow-XKCX-vsQzK-uge1J8HXVZta8Gv7HHvcLT2Ml8GGhn1d6P3xcpLeWfssfmZCqD1c2-Se9qmkBPUZhh6KCvdAOYE/s1600/22.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Iniziamo a scrivere &lt;b&gt;network&lt;/b&gt;&amp;nbsp;e clicchiamo su questa icona:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijJSc_VRCEhzha0JImSzferjYCFALvgyzG_0KB-yNDSxylEc71vYfx7ctCyYNipCXYtpWPFfamN68XyNtmsEV5jl5AEQVXButnpCm_-Rv_0al1JG1VMGOB4-RWhnPx27gA66nBM7y7y5Y/s1600/23.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;299&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijJSc_VRCEhzha0JImSzferjYCFALvgyzG_0KB-yNDSxylEc71vYfx7ctCyYNipCXYtpWPFfamN68XyNtmsEV5jl5AEQVXButnpCm_-Rv_0al1JG1VMGOB4-RWhnPx27gA66nBM7y7y5Y/s400/23.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Selezioniamo la nostra connesione &lt;b&gt;eth0&lt;/b&gt;&amp;nbsp;e clicchiamo su &lt;b&gt;Edit...&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRWxzOtlSzVwd-OR6UApT7odd6bTKmwxz7xvoiPTviPQ7oIdj0tJukiEKVQDT7EPonCshaQxck3HpEYnsqF8GgHIORXqSNRj_H0gdfg0UJCyUepin_NrsiEq9b1F7eAbnL4neUcyhlIRQ/s1600/24.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRWxzOtlSzVwd-OR6UApT7odd6bTKmwxz7xvoiPTviPQ7oIdj0tJukiEKVQDT7EPonCshaQxck3HpEYnsqF8GgHIORXqSNRj_H0gdfg0UJCyUepin_NrsiEq9b1F7eAbnL4neUcyhlIRQ/s1600/24.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Andiamo nella scheda &lt;b&gt;IPV6 Settings&lt;/b&gt;&amp;nbsp;e a &lt;b&gt;Method&lt;/b&gt;&amp;nbsp;mettiamo &lt;b&gt;Ignore&lt;/b&gt;:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7jxEOtORNHfn7ou8TiOH46jtAM0xcjtjKyBah4HOoRGt-GzhZsQ2OyfZvixoaSc9FIpfHrdnsFDnd6_89MMJHrCIzuRi-SRE2_KzWGmhiYOiiVh5cm99n1HX63S6baD1zwlClGDWTNJg/s1600/25.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7jxEOtORNHfn7ou8TiOH46jtAM0xcjtjKyBah4HOoRGt-GzhZsQ2OyfZvixoaSc9FIpfHrdnsFDnd6_89MMJHrCIzuRi-SRE2_KzWGmhiYOiiVh5cm99n1HX63S6baD1zwlClGDWTNJg/s1600/25.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Andiamo nella scheda &lt;b&gt;IPV4 Settings&lt;/b&gt;&amp;nbsp;a &lt;b&gt;Method&lt;/b&gt;&amp;nbsp;mettiamo &lt;b&gt;Manual&lt;/b&gt;, clicchiamo su &lt;b&gt;Add&lt;/b&gt;&amp;nbsp;e inseriamo un &lt;b&gt;Address&lt;/b&gt;, &lt;b&gt;Prefix&lt;/b&gt;, &lt;b&gt;Gateway&lt;/b&gt;. Poi inseriamo un &lt;b&gt;DNS servers&lt;/b&gt;:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ5ALB2bZVjzl9gGM4omcMQ4u5hMrx1cZ7ZW0zoc7P9imi8IrH9jkfX5WZuoUP6tIM-HkbZEWfFT7mphpacTMS-lk34omFqohhdKreuZS6s-zjBrUCBIvdtcVc0yZTtJ3qd40A4An7U8Y/s1600/26.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ5ALB2bZVjzl9gGM4omcMQ4u5hMrx1cZ7ZW0zoc7P9imi8IrH9jkfX5WZuoUP6tIM-HkbZEWfFT7mphpacTMS-lk34omFqohhdKreuZS6s-zjBrUCBIvdtcVc0yZTtJ3qd40A4An7U8Y/s1600/26.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Infine clicchiamo su &lt;b&gt;Save...&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Aspettiamo che &lt;b&gt;Ubuntu&lt;/b&gt;&amp;nbsp;prova a riconnettersi, se tutti i parametri sono impostati, nella barra vedremo questa icona:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgP4PlvfxvkDHknyCmEz_S_Psp4OkCDnstS1ytR3R5C6KtUucS3u5Sl2cEFen14qqCBlXRfREG4ihU5Ng6XdCxFqMWr8aMqZikxRx0_AaSvrv14ll7yo-vpxJVuq-kMvTBX_6OrhXI-XA0/s1600/27.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgP4PlvfxvkDHknyCmEz_S_Psp4OkCDnstS1ytR3R5C6KtUucS3u5Sl2cEFen14qqCBlXRfREG4ihU5Ng6XdCxFqMWr8aMqZikxRx0_AaSvrv14ll7yo-vpxJVuq-kMvTBX_6OrhXI-XA0/s1600/27.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Adesso possiamo collegarci ad internet, clicchiamo sull&#39;icona di installazione di &lt;b&gt;Ubuntu&lt;/b&gt;:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhlyZ2gyMnWo14fPDvLn66UkH4B4XXLWdCcYF-sk8MT13k2qdfbVdFPSPrACEMdTYg_1yJWninIeLdmdj3Kl1BNCCyB9JJm3h7gADuvFCYFK0Ng4UQM1bYBjD-WJ6Ms6Xf9cCyEp7x7TE/s1600/28.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhlyZ2gyMnWo14fPDvLn66UkH4B4XXLWdCcYF-sk8MT13k2qdfbVdFPSPrACEMdTYg_1yJWninIeLdmdj3Kl1BNCCyB9JJm3h7gADuvFCYFK0Ng4UQM1bYBjD-WJ6Ms6Xf9cCyEp7x7TE/s1600/28.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Con questo, si conclude questo tutorial su come creare una macchina virtuale con &lt;b&gt;Hyper-v&lt;/b&gt;. Presto altre implementazioni!&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://informaticasemplice.blogspot.com/feeds/6121358722049830373/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://informaticasemplice.blogspot.com/2013/07/windows-8-creare-una-macchina-virtuale.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1358727525610408775/posts/default/6121358722049830373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1358727525610408775/posts/default/6121358722049830373'/><link rel='alternate' type='text/html' href='http://informaticasemplice.blogspot.com/2013/07/windows-8-creare-una-macchina-virtuale.html' title='Windows 8 - Creare una macchina virtuale con Hyper-v'/><author><name>Niccolò Petrocchi</name><uri>http://www.blogger.com/profile/01057098047235180688</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXP-2FeZBfcSS_Aecw61FIRRtxw6tPcWSga29dp1Qyu6JrjWNskXtKaufzfCxrI21gEiPqtH7uQMyoEORy3llTRFLJgiOZlFZ6p2z8cQPrBVQe0eNQQSY5eavYL0vZpAQCyukBStCMVt4/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1358727525610408775.post-3617644289711737858</id><published>2013-05-22T06:51:00.003-07:00</published><updated>2013-05-22T06:51:23.054-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="giochi"/><category scheme="http://www.blogger.com/atom/ns#" term="html5"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="phone"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="windows 8"/><category scheme="http://www.blogger.com/atom/ns#" term="windows phone 8"/><title type='text'>Animare un&#39;immagine PNG con Javascript</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
Oggi voglio spiegarvi come animare un file &lt;b&gt;PNG&lt;/b&gt;, con all&#39;interno una sequenza di immagini, tramite &lt;b&gt;Javascript&lt;/b&gt; in tre diversi contesti:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;b&gt;Web&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Windows 8&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Windows Phone&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;
Prima di iniziare, bisogna procurarci l&#39;immagine da animare, io ne creerò una con &lt;b&gt;GIMP&lt;/b&gt;:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCPVW6sAPWsBSx-h9n1Pgg4RpcTySUkl-GRRnxwCwBd0MCjIuLmfu4lfSqaRwi4Aua6PFwq90-oNVp6kZ5g18NUzu_coo1TMn40X1O5yAKz36J7LCeolDcREAFY9up9DKGhB_4BKBZc2k/s1600/74.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCPVW6sAPWsBSx-h9n1Pgg4RpcTySUkl-GRRnxwCwBd0MCjIuLmfu4lfSqaRwi4Aua6PFwq90-oNVp6kZ5g18NUzu_coo1TMn40X1O5yAKz36J7LCeolDcREAFY9up9DKGhB_4BKBZc2k/s1600/74.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h3&gt;
WEB&lt;/h3&gt;
&lt;hr /&gt;
&lt;div class=&quot;&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Per la prova web creiamo una cartella in una qualsiasi posizione, all&#39;interno mettiamo la nostra immagine, un nuovo file &lt;b&gt;style.css&lt;/b&gt;, un file &lt;b&gt;anim.js&lt;/b&gt;&amp;nbsp;e&amp;nbsp;un file &lt;b&gt;index.html&lt;/b&gt;. Apriamo &lt;b&gt;style.css&lt;/b&gt;&amp;nbsp;ed inseriamo le seguenti righe:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggDJD2LRZHEZitrmKkjr9PNbpiNkR2sgTljr33aYXM5_QTicFXJsCY56ORWP_2gpmPdi-Di4MfaUsWgNLpuRKSrQwv7984y1YdslrtAQf8xI3pWYhePDu3WxI9KGT63fufo3x70zB5HY0/s1600/75.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggDJD2LRZHEZitrmKkjr9PNbpiNkR2sgTljr33aYXM5_QTicFXJsCY56ORWP_2gpmPdi-Di4MfaUsWgNLpuRKSrQwv7984y1YdslrtAQf8xI3pWYhePDu3WxI9KGT63fufo3x70zB5HY0/s1600/75.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione&lt;/b&gt;: Creiamo un nuovo stile per l&#39;elemento &lt;b&gt;square&lt;/b&gt; di &lt;b&gt;altezza&lt;/b&gt; e &lt;b&gt;larghezza 40px&lt;/b&gt; con immagine di sfondo &lt;b&gt;square.png&lt;/b&gt; e senza ripetizione.&lt;/blockquote&gt;
Apriamo il file &lt;b&gt;anim.js&lt;/b&gt;&amp;nbsp;ed inseriamo:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvGyseHmNkHUPUjYya-Yxwp6COUu4KSDFUZCI9298p_v8r6PZzsBnK-rPLM2Ju9Cs16gpVKekzsI-mn3WKg93K3Mx-3kZF6bw7rHznia0znbeB2zMFpKRo2fHct3MedB6r4TM34BVpUSk/s1600/76.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvGyseHmNkHUPUjYya-Yxwp6COUu4KSDFUZCI9298p_v8r6PZzsBnK-rPLM2Ju9Cs16gpVKekzsI-mn3WKg93K3Mx-3kZF6bw7rHznia0znbeB2zMFpKRo2fHct3MedB6r4TM34BVpUSk/s1600/76.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione&lt;/b&gt;: Creiamo una funzione che genera un oggetto &lt;b&gt;Square&lt;/b&gt;&amp;nbsp;con le proprietà descritte.&lt;/blockquote&gt;
Infine apriamo il file &lt;b&gt;index.html&lt;/b&gt;:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwowa6Ga0qw2rrErECGmoHPWYeP-fL9T-1Im1fp1vPKH7aMBUfmxQ-t9tYJ51j8Irb8BrofdlQcoxlsi9RTpe-bFDyuUFTsu9wKuj_GAak_cANPEUCXajjwNu3WHo2iYQnXgEu3ioU0HE/s1600/77.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;215&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwowa6Ga0qw2rrErECGmoHPWYeP-fL9T-1Im1fp1vPKH7aMBUfmxQ-t9tYJ51j8Irb8BrofdlQcoxlsi9RTpe-bFDyuUFTsu9wKuj_GAak_cANPEUCXajjwNu3WHo2iYQnXgEu3ioU0HE/s400/77.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione&lt;/b&gt;: Creiamo un oggetto &lt;b&gt;square&lt;/b&gt;&amp;nbsp;con &lt;b&gt;40px di altezza&lt;/b&gt; e &lt;b&gt;40px di larghezza&lt;/b&gt;, &lt;b&gt;8 frames&lt;/b&gt;, e il &lt;b&gt;nome&lt;/b&gt; dell&#39;elemento &lt;b&gt;html&lt;/b&gt; nel quale andare a disegnare. La funzione &lt;b&gt;scroll&lt;/b&gt;&amp;nbsp;si occupa di scorrere l&#39;immagine di sfondo dell&#39;elemento &lt;b&gt;html&lt;/b&gt; e di alzarla di &lt;b&gt;40px&lt;/b&gt; finché non arriva in fondo, per ricominciare da capo. La funzione &lt;b&gt;init&lt;/b&gt;&amp;nbsp;effettua una prima animazione, poi setta un &lt;b&gt;timer &lt;/b&gt;che esegue la &lt;b&gt;scroll&lt;/b&gt;&amp;nbsp;ogni &lt;b&gt;100 millisecondi&lt;/b&gt;.&lt;/blockquote&gt;
Adesso clicchiamo due volte sul file &lt;b&gt;index.html&lt;/b&gt;&amp;nbsp;per vederne gli effetti.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Piaciuto?&lt;/b&gt;&lt;/blockquote&gt;
&lt;h3&gt;
WINDOWS 8&lt;/h3&gt;
&lt;hr /&gt;
Per la prova in Windows 8, non facciamo altro che creare un nuovo progetto &lt;b&gt;HTML5/Javascript&lt;/b&gt;&amp;nbsp;da &lt;b&gt;Visual Studio&lt;/b&gt;, importare l&#39;immagine e il file &lt;b&gt;anim.js&lt;/b&gt;&amp;nbsp;nel progetto, modificare il file &lt;b&gt;default.css&lt;/b&gt;&amp;nbsp;aggiungendo le righe del file &lt;b&gt;style.css&lt;/b&gt;&amp;nbsp;e modificare il file &lt;b&gt;default.html&lt;/b&gt;&amp;nbsp;aggiungendo le righe del file &lt;b&gt;index.html&lt;/b&gt;.&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPRdp2hROylObe_7jh7rWzLLVzbVLVLYsNC4gTlDuqkuQpU5st7zdeEupDNTXkdRMPEA7lMirDQGy7Dqh8s6NOzzkNJgw56ubUiIJwmV175CWU0A0NQfkAZSKXelQLK6DG9uXqUzXwT60/s1600/78.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPRdp2hROylObe_7jh7rWzLLVzbVLVLYsNC4gTlDuqkuQpU5st7zdeEupDNTXkdRMPEA7lMirDQGy7Dqh8s6NOzzkNJgw56ubUiIJwmV175CWU0A0NQfkAZSKXelQLK6DG9uXqUzXwT60/s1600/78.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Progetto completo con le importazioni&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlL2NOngcjqghyA0sr956JIRRp8SetYh39fGWV5s9qxgl2PVFEUOMsn1iabAc9jRA9S6WlIc_x9N9xB9p5BgVJXd88osEFS1okBkxAbafnLyZ4KVMCqownPFX9j6ozCqKOp9FQZt9qOlE/s1600/79.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlL2NOngcjqghyA0sr956JIRRp8SetYh39fGWV5s9qxgl2PVFEUOMsn1iabAc9jRA9S6WlIc_x9N9xB9p5BgVJXd88osEFS1okBkxAbafnLyZ4KVMCqownPFX9j6ozCqKOp9FQZt9qOlE/s1600/79.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;default.css modificato&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS-S05thhrV7pVZ_2TzYISng0EOPeDsubloGO_Sm-K43lr7UpNGUFuVSDlqKTDqWLhhyPxbIkqrV7VAzms9wDkL9OSecgr55Ri4jTVOB0u8eBwjvB0WCa-FPCs95vNf_YyLQUkdaBd8XE/s1600/80.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;281&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhS-S05thhrV7pVZ_2TzYISng0EOPeDsubloGO_Sm-K43lr7UpNGUFuVSDlqKTDqWLhhyPxbIkqrV7VAzms9wDkL9OSecgr55Ri4jTVOB0u8eBwjvB0WCa-FPCs95vNf_YyLQUkdaBd8XE/s400/80.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;default.html modificato&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
Eseguiamolo per ottenere lo stesso risultato della pagina web.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;
WINDOWS PHONE 8&lt;/h3&gt;
&lt;hr /&gt;
Creiamo un progetto &lt;b&gt;HTML5/Javascript&lt;/b&gt; per &lt;b&gt;Windows Phone 8&lt;/b&gt;&amp;nbsp;da &lt;b&gt;Visual Studio&lt;/b&gt;, consiglio di utilizzare quello creato tramite questi due articoli:&lt;div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;http://informaticasemplice.blogspot.it/2013/05/windows-phone-8-e-javascript-parte-1.html&quot; target=&quot;_blank&quot;&gt;Windows Phone 8 e javascript parte 1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://informaticasemplice.blogspot.it/2013/05/windows-phone-8-e-javascript-parte-2.html&quot; target=&quot;_blank&quot;&gt;Windows Phone 8 e javascript parte 2&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
Creiamo la cartella &lt;b&gt;images&lt;/b&gt;, importiamo l&#39;immagine del quadrato, modifichiamo il file &lt;b&gt;default.css&lt;/b&gt;, &lt;b&gt;default.html &lt;/b&gt;e &lt;b&gt;default.js&lt;/b&gt;.&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4AIV38SSgucEaqlKbcfyfuX13Wobu3rPSb94arHqnH1l6NFIBzBGeqex78bXEh7pfWWTyHYeTP8Dl6vEJpxWIWiibzBxA7d6anVGRJ_nU3kg0FA0KNfJnJJb8fUMfuRsi2hwuUOIC_J8/s1600/81.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4AIV38SSgucEaqlKbcfyfuX13Wobu3rPSb94arHqnH1l6NFIBzBGeqex78bXEh7pfWWTyHYeTP8Dl6vEJpxWIWiibzBxA7d6anVGRJ_nU3kg0FA0KNfJnJJb8fUMfuRsi2hwuUOIC_J8/s1600/81.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Progetto creato con le importazioni corrette&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiv4hjJthqxA07KFU7pjpsussclSBmSerdU6LMXQ3lwEE5X23a8BRSaEmbMuRVgH1r5x5RpxMbF-vZOaKaf6suxAxKzIbgu6zZ4o6QPMQgwwY1MayRpbr40pe_RJTqJZfdwUxKh3op5G4Q/s1600/82.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiv4hjJthqxA07KFU7pjpsussclSBmSerdU6LMXQ3lwEE5X23a8BRSaEmbMuRVgH1r5x5RpxMbF-vZOaKaf6suxAxKzIbgu6zZ4o6QPMQgwwY1MayRpbr40pe_RJTqJZfdwUxKh3op5G4Q/s1600/82.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;default.css modificato correttamente&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVuZb0GcZ4AwQA0a6gBK9Ka0Z4xv17xehnN-a_GhwaSEokXBw7p6B7unp1rughYsKoisaHYeTfbPF3D9oojzytBDihf1UnSlrxmvLTeSL0qfejQLYZiK9R1QIqkPXEnRMyEUhuO3xk3Pc/s1600/83.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVuZb0GcZ4AwQA0a6gBK9Ka0Z4xv17xehnN-a_GhwaSEokXBw7p6B7unp1rughYsKoisaHYeTfbPF3D9oojzytBDihf1UnSlrxmvLTeSL0qfejQLYZiK9R1QIqkPXEnRMyEUhuO3xk3Pc/s1600/83.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;default.js modificato correttamente&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj93oUrttbCltAHH_2Ui2Kiu2EUuMi2ld6UpEI-Mp7FxZiuxgpkQdq7PHMYF9M4DxM0JcxenoAP0US_UN4EV8ohp3Jm5ib6aTIDhhjSOgmB0sZpLSAUHHRpHCu1qsNvcac5nMPsvhRI1ic/s1600/84.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;281&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj93oUrttbCltAHH_2Ui2Kiu2EUuMi2ld6UpEI-Mp7FxZiuxgpkQdq7PHMYF9M4DxM0JcxenoAP0US_UN4EV8ohp3Jm5ib6aTIDhhjSOgmB0sZpLSAUHHRpHCu1qsNvcac5nMPsvhRI1ic/s400/84.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;default.html modificato correttamente&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
Eseguiamo.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Presto molte altre implementazioni di questo tipo di codice, anche per la creazione di Spitesheet per il motore grafico &lt;a href=&quot;http://informaticasemplice.blogspot.it/2013/05/giochi-per-windows-pratica-su-windows.html&quot; target=&quot;_blank&quot;&gt;qui descritto&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://informaticasemplice.blogspot.com/feeds/3617644289711737858/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://informaticasemplice.blogspot.com/2013/05/animare-unimmagine-png-con-javascript.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1358727525610408775/posts/default/3617644289711737858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1358727525610408775/posts/default/3617644289711737858'/><link rel='alternate' type='text/html' href='http://informaticasemplice.blogspot.com/2013/05/animare-unimmagine-png-con-javascript.html' title='Animare un&#39;immagine PNG con Javascript'/><author><name>Niccolò Petrocchi</name><uri>http://www.blogger.com/profile/01057098047235180688</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCPVW6sAPWsBSx-h9n1Pgg4RpcTySUkl-GRRnxwCwBd0MCjIuLmfu4lfSqaRwi4Aua6PFwq90-oNVp6kZ5g18NUzu_coo1TMn40X1O5yAKz36J7LCeolDcREAFY9up9DKGhB_4BKBZc2k/s72-c/74.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1358727525610408775.post-7968072479331669116</id><published>2013-05-16T01:11:00.001-07:00</published><updated>2013-05-16T01:20:17.494-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="html5"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="windows 8"/><title type='text'>Windows 8 - Creare uno slider JQuery-UI senza l&#39;utilizzo di tale libreria con HTML5/Javascript</title><content type='html'>In questi giorni mi sono trovato a risolvere un problema di compatibilità tra &lt;b&gt;JQuery 2.0&lt;/b&gt;, &lt;b&gt;JQuery-UI 1.10.3&lt;/b&gt;&amp;nbsp;e &lt;b&gt;Windows 8&lt;/b&gt;&amp;nbsp;per la creazione di uno &lt;b&gt;Slider&lt;/b&gt;, oggi voglio pubblicare la mia soluzione di modo che spero di aiutare qualcun&#39;altro che potrebbe trovarsi in questa spiacevole situazione.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Iniziamo creando un progetto &lt;b&gt;Windows Store&lt;/b&gt;&amp;nbsp;con &lt;b&gt;HTML5/Javascript&lt;/b&gt;, poi apriamo il &lt;b&gt;Solution Explorer&lt;/b&gt;&amp;nbsp;ed apriamo il file &lt;b&gt;default.html&lt;/b&gt;&amp;nbsp;modificandolo in questo modo:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtmy8Tc53LXWqhGWTKH5HF06eR2l16emjf2kBbwFQDY5EVrJCNrcp2Sq23BWs-tuS1bdzS85gEWi6BBXi6Ppyf5zOrnPwj5c7GfJJ15EkFgD4Q7kVGGzASrVk1nTY5br_aZ4otO2tFpzg/s1600/70.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;169&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtmy8Tc53LXWqhGWTKH5HF06eR2l16emjf2kBbwFQDY5EVrJCNrcp2Sq23BWs-tuS1bdzS85gEWi6BBXi6Ppyf5zOrnPwj5c7GfJJ15EkFgD4Q7kVGGzASrVk1nTY5br_aZ4otO2tFpzg/s400/70.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione:&lt;/b&gt;&amp;nbsp;Nel &lt;b&gt;body&lt;/b&gt;&amp;nbsp;inseriamo un &lt;b&gt;input&lt;/b&gt;&amp;nbsp;di &lt;b&gt;type=range&lt;/b&gt;&amp;nbsp;che ci permetterà di creare lo &lt;b&gt;slider&lt;/b&gt;, gli impostiamo un &lt;b&gt;id&lt;/b&gt;&amp;nbsp;per poterlo recuperare da &lt;b&gt;js&lt;/b&gt;&amp;nbsp;ed assegnarli uno &lt;b&gt;style&lt;/b&gt;&amp;nbsp;nel &lt;b&gt;css&lt;/b&gt;&amp;nbsp;ed infine alcuni &lt;b&gt;attributi&lt;/b&gt;:&lt;/blockquote&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;value&lt;/b&gt;: è il valore iniziale dello &lt;b&gt;slider&lt;/b&gt;, non può essere minore&amp;nbsp;dell&#39;&lt;b&gt;attributo&lt;/b&gt;&amp;nbsp;&lt;b&gt;min&lt;/b&gt;;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;min&lt;/b&gt;: è il valore più piccolo che lo &lt;b&gt;slider&lt;/b&gt;&amp;nbsp;può assumere;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;max&lt;/b&gt;: è il valore più grande che lo &lt;b&gt;slider&lt;/b&gt;&amp;nbsp;può assumere;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;step&lt;/b&gt;: è il grado di spostamento della barra, cioè di quanto va incrementata o decrementata quando un utente ne cambia il valore;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;onchage&lt;/b&gt;: è l&#39;&lt;b&gt;handler&lt;/b&gt;&amp;nbsp;che si occupa di gestire il cambiamento del valore dello &lt;b&gt;slider&lt;/b&gt;.&lt;/li&gt;
&lt;/ul&gt;
Ora apriamo il file &lt;b&gt;default.js&lt;/b&gt;&amp;nbsp;ed aggiungiamo la seguente funzione:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3eJXSlDYuTB7jC5-KAXQStKmJs1vWWdZWUX_gctDkyRzpZVnpu0QT7Us1UTH3hZTgJNp2yC38GPB2H_cxuQweRaA6ObiSES_UpyC_EORE28HTXh0VBxNb9KBC6rf-KA1fGOfjFIxSAFo/s1600/71.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3eJXSlDYuTB7jC5-KAXQStKmJs1vWWdZWUX_gctDkyRzpZVnpu0QT7Us1UTH3hZTgJNp2yC38GPB2H_cxuQweRaA6ObiSES_UpyC_EORE28HTXh0VBxNb9KBC6rf-KA1fGOfjFIxSAFo/s1600/71.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione:&lt;/b&gt;&amp;nbsp;Ogni volta che l&#39;utente incrementa o decrementa lo &lt;b&gt;slider&lt;/b&gt;, controlliamo se abbiamo già creato un &lt;b&gt;timer&lt;/b&gt;, se sì lo eliminiamo, altrimenti ne creiamo uno nuovo che eseguirà &lt;b&gt;onSliderApply&lt;/b&gt; dopo 250 millisecondi.&lt;/blockquote&gt;
Sempre nel &lt;b&gt;default.js&lt;/b&gt;&amp;nbsp;aggiungiamo la &lt;b&gt;onSliderApply&lt;/b&gt;:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzmGzsJ08ZZZ2gPKCn82PGMRXwLeCnCWLnZ83rd8-BawYzo-aIFVK-p6fGDDiQ9dMVAaEsw1VE1m1aNCmHLhyD3k9cVt0oHKCiSBqHHTW_m-aBCEZ20pNTE5tN1p_SmKVBwculX1GzhI8/s1600/72.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;40&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzmGzsJ08ZZZ2gPKCn82PGMRXwLeCnCWLnZ83rd8-BawYzo-aIFVK-p6fGDDiQ9dMVAaEsw1VE1m1aNCmHLhyD3k9cVt0oHKCiSBqHHTW_m-aBCEZ20pNTE5tN1p_SmKVBwculX1GzhI8/s400/72.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione:&lt;/b&gt;&amp;nbsp;Visualizziamo un messaggio con il valore assunto dallo &lt;b&gt;slider &lt;/b&gt;ed elimino il &lt;b&gt;timer&lt;/b&gt;&amp;nbsp;per evitare che tale messaggio venga visualizzato più volte.&lt;/blockquote&gt;
Infine apriamo il file &lt;b&gt;default.css&lt;/b&gt;&amp;nbsp;ed aggiungiamo uno &lt;b&gt;style&lt;/b&gt;&amp;nbsp;allo &lt;b&gt;slider&lt;/b&gt;:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2y_xcGUDEJ_Kvat5JErX8VKHdHDV-mJoQgihuoGxBrKFGHtFR6NPSYqvukgzkwWtEuI7sHdQSksczT1T2OaqcWaLjpxQxmgRXVntJ06TjebYiDpGrc3bsQ2ZzhHlbIDezqT_BXFOrYyo/s1600/73.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2y_xcGUDEJ_Kvat5JErX8VKHdHDV-mJoQgihuoGxBrKFGHtFR6NPSYqvukgzkwWtEuI7sHdQSksczT1T2OaqcWaLjpxQxmgRXVntJ06TjebYiDpGrc3bsQ2ZzhHlbIDezqT_BXFOrYyo/s1600/73.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione:&lt;/b&gt;&amp;nbsp;Nello&amp;nbsp;&lt;b&gt;#slider&lt;/b&gt;&amp;nbsp;impostiamo la larghezza e la posizione all&#39;interno della finestra. Nello &lt;b&gt;#slider::-ms-fill-lower&lt;/b&gt;&amp;nbsp;invece cambiamo il colore della barra.&lt;/blockquote&gt;
Salviamo ed eseguiamo.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Piaciuto?&lt;/b&gt;&lt;/blockquote&gt;
Con questa piccola tecnica abbiamo riprodotto lo stesso &lt;b&gt;slider&lt;/b&gt;&amp;nbsp;che ci viene fornito con &lt;b&gt;JQuery-UI&lt;/b&gt;, ma essendo tutto nativo, abbiamo eliminato i problemi di compatibilità.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://informaticasemplice.blogspot.com/feeds/7968072479331669116/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://informaticasemplice.blogspot.com/2013/05/windows-8-creare-uno-slider-jquery-ui.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1358727525610408775/posts/default/7968072479331669116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1358727525610408775/posts/default/7968072479331669116'/><link rel='alternate' type='text/html' href='http://informaticasemplice.blogspot.com/2013/05/windows-8-creare-uno-slider-jquery-ui.html' title='Windows 8 - Creare uno slider JQuery-UI senza l&#39;utilizzo di tale libreria con HTML5/Javascript'/><author><name>Niccolò Petrocchi</name><uri>http://www.blogger.com/profile/01057098047235180688</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtmy8Tc53LXWqhGWTKH5HF06eR2l16emjf2kBbwFQDY5EVrJCNrcp2Sq23BWs-tuS1bdzS85gEWi6BBXi6Ppyf5zOrnPwj5c7GfJJ15EkFgD4Q7kVGGzASrVk1nTY5br_aZ4otO2tFpzg/s72-c/70.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1358727525610408775.post-8567363585071388958</id><published>2013-05-14T00:09:00.000-07:00</published><updated>2013-05-16T00:42:32.233-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="html5"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="phone"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="windows phone 8"/><title type='text'>Windows Phone - leggere e scrivere file con HTML5/Javascript senza PhoneGap</title><content type='html'>Riprendiamo da questo&amp;nbsp;&lt;a href=&quot;http://informaticasemplice.blogspot.it/2013/05/windows-phone-leggere-file-con.html&quot; target=&quot;_blank&quot;&gt;articolo&lt;/a&gt;&amp;nbsp;parlando di come leggere e scrivere su un file(non Embedded Resource),&amp;nbsp;con &lt;b&gt;HTML5/Javascript&lt;/b&gt;.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt; Partiamo andando nel &lt;b&gt;Solution Explorer&lt;/b&gt;&amp;nbsp;ed aprendo il file &lt;b&gt;.cs&lt;/b&gt;&amp;nbsp;del secondo progetto creato:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk1QBJKgfe-TdEawF5M5JrSa3COgCRKLPJbZ5IpLE_VtGSUR28auGjJ1mfDO61YYO5xWPaBSBFj8opNKClUaU2Xih2PGcNgjcmYjtcO3IHE1c1bb4j9zIvN923KYs7SdsiffH4ykmQzAw/s1600/62.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk1QBJKgfe-TdEawF5M5JrSa3COgCRKLPJbZ5IpLE_VtGSUR28auGjJ1mfDO61YYO5xWPaBSBFj8opNKClUaU2Xih2PGcNgjcmYjtcO3IHE1c1bb4j9zIvN923KYs7SdsiffH4ykmQzAw/s1600/62.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
E Modifichiamo la nostra funzione&amp;nbsp;&lt;b&gt;ReadResourceAsync&lt;/b&gt;&amp;nbsp;in questo modo:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCjJhT11l44OZUiJVIbYyD2npDNwH1g2h8RTtmj3su-Y-pQx5sOTp5ikf6mv9FlOhYyvslEYFszCV6ZaHWf6heLkWyZe8scFftocUjMcBElmXNSTxLlUPFaqXQbkBH_idOnMiJ0hQrcKI/s1600/63.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCjJhT11l44OZUiJVIbYyD2npDNwH1g2h8RTtmj3su-Y-pQx5sOTp5ikf6mv9FlOhYyvslEYFszCV6ZaHWf6heLkWyZe8scFftocUjMcBElmXNSTxLlUPFaqXQbkBH_idOnMiJ0hQrcKI/s1600/63.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione:&lt;/b&gt;&amp;nbsp;Prendiamo il percorso di salvataggio per l&#39;applicazione corrente, controlliamo se il file esiste restituendone il contenuto, altrimenti restituiamo una stringa vuota.&lt;/blockquote&gt;
Ed aggiungiamo due nuove funzioni:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfw8ZEu9rdOd0e6JQSqJ-3C6PkDy3-GplHLzAkpLqBd-eOE_ZOLN4VIS_xXhLIJZVAEHUNXdV2DV5y7JVxLTXgkG4L-rPl6dGXoJ_3mkCWO4nZzMvHUuKO32DLfjMmzY4j80T0O53S4Xo/s1600/64.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;141&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfw8ZEu9rdOd0e6JQSqJ-3C6PkDy3-GplHLzAkpLqBd-eOE_ZOLN4VIS_xXhLIJZVAEHUNXdV2DV5y7JVxLTXgkG4L-rPl6dGXoJ_3mkCWO4nZzMvHUuKO32DLfjMmzY4j80T0O53S4Xo/s400/64.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione:&lt;/b&gt;&amp;nbsp;Recuperiamo il percorso di salvataggio per l&#39;applicazione corrente, apriamo o creiamo il file e ci scriviamo il contenuto.&lt;/blockquote&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvjfZjJA8BtGnf9sRMeSsmK9f7HF832mypMvJ8eJ5zPqpQd3DV12DZomFlRdQiiOrVV057kALgWGsGLACY9nsD-l70-FQC4Pw02xhEbCNtQ06QKP054PaUIB5H2_6WBX6uPd87LmbXXiI/s1600/65.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;36&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvjfZjJA8BtGnf9sRMeSsmK9f7HF832mypMvJ8eJ5zPqpQd3DV12DZomFlRdQiiOrVV057kALgWGsGLACY9nsD-l70-FQC4Pw02xhEbCNtQ06QKP054PaUIB5H2_6WBX6uPd87LmbXXiI/s400/65.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Torniamo nel &lt;b&gt;Solution Explorer&lt;/b&gt;&amp;nbsp;ed apriamo il file &lt;b&gt;default.css&lt;/b&gt;&amp;nbsp;aggiungendo queste righe:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIZZ_r_DbY5Tit9bLgqeVMPSPS6Pzx5gFZp_TWVAqgbkH27ONIyd5RLu7fWusnRi5treR7INiV98q3Hc0-xEyVrQHy4A3u2JcmrDgSEmuN56LFRLLw3DEHSyeIQ2VgJPQcKh0DU6sucDQ/s1600/66.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIZZ_r_DbY5Tit9bLgqeVMPSPS6Pzx5gFZp_TWVAqgbkH27ONIyd5RLu7fWusnRi5treR7INiV98q3Hc0-xEyVrQHy4A3u2JcmrDgSEmuN56LFRLLw3DEHSyeIQ2VgJPQcKh0DU6sucDQ/s1600/66.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione:&lt;/b&gt;&amp;nbsp;Servono per ingrandire la &lt;b&gt;viewport&lt;/b&gt;&amp;nbsp;dell&#39;applicazione ed eliminare l&#39;effetto di essere a navigare dentro un &lt;b&gt;webbrowser&lt;/b&gt;.&lt;/blockquote&gt;
Commentiamo la riga &lt;b&gt;-ms-touch-action: none;&lt;/b&gt;&lt;br /&gt;
Andiamo nel &lt;b&gt;Solution Explorer&lt;/b&gt;&amp;nbsp;ed apriamo il file &lt;b&gt;MainPage.xaml.cs&lt;/b&gt;:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjE-Ow9GjjU6Wqb6G-emaFGc_0Em7pIoEovi-RJYf8Cutb6npsfkmoPHiQMg5rq2r7cFM3nbKKDaJnTXCd46sVUkMrZO973fcOIKqUFXEVeTmQJ60Whf5gKXp7a_WoM_npBFyIhxeXNMgY/s1600/26.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjE-Ow9GjjU6Wqb6G-emaFGc_0Em7pIoEovi-RJYf8Cutb6npsfkmoPHiQMg5rq2r7cFM3nbKKDaJnTXCd46sVUkMrZO973fcOIKqUFXEVeTmQJ60Whf5gKXp7a_WoM_npBFyIhxeXNMgY/s1600/26.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
E modifichiamo la funzione &lt;b&gt;HTML_JS&lt;/b&gt;:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgr4HldCA3KErwVi6_u6zbY9AXuFD3MibijNUR-87BtB2Bd-X4pEWVaZM3gC8ZGCZ7xx5Y080aTcb931FDOpi05TYJ8FrxZDWPZEKTqzFA_F3lUoXxNz_gTfFZiYbVGSVwVcHkfKSn5rPE/s1600/67.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;182&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgr4HldCA3KErwVi6_u6zbY9AXuFD3MibijNUR-87BtB2Bd-X4pEWVaZM3gC8ZGCZ7xx5Y080aTcb931FDOpi05TYJ8FrxZDWPZEKTqzFA_F3lUoXxNz_gTfFZiYbVGSVwVcHkfKSn5rPE/s400/67.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione:&lt;/b&gt;&amp;nbsp;Controlliamo il tipo di operazione, se è una &lt;b&gt;Load&lt;/b&gt;,&amp;nbsp;proviamo a leggere il file &lt;b&gt;Prova.txt&lt;/b&gt;, se è una &lt;b&gt;Save&lt;/b&gt; proviamo a salvare il file &lt;b&gt;Prova.txt&lt;/b&gt;.&lt;/blockquote&gt;
Ora, dal &lt;b&gt;Solution Explorer&lt;/b&gt;, apriamo il file &lt;b&gt;default.js&lt;/b&gt;&amp;nbsp;ed aggiungiamo questa funzione:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsuGcViNZC3L0vrYRbNaqh5Mg-fgwfg4ajrlp2NtPLf9RS7ygja5O7HF9L1A86bnlWfgrf31k3GlvYaOG08EkRIC8zQQB1UeFx9If9e_ObC_nPp-iRTLLH7zzmUxV3i6NFks-gBcjdri0/s1600/68.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsuGcViNZC3L0vrYRbNaqh5Mg-fgwfg4ajrlp2NtPLf9RS7ygja5O7HF9L1A86bnlWfgrf31k3GlvYaOG08EkRIC8zQQB1UeFx9If9e_ObC_nPp-iRTLLH7zzmUxV3i6NFks-gBcjdri0/s1600/68.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione:&lt;/b&gt;&amp;nbsp;Restituisce il testo che abbiamo appena scritto.&lt;/blockquote&gt;
Infine apriamo il file &lt;b&gt;default.html&lt;/b&gt;, dal &lt;b&gt;Solution Explorer&lt;/b&gt;, e modifichiamolo in questo modo:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRDDtnW1roeY2ZAf7oOj7a-dYPKTzW3lhVhWdns9jm-QW4Ua09gNrK8uU3MaGzSOrbzGQUbll66aWfdTEwoY7Li37V_cnwa_Q7sGKR0kpgO2XFdzA7lMIpIZW_623dBT9540ZqXU8pc7o/s1600/69.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;127&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRDDtnW1roeY2ZAf7oOj7a-dYPKTzW3lhVhWdns9jm-QW4Ua09gNrK8uU3MaGzSOrbzGQUbll66aWfdTEwoY7Li37V_cnwa_Q7sGKR0kpgO2XFdzA7lMIpIZW_623dBT9540ZqXU8pc7o/s400/69.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione:&lt;/b&gt;&amp;nbsp;Creiamo una &lt;b&gt;textarea&lt;/b&gt;&amp;nbsp;che ci permette di inserire del nuovo testo ed un bottone &lt;b&gt;Salva&lt;/b&gt;&amp;nbsp;che ci permette il salvataggio all&#39;interno del file &lt;b&gt;Prova.txt&lt;/b&gt;&lt;/blockquote&gt;
Salviamo ed Eseguiamo.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Piaciuto?&lt;/b&gt;&lt;/blockquote&gt;
&lt;b&gt;Ricapitoliamo&lt;/b&gt;: La parte importante è:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;La stringa &lt;b&gt;Save~text~Prova.txt&lt;/b&gt;&amp;nbsp;che sono il Comando, l&#39;&lt;b&gt;id&lt;/b&gt; dell&#39;elemento dove recuperare il testo scritto ed il file dove andare a scrivere.&lt;/li&gt;
&lt;/ul&gt;
Se modifichiamo questa stringa, dovremmo andare assolutamente a modificare la funzione &lt;b&gt;HTML_JS&lt;/b&gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;string result=await PhoneClassLibrary1.Read.GetFileText(&quot;Prova.txt&quot;)&lt;/b&gt;&amp;nbsp;se modifichiamo il file da scrivere/leggere&lt;/li&gt;
&lt;li&gt;&lt;b&gt;string[] lines=e.Value.Split(&#39;~&#39;)&lt;/b&gt;&amp;nbsp;se modifichiamo il separatore&lt;/li&gt;
&lt;li&gt;&lt;b&gt;if(e.Value.Contains(&quot;Save&quot;))&lt;/b&gt;&amp;nbsp;se modifichiamo il comando per il salvataggio&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;Anche per oggi è tutto, presto nuove modifiche a questa libreria!&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://informaticasemplice.blogspot.com/feeds/8567363585071388958/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://informaticasemplice.blogspot.com/2013/05/windows-phone-leggere-e-scrivere-file.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1358727525610408775/posts/default/8567363585071388958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1358727525610408775/posts/default/8567363585071388958'/><link rel='alternate' type='text/html' href='http://informaticasemplice.blogspot.com/2013/05/windows-phone-leggere-e-scrivere-file.html' title='Windows Phone - leggere e scrivere file con HTML5/Javascript senza PhoneGap'/><author><name>Niccolò Petrocchi</name><uri>http://www.blogger.com/profile/01057098047235180688</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk1QBJKgfe-TdEawF5M5JrSa3COgCRKLPJbZ5IpLE_VtGSUR28auGjJ1mfDO61YYO5xWPaBSBFj8opNKClUaU2Xih2PGcNgjcmYjtcO3IHE1c1bb4j9zIvN923KYs7SdsiffH4ykmQzAw/s72-c/62.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1358727525610408775.post-395264514595018649</id><published>2013-05-08T01:50:00.000-07:00</published><updated>2013-05-13T23:17:37.742-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="html5"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="phone"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="windows phone 8"/><title type='text'>Windows Phone - leggere Embedded Resource con HTML5/Javascript senza PhoneGap</title><content type='html'>In questo articolo spiegherò come includere file in un progetto ed leggerli durante l&#39;esecuzione senza l&#39;utilizzo del &lt;b&gt;framework PhoneGap&lt;/b&gt;. Come ben sapete, &lt;b&gt;HTML&lt;/b&gt; e &lt;b&gt;Javascript&lt;/b&gt;, normalmente non hanno accesso alla modifica dei file sul computer dell&#39;utente,&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;in windows 8 sono state aggiunte un paio di funzioni che permettono questo, ma in windows phone?&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Per iniziare creiamo un progetto &lt;b&gt;windows phone 8&lt;/b&gt; con &lt;b&gt;HTML5/Javascript&lt;/b&gt;&amp;nbsp;(vanno benissimo i due articoli che ho scritto: &lt;a href=&quot;http://informaticasemplice.blogspot.it/2013/05/windows-phone-8-e-javascript-parte-1.html&quot; target=&quot;_blank&quot;&gt;post1&lt;/a&gt;&amp;nbsp;&lt;a href=&quot;http://informaticasemplice.blogspot.it/2013/05/windows-phone-8-e-javascript-parte-2.html&quot; target=&quot;_blank&quot;&gt;post2&lt;/a&gt;). Nel &lt;b&gt;Solution Explorer&lt;/b&gt;&amp;nbsp;apriamo il file &lt;b&gt;default.html&lt;/b&gt;&amp;nbsp;che si trova nella cartella &lt;b&gt;html&lt;/b&gt;&amp;nbsp;e aggiungiamo questa riga:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;lt;div id=&quot;text&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_sf44JRony5TuTVfupO9tWTN-ktD_upLJ-eGa0YmgKkd7xi4PSU_t8jk0dl-DrZzj8xezgyxdg_Jmk_8yeDasL97RdDdW6xu2ighZCXQEKSWZNjOuWnEoHtgAYddnKmKuwp-fJh5-FvY/s1600/44.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_sf44JRony5TuTVfupO9tWTN-ktD_upLJ-eGa0YmgKkd7xi4PSU_t8jk0dl-DrZzj8xezgyxdg_Jmk_8yeDasL97RdDdW6xu2ighZCXQEKSWZNjOuWnEoHtgAYddnKmKuwp-fJh5-FvY/s1600/44.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Adesso, torniamo al &lt;b&gt;Solution Explorer&lt;/b&gt;&amp;nbsp;ed clicchiamo con il tasto destro sulla soluzione del progetto:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjW-GyOapi3IPZ4FJhICddZnIfE3_BVAkS3tlKPh9oowm4WnZkFq2IqLvJbLOZKg-75T86D0LyWJbItEm1U9uG9_lrsUl6kfy92riCYD-TDVtDlx8N1jHebWCT96hhaiqZf6HNSVjS_idU/s1600/45.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;363&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjW-GyOapi3IPZ4FJhICddZnIfE3_BVAkS3tlKPh9oowm4WnZkFq2IqLvJbLOZKg-75T86D0LyWJbItEm1U9uG9_lrsUl6kfy92riCYD-TDVtDlx8N1jHebWCT96hhaiqZf6HNSVjS_idU/s400/45.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Andiamo su &lt;b&gt;Aggiungi&lt;/b&gt;&amp;nbsp;e clicchiamo su &lt;b&gt;Nuovo Progetto...&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnzYDt84X7eY1UO91A4kbE-xjVUmJWI538SyfD4k59k2eZU1I8loFhIJQQuYtQCigwRW5-hvfjKyO96y40t_-9oUTBGtBJyy03qXea0AmIABv9kzTg4mQXesNz_ULMdz6Y0Zx7k_qRrcg/s1600/46.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;257&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnzYDt84X7eY1UO91A4kbE-xjVUmJWI538SyfD4k59k2eZU1I8loFhIJQQuYtQCigwRW5-hvfjKyO96y40t_-9oUTBGtBJyy03qXea0AmIABv9kzTg4mQXesNz_ULMdz6Y0Zx7k_qRrcg/s400/46.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Nella nuova finestra andiamo su &lt;b&gt;Visual C# -&amp;gt; Windows Phone -&amp;gt; Windows Phone Class Library&lt;/b&gt;:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdJJZ2OUTLhFVTQaFFJqMnjn6EaXvc3egiUwsSn1gKhrSNAa_DzGUYzM-5mGESpwtGYEkYykokuOujwv7WdPD9aHn_WWq2eKMqLkLX8CGEsqb2WmdwW0tHgU_q-vlmzf2PRgT2mrsskUc/s1600/47.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;243&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdJJZ2OUTLhFVTQaFFJqMnjn6EaXvc3egiUwsSn1gKhrSNAa_DzGUYzM-5mGESpwtGYEkYykokuOujwv7WdPD9aHn_WWq2eKMqLkLX8CGEsqb2WmdwW0tHgU_q-vlmzf2PRgT2mrsskUc/s400/47.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Diamo un &lt;b&gt;Nome&lt;/b&gt;&amp;nbsp;e clicchiamo su &lt;b&gt;OK&lt;/b&gt;. In Questa finestra:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9sXH3Rumj1aoOrpwPf2SbrOxi-8ZjO3Lybs4ti71lJy8KCz2cMr_cAO-MmbmbZfTx0Ps6debuHWZFa3MNE_zXRE0NYr4A0UVne0ZcRNfi4IjEblgdP5nDDhYJmPctifDpX3KCKzd_6JY/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9sXH3Rumj1aoOrpwPf2SbrOxi-8ZjO3Lybs4ti71lJy8KCz2cMr_cAO-MmbmbZfTx0Ps6debuHWZFa3MNE_zXRE0NYr4A0UVne0ZcRNfi4IjEblgdP5nDDhYJmPctifDpX3KCKzd_6JY/s1600/3.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Clicchiamo su &lt;b&gt;OK&lt;/b&gt;. Attendiamo la fine della creazione del nuovo progetto, dopodiché, andiamo nel &lt;b&gt;Solution Explorer&lt;/b&gt;&amp;nbsp;e clicchiamo con il destro sul file &lt;b&gt;Class1.cs&lt;/b&gt;&amp;nbsp;nel nuovo progetto creato e &lt;b&gt;Rinominiamolo&lt;/b&gt;:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxLDobwz1VleZ9CEFKzTUY4nxak1qQktkpW-Ppx7pj6YGI7o84-EjSLTlEFdrxwma0fJFGF5Lte6jfXBp2kcq67c0dT7KCVJ4GAoscPA8e9hhZTG6MrRKfkef6M4xpMN0YZ4xK3xeaDIo/s1600/48.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxLDobwz1VleZ9CEFKzTUY4nxak1qQktkpW-Ppx7pj6YGI7o84-EjSLTlEFdrxwma0fJFGF5Lte6jfXBp2kcq67c0dT7KCVJ4GAoscPA8e9hhZTG6MrRKfkef6M4xpMN0YZ4xK3xeaDIo/s1600/48.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Scegliamo un nuovo nome, ad esempio &lt;b&gt;Read.cs&lt;/b&gt;, diamo &lt;b&gt;Invio&lt;/b&gt;&amp;nbsp;e rispondiamo &lt;b&gt;Si&lt;/b&gt;&amp;nbsp;alla finestra che si presenta, infine lo apriamo. La prima modifica che andremo a fare è aggiungere un &lt;b&gt;sealed&lt;/b&gt; alla classe:&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiua3e3aLNf326nEAyw66ryWpHhHsSaycmf0C6yYlh6vJlhJVbjLr8Y6MlfMXsG_aMDlWb6DxQXDkSz2yvLdlKBpr0R_uzbSp5dI_9HmsW7XCX2MKIbn0QtgzjHdEWwtIcHKLlzQa2bIow/s1600/49.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiua3e3aLNf326nEAyw66ryWpHhHsSaycmf0C6yYlh6vJlhJVbjLr8Y6MlfMXsG_aMDlWb6DxQXDkSz2yvLdlKBpr0R_uzbSp5dI_9HmsW7XCX2MKIbn0QtgzjHdEWwtIcHKLlzQa2bIow/s1600/49.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Con questa modifica, evitiamo che la classe venga ereditata&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Ora aggiungiamo un paio di &lt;b&gt;using&lt;/b&gt;:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;using System.IO;&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;using System.Reflection;&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;using System.Threading.Tasks;&lt;/b&gt;&lt;/blockquote&gt;
&lt;/blockquote&gt;
ed creiamo questa funzione:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;static async Task&amp;lt;string&amp;gt; ReadResourceAsync(Assembly assembly, string resource)&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;{&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp;string xml;&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp;using (var stream = assembly.GetManifestResourceStream(resource))&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp;{&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; using (var reader = new StreamReader(stream))&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xml = await reader.ReadToEndAsync();&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp;}&lt;/b&gt;&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp;return xml;&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;}&lt;/b&gt;&lt;/blockquote&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgG9dl2xn5AIgiGQ60AVp_9CFi-9Q1T4hyTKWdtJcGcH9Hz2GoJcSJdPpRcbatH-VXUakNehtGqK85LY5P9IKH5drIVmpcngXhY5w0zpIVMJNDPPFJlMvsNjPAxhyphenhyphenfte5wef-hmdYFaqG8/s1600/50.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;336&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgG9dl2xn5AIgiGQ60AVp_9CFi-9Q1T4hyTKWdtJcGcH9Hz2GoJcSJdPpRcbatH-VXUakNehtGqK85LY5P9IKH5drIVmpcngXhY5w0zpIVMJNDPPFJlMvsNjPAxhyphenhyphenfte5wef-hmdYFaqG8/s400/50.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Questa funzione serve ad leggere un file dalle risorse dell&#39;applicazione. Adesso vediamo come richiamarla, aggiungiamo un&#39;altra &lt;b&gt;using&lt;/b&gt;:&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;using Windows.Foundation;&lt;/b&gt;&lt;/blockquote&gt;
e questa nuova funzione:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;public static IAsyncOperation&amp;lt;string&amp;gt; GetFileText(string fileName)&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;{&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp;return (ReadResourceAsync(typeof(Read).GetTypeInfo().Assembly,&lt;/b&gt;&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fileName)).AsAsyncOperation&amp;lt;string&amp;gt;();&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;}&lt;/b&gt;&lt;/blockquote&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjrgPS81nVjFYeszI_PTnBn7PWUqjGY9zjOImLGVt3gWSas6ymJ0razJ4qqly6s282S0_Gl9rLFFZFHAWqo_yC1KmJxmtR35t3Rdn7F_7aqdaz_dAVI5UdXUYsXMumJzegpnHfIQvFItM/s1600/51.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;265&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjrgPS81nVjFYeszI_PTnBn7PWUqjGY9zjOImLGVt3gWSas6ymJ0razJ4qqly6s282S0_Gl9rLFFZFHAWqo_yC1KmJxmtR35t3Rdn7F_7aqdaz_dAVI5UdXUYsXMumJzegpnHfIQvFItM/s400/51.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
A livello di codice &lt;b&gt;C#&lt;/b&gt;, abbiamo terminato, adesso aggiungiamo un file che andremo a leggere; va benissimo un qualsiasi file di testo. Per inserirlo andiamo nel &lt;b&gt;Solution Explorer&lt;/b&gt;&amp;nbsp;e sempre dentro a questo nuovo progetto clicchiamo con il destro ed andiamo su &lt;b&gt;Aggiungi -&amp;gt; Nuova cartella&lt;/b&gt;:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-7yheO6PC9p7yqRRtyAilxn2dhCA_5UbuFWziMK3YqOuR7J_7Obuk31yRHZrWNhV4e2Q_HHng7EuwVe-ubuHvp2m2cnRa_QUddthlB_dPsVusnAdgK8LfyclYf2VkFbUyEsUqCfmLDLw/s1600/52.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;325&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-7yheO6PC9p7yqRRtyAilxn2dhCA_5UbuFWziMK3YqOuR7J_7Obuk31yRHZrWNhV4e2Q_HHng7EuwVe-ubuHvp2m2cnRa_QUddthlB_dPsVusnAdgK8LfyclYf2VkFbUyEsUqCfmLDLw/s400/52.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Chiamiamola &lt;b&gt;Files&lt;/b&gt;. Clicchiamo con il destro su questa cartella ed andiamo su &lt;b&gt;Aggiungi&lt;/b&gt;;&amp;nbsp;adesso, se vogliamo inserire un nuovo elemento clicchiamo su &lt;b&gt;Nuovo elemento...&lt;/b&gt;, altrimenti clicchiamo su &lt;b&gt;Elemento esistente...&lt;/b&gt;, noi creeremo un nuovo elemento, un file txt che chiameremo &lt;b&gt;Prova.txt&lt;/b&gt;&amp;nbsp;ed ci inseriremo questo testo:&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans; font-size: 11px; line-height: 14px; text-align: justify;&quot;&gt;&lt;b&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/b&gt;&lt;/span&gt;&lt;/blockquote&gt;
Andiamo nel &lt;b&gt;Solution Explorer&lt;/b&gt;&amp;nbsp;e clicchiamo con il destro sul nuovo file &lt;b&gt;txt&lt;/b&gt;&amp;nbsp;scegliento &lt;b&gt;Proprietà&lt;/b&gt;:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUU90Bn9OPhFNzu0dzGKUrzrD8x1t3rID4OyBlOOdO6M-6dqV9zjTJ5ALSvYP5714FGBY2-BDnwVtNxNUr8wliG-7N5STHWV4cqxBob6_hXV_wUHbTkk2VAT6yDDpWU6YmmMRHHZYQW7I/s1600/53.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUU90Bn9OPhFNzu0dzGKUrzrD8x1t3rID4OyBlOOdO6M-6dqV9zjTJ5ALSvYP5714FGBY2-BDnwVtNxNUr8wliG-7N5STHWV4cqxBob6_hXV_wUHbTkk2VAT6yDDpWU6YmmMRHHZYQW7I/s1600/53.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
E cambiamo la &lt;b&gt;Build Action &lt;/b&gt;&amp;nbsp;in &lt;b&gt;Embedded&amp;nbsp;Resource&lt;/b&gt;:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1A5B_BjJGdsL0wNlF8hs0bUQtRmRj_K9KUqmorsgq-OIEACKrvW0MqFjp5VaFil-FOaKypb3plpaJkwbUxOUue3L3H3yS1WLTa4eY-7TmMYAs59bLl0TV7B-S-AZWYN8gHAzLWrmd3eM/s1600/54.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1A5B_BjJGdsL0wNlF8hs0bUQtRmRj_K9KUqmorsgq-OIEACKrvW0MqFjp5VaFil-FOaKypb3plpaJkwbUxOUue3L3H3yS1WLTa4eY-7TmMYAs59bLl0TV7B-S-AZWYN8gHAzLWrmd3eM/s1600/54.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Sempre nel &lt;b&gt;Solution Explorer&lt;/b&gt;&amp;nbsp;clicchiamo con il destro sul progetto principale scegliendo &lt;b&gt;Aggiungi referenza...&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9Ylyq0PGCl5i11BQbR3o0VL-Se5CnArgg751NzDRVvFsh0sf_sypvQvUqqFVXvKzqLpUHQKnKp1xDNh-UJX2asBP3I1qqOe56PTO22TKXtACwbv2BP7BTJy2myRpZe2_3IpXJ6BoNkiY/s1600/55.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9Ylyq0PGCl5i11BQbR3o0VL-Se5CnArgg751NzDRVvFsh0sf_sypvQvUqqFVXvKzqLpUHQKnKp1xDNh-UJX2asBP3I1qqOe56PTO22TKXtACwbv2BP7BTJy2myRpZe2_3IpXJ6BoNkiY/s1600/55.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Nella nuova finestra selezioniamo &lt;b&gt;Soluzione -&amp;gt; Progetto&lt;/b&gt;&amp;nbsp;e spuntiamo dall&#39;elenco il progetto che abbiamo creato ed infine clicchiamo su &lt;b&gt;OK&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLzr25S13eZaUIAkfUjA4HCH2sxzrXv_fwrQDYfAtwRUCwkkdXTflXhoCI_gBvfSUe3OiGxnYUg5lwc647NjRXAZRODJGwqELq6J-7Cjgz-LhriiD-Ql76AzW_xq81Sj0lTnUxkEF9A6Q/s1600/56.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;276&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLzr25S13eZaUIAkfUjA4HCH2sxzrXv_fwrQDYfAtwRUCwkkdXTflXhoCI_gBvfSUe3OiGxnYUg5lwc647NjRXAZRODJGwqELq6J-7Cjgz-LhriiD-Ql76AzW_xq81Sj0lTnUxkEF9A6Q/s400/56.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Andiamo nel &lt;b&gt;Solution Explorer&lt;/b&gt;&amp;nbsp;ed apriamo il file &lt;b&gt;default.js&lt;/b&gt;&amp;nbsp;che si trova nella cartella &lt;b&gt;js&lt;/b&gt;&amp;nbsp;e modifichiamo la funzione &lt;b&gt;onLoad&lt;/b&gt;&amp;nbsp;in questo modo:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDyTOW_y2p9uzmpJ65lDDipK67qkLWdLw2lCPhnEeJzhmswweDLGyikXufxhyr_iRhc7MSBnvKuyyO6KdYzyF45AGuEuj1dL4FnmKpuSB2yF8AGFmqjDIRK5Up71tYCaOpZqu3R9MteJg/s1600/58.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDyTOW_y2p9uzmpJ65lDDipK67qkLWdLw2lCPhnEeJzhmswweDLGyikXufxhyr_iRhc7MSBnvKuyyO6KdYzyF45AGuEuj1dL4FnmKpuSB2yF8AGFmqjDIRK5Up71tYCaOpZqu3R9MteJg/s1600/58.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione:&amp;nbsp;&lt;/b&gt;Cambiamo il tipo di notifica da inviare al &lt;b&gt;C#&lt;/b&gt;&lt;/blockquote&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Torniamo nel &lt;b&gt;Solution Explorer&lt;/b&gt;&amp;nbsp;ed apriamo il file &lt;b&gt;MainPage.xaml.cs&lt;/b&gt;:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjE-Ow9GjjU6Wqb6G-emaFGc_0Em7pIoEovi-RJYf8Cutb6npsfkmoPHiQMg5rq2r7cFM3nbKKDaJnTXCd46sVUkMrZO973fcOIKqUFXEVeTmQJ60Whf5gKXp7a_WoM_npBFyIhxeXNMgY/s1600/26.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjE-Ow9GjjU6Wqb6G-emaFGc_0Em7pIoEovi-RJYf8Cutb6npsfkmoPHiQMg5rq2r7cFM3nbKKDaJnTXCd46sVUkMrZO973fcOIKqUFXEVeTmQJ60Whf5gKXp7a_WoM_npBFyIhxeXNMgY/s1600/26.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Modifichiamo la funzione &lt;b&gt;HTML_JS&lt;/b&gt;:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCXEc8Xh1ntbZZ7WRcUj1Jg2O-eFWK8BntjknCOdV9cc8TrB5htzH6zA84PtDIzRpBZAaXNWmSeBJkFGgUm-5xRVQzFOVYwXjB2RdDzW8HKRFJl4qCslcGO6BGpNTgy0ccljrlY-yepeA/s1600/59.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;83&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCXEc8Xh1ntbZZ7WRcUj1Jg2O-eFWK8BntjknCOdV9cc8TrB5htzH6zA84PtDIzRpBZAaXNWmSeBJkFGgUm-5xRVQzFOVYwXjB2RdDzW8HKRFJl4qCslcGO6BGpNTgy0ccljrlY-yepeA/s400/59.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione:&lt;/b&gt;&amp;nbsp;Leggiamo il messaggio, se è un Load, vuol dire che dobbiamo leggere il file&lt;/blockquote&gt;
Ora torniamo nel &lt;b&gt;default.js&lt;/b&gt;&amp;nbsp;ed aggiungiamo questa nuova funzione:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiY2tDu6t9Upia2svXOncmgAl7g7GWF4qC4MUxNOXhhP8nga-Wxab-sCO5ncIujZPmD73dC0xw3SbJkO8OJaXxi59O1oPOYD2H7elKOgFJxBMsIu0ryzoeOELxMV8zudm01iUS8ETz-cCI/s1600/60.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiY2tDu6t9Upia2svXOncmgAl7g7GWF4qC4MUxNOXhhP8nga-Wxab-sCO5ncIujZPmD73dC0xw3SbJkO8OJaXxi59O1oPOYD2H7elKOgFJxBMsIu0ryzoeOELxMV8zudm01iUS8ETz-cCI/s1600/60.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Spiegazione:&lt;/b&gt;&amp;nbsp;inserisco il testo letto nell&#39;elemento &lt;b&gt;div&lt;/b&gt;&amp;nbsp;di &lt;b&gt;id&lt;/b&gt;&amp;nbsp;text&lt;/blockquote&gt;
Per finire, andiamo nel &lt;b&gt;Solution Explorer &lt;/b&gt;ed apriamo il file &lt;b&gt;default.css &lt;/b&gt;modificandolo in questo modo:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYndk521kL9T-7WFTHbUJYkFFMSrEQIzOIhCYzJx0nR9cLs2XYGnjrNW4DSubn_YKmVQelx4iP-48MLjq7tHjVyj_8OEEZUdIoTR1xOl-phzGrVk1nj18xo-X1S66A4-AasZUUDVodwbo/s1600/61.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYndk521kL9T-7WFTHbUJYkFFMSrEQIzOIhCYzJx0nR9cLs2XYGnjrNW4DSubn_YKmVQelx4iP-48MLjq7tHjVyj_8OEEZUdIoTR1xOl-phzGrVk1nj18xo-X1S66A4-AasZUUDVodwbo/s1600/61.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Salviamo ed eseguiamo. Ultimo consiglio, se il testo è troppo lungo e non riusciamo a leggerlo, basta eliminare la riga:&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;-ms-touch-action: none;&lt;/b&gt;&lt;/blockquote&gt;
dal file &lt;b&gt;default.css.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Anche per oggi è tutto, al prossimo articolo!&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://informaticasemplice.blogspot.com/feeds/395264514595018649/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://informaticasemplice.blogspot.com/2013/05/windows-phone-leggere-file-con.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1358727525610408775/posts/default/395264514595018649'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1358727525610408775/posts/default/395264514595018649'/><link rel='alternate' type='text/html' href='http://informaticasemplice.blogspot.com/2013/05/windows-phone-leggere-file-con.html' title='Windows Phone - leggere Embedded Resource con HTML5/Javascript senza PhoneGap'/><author><name>Niccolò Petrocchi</name><uri>http://www.blogger.com/profile/01057098047235180688</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_sf44JRony5TuTVfupO9tWTN-ktD_upLJ-eGa0YmgKkd7xi4PSU_t8jk0dl-DrZzj8xezgyxdg_Jmk_8yeDasL97RdDdW6xu2ighZCXQEKSWZNjOuWnEoHtgAYddnKmKuwp-fJh5-FvY/s72-c/44.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1358727525610408775.post-8802847026599045560</id><published>2013-05-07T01:27:00.001-07:00</published><updated>2013-05-13T23:16:49.431-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="giochi"/><category scheme="http://www.blogger.com/atom/ns#" term="html5"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="phone"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="windows phone 8"/><title type='text'>Giochi per Windows Phone - Pratica con FPS</title><content type='html'>Oggi, vedremo il funzionamento degli &lt;b&gt;FPS&lt;/b&gt;, riprendiamo il progetto del&amp;nbsp;&lt;a href=&quot;http://informaticasemplice.blogspot.it/2013/05/giochi-per-windows-pratica-su-windows.html&quot; target=&quot;_blank&quot;&gt;cubo&lt;/a&gt;, apporteremo qualche modifica. Andiamo nel &lt;b&gt;Solution Explorer&lt;/b&gt;&amp;nbsp;ed apriamo il file &lt;b&gt;default.js&lt;/b&gt;&amp;nbsp;che si trova nella cartella &lt;b&gt;js&lt;/b&gt;, andremo a modificare:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;l&#39;oggetto &lt;b&gt;box&lt;/b&gt;: aggiungento due campi &lt;b&gt;tox&lt;/b&gt;, &lt;b&gt;toy&lt;/b&gt;&amp;nbsp;che sono rispettivamente la x e la y in cui si deve dirigere il cubo.&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Cosa cambia?&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Cambia il modo in cui il cubo viene spostato, invece di andare direttamente alla destinazione, in ogni &lt;b&gt;FPS&lt;/b&gt;&amp;nbsp;il cubo si muoverà di 1px. In questo modo vedremo come si comporta il &lt;b&gt;motore grafico&lt;/b&gt;&amp;nbsp;al cambiare degli &lt;b&gt;FPS&lt;/b&gt;. Elenchiamo le modifiche:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Riscriviamo il &lt;b&gt;box&lt;/b&gt;:&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhtnOuBPrC5MJIsnQZFbEuJhIOZNkVJGCESnh9op9wQm4eO9n_xiACH-PwCwhe6cqug4kCMi162G3POt3I9Z5eLnBEOs4R800VOC-eezU2lhW50Bfkx94DN87daoIrVz48YfW4q0r4844/s1600/41.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhtnOuBPrC5MJIsnQZFbEuJhIOZNkVJGCESnh9op9wQm4eO9n_xiACH-PwCwhe6cqug4kCMi162G3POt3I9Z5eLnBEOs4R800VOC-eezU2lhW50Bfkx94DN87daoIrVz48YfW4q0r4844/s1600/41.png&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Modifichiamo la funzione &lt;b&gt;onClick&lt;/b&gt;:&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJjf4baY0bbTYq4a4r88bUe44THb5GsLVTjJ380AcuBtDjOpyw9XPaq0Akqr1RBDSdNFvnKwaYqPYLx__PxOxvRGLUIxHMj9Ts7bN5w2CsAwVzwf8kVx9XkzvQuT7RDFpNraOhv8qDZtc/s1600/42.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJjf4baY0bbTYq4a4r88bUe44THb5GsLVTjJ380AcuBtDjOpyw9XPaq0Akqr1RBDSdNFvnKwaYqPYLx__PxOxvRGLUIxHMj9Ts7bN5w2CsAwVzwf8kVx9XkzvQuT7RDFpNraOhv8qDZtc/s1600/42.png&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;E la &lt;b&gt;onDraw&lt;/b&gt;:&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvKX8NPt6NWWHX-Av4XqxGVdIkRO46KoWWNtiLsFJbNErE8gKOCrPRHPC7toObK-2QlJnW4hA4eN1fZPuPkRWDUEFaRS9YF6-htmFbpQNkl86Lhpxu4yLRJexq5HfxWYeOLwKtTQd0Cjk/s1600/43.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvKX8NPt6NWWHX-Av4XqxGVdIkRO46KoWWNtiLsFJbNErE8gKOCrPRHPC7toObK-2QlJnW4hA4eN1fZPuPkRWDUEFaRS9YF6-htmFbpQNkl86Lhpxu4yLRJexq5HfxWYeOLwKtTQd0Cjk/s1600/43.png&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
Spiegazione:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;tox&lt;/b&gt;&amp;nbsp;e &lt;b&gt;&amp;nbsp;toy&lt;/b&gt;&amp;nbsp;sono le coordinate in cui ci vogliamo spostare. Nella &lt;b&gt;onClick&lt;/b&gt;&amp;nbsp;abbiamo eliminato le righe che assegnavano la nuova posizione alla &lt;b&gt;x&lt;/b&gt;&amp;nbsp;e &lt;b&gt;y&lt;/b&gt;&amp;nbsp;dell&#39;oggetto &lt;b&gt;box&lt;/b&gt;. In &lt;b&gt;onDraw&lt;/b&gt;&amp;nbsp;abbiamo aggiunto 4 righe che controllano la posizione del &lt;b&gt;box&lt;/b&gt;&amp;nbsp;rispetto alla destinazione con aggiornamento della posizione corrente(&lt;b&gt;x &lt;/b&gt;e&lt;b&gt;&amp;nbsp;y&lt;/b&gt;).&lt;/li&gt;
&lt;/ul&gt;
Salvando ed eseguendo, otterremo già un ottimo risultato, &lt;b&gt;da notare:&lt;/b&gt; clicchiamo ripetutamente con il &lt;b&gt;mouse&lt;/b&gt;&amp;nbsp;il &lt;b&gt;box&lt;/b&gt;&amp;nbsp;cambierà in automatico la sua destinazione. Adesso giochiamo un po con l&#39;&lt;b&gt;FPS&lt;/b&gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Cambiamo la variabile &lt;b&gt;FPS&lt;/b&gt;&amp;nbsp;da &lt;b&gt;30&lt;/b&gt; a &lt;b&gt;5&lt;/b&gt;&amp;nbsp;e proviamo ad rieseguire il gioco: il &lt;b&gt;box&lt;/b&gt;&amp;nbsp;è molto più lento negli spostamenti.&lt;/li&gt;
&lt;li&gt;Adesso proviamo a portarlo ad un valore conosciuto dagli appassionati di giochi, tra &lt;b&gt;50&lt;/b&gt; e &lt;b&gt;60&lt;/b&gt;: l&#39;effetto non è per niente male.&lt;/li&gt;
&lt;/ul&gt;
Ovviamente questa è una scelta voluta, perché la funzione &lt;b&gt;onDraw&lt;/b&gt;(che aggiorna lo spostamento del &lt;b&gt;box&lt;/b&gt;), viene chiamata nel &lt;b&gt;gameLoop&lt;/b&gt;&amp;nbsp;che a sua volta viene richiamato ogni &lt;b&gt;1000/FPS&lt;/b&gt;&amp;nbsp;millisecondi. Con questa struttura modifichiamo la velocità di spostamento del cubo.&lt;br /&gt;
&lt;b&gt;Anche per oggi è tutto sui giochi, appuntamento al prossimo post con molte altre modifiche sul motore grafico!&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://informaticasemplice.blogspot.com/feeds/8802847026599045560/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://informaticasemplice.blogspot.com/2013/05/giochi-per-windows-phone-pratica-con-fps.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1358727525610408775/posts/default/8802847026599045560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1358727525610408775/posts/default/8802847026599045560'/><link rel='alternate' type='text/html' href='http://informaticasemplice.blogspot.com/2013/05/giochi-per-windows-phone-pratica-con-fps.html' title='Giochi per Windows Phone - Pratica con FPS'/><author><name>Niccolò Petrocchi</name><uri>http://www.blogger.com/profile/01057098047235180688</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhtnOuBPrC5MJIsnQZFbEuJhIOZNkVJGCESnh9op9wQm4eO9n_xiACH-PwCwhe6cqug4kCMi162G3POt3I9Z5eLnBEOs4R800VOC-eezU2lhW50Bfkx94DN87daoIrVz48YfW4q0r4844/s72-c/41.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1358727525610408775.post-8220018681890040184</id><published>2013-05-03T02:42:00.000-07:00</published><updated>2013-05-13T23:16:14.184-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="giochi"/><category scheme="http://www.blogger.com/atom/ns#" term="html5"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="phone"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="windows phone 8"/><title type='text'>Giochi per Windows - Pratica su Windows Phone</title><content type='html'>Oggi, vedremo come costruire il nostro primo &lt;b&gt;motore grafico&lt;/b&gt;! Per prima cosa, avviamo&amp;nbsp;&lt;b&gt;Visual Studio&lt;/b&gt;&amp;nbsp;e apriamo il progetto che abbiamo creato in questi due articoli:&amp;nbsp;&lt;a href=&quot;http://informaticasemplice.blogspot.it/2013/05/windows-phone-8-e-javascript-parte-1.html&quot; target=&quot;_blank&quot;&gt;Parte 1&lt;/a&gt;&amp;nbsp;&lt;a href=&quot;http://informaticasemplice.blogspot.it/2013/05/windows-phone-8-e-javascript-parte-2.html&quot; target=&quot;_blank&quot;&gt;Parte 2&lt;/a&gt;. Nel&#39;articolo sulla&amp;nbsp;&lt;a href=&quot;http://informaticasemplice.blogspot.it/2013/05/giochi-per-windows-un-po-di-teoria.html&quot; target=&quot;_blank&quot;&gt;teoria&lt;/a&gt;&amp;nbsp;di un gioco, ho detto che un motore grafico, è strutturato in un &lt;b&gt;Caricamento delle risorse&lt;/b&gt;&amp;nbsp;ed un &lt;b&gt;&amp;nbsp;ciclo infinito&lt;/b&gt;. Andiamo ad vedere come caricare le risorse. &lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Nel &lt;b&gt;Solution Explorer&lt;/b&gt;&amp;nbsp;di &lt;b&gt;&amp;nbsp;Visual Studio&lt;/b&gt;&amp;nbsp;clicchiamo due volte sul file &lt;b&gt;default.js&lt;/b&gt;&amp;nbsp;che si trova nella cartella &lt;b&gt;js&lt;/b&gt;. La funzione &lt;b&gt;onLoad&lt;/b&gt;&amp;nbsp;fa al caso nostro, perché è la prima funzione ad essere eseguita appena la pagina viene caricata. In questo tutorial non caricheremo delle risorse specifiche, ma andremo ad cambiare lo sfondo di &lt;b&gt;Background&lt;/b&gt;&amp;nbsp;ed a disegnare un quadrato, che verrà spostato sullo schermo, ecco come fare:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwWniztzAeZ5yZxNG7ChXvdceGGPPCckNi4h7CRuCVncBiYlL75t0TjRiVAltZKOrVpzQX2GxGsNxTGIKJQaMuFaT2-1LJ6VHhQSKnmiuLe2vUiEGvFA-5WOvqu0NLCvkAzMc0GEqgPSw/s1600/34.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;190&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwWniztzAeZ5yZxNG7ChXvdceGGPPCckNi4h7CRuCVncBiYlL75t0TjRiVAltZKOrVpzQX2GxGsNxTGIKJQaMuFaT2-1LJ6VHhQSKnmiuLe2vUiEGvFA-5WOvqu0NLCvkAzMc0GEqgPSw/s400/34.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Facciamo un po di chiarezza, su quello che abbiamo scritto:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;document.body.setAttribute(&#39;style&#39;, &#39;background-color:#00c0ff&#39;)&lt;/b&gt;: Questa riga serve a cambiare lo sfondo della pagina.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;var div = document.createElement(&#39;div&#39;)&lt;/b&gt;: creiamo un nuovo elemento &lt;b&gt;HTML&lt;/b&gt;&amp;nbsp;&lt;b&gt;div&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;div.setAttribute(&#39;id&#39;, &#39;box&#39;)&lt;/b&gt;: diamo un &lt;b&gt;id&lt;/b&gt; univoco all&#39;elemento, per poterlo richiamare dal codice &lt;b&gt;Javascript&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;div.setAttribute(&#39;style&#39;, &#39;position:absolute;width:20px;height:20px;top:10px;left:10px;border:1px solid #000;background-color:#00ff60&#39;)&lt;/b&gt;: Definiamo uno stile &lt;b&gt;CSS&lt;/b&gt; per questo nuovo elemento.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;document.body.appendChild(div)&lt;/b&gt;: Inseriamo questo nuovo &lt;b&gt;div&lt;/b&gt;&amp;nbsp;all&#39;interno della pagina, come figlio del &lt;b&gt;body&lt;/b&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
In questo caso, noi abbiamo caricato(costruito)le nostre risorse, adesso dobbiamo entrare nel &lt;b&gt;ciclo infinito&lt;/b&gt;:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDZpD3KgVHsBNPfhqV3sushuiid2rQqOqrjoblW9uASGeK29aJ01jtJrREPNrob_aHfCer6JSDyF8VFxe9YZ9KWsKfmHhFCd43OVB3_dz6D_Xm4yNVbFZ4CZDTVm5vr0G7YB-ImOrD-P0/s1600/35.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;189&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDZpD3KgVHsBNPfhqV3sushuiid2rQqOqrjoblW9uASGeK29aJ01jtJrREPNrob_aHfCer6JSDyF8VFxe9YZ9KWsKfmHhFCd43OVB3_dz6D_Xm4yNVbFZ4CZDTVm5vr0G7YB-ImOrD-P0/s400/35.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;var FPS = 30&lt;/b&gt;: Abbiamo definito la nostra unità di misura, vogliamo che ogni secondo vengano riprodotti 30 fotogrammi, come inizio non è male.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;setInterval(gameLoop, 1000 / FPS)&lt;/b&gt;: Avviamo il nostro &lt;b&gt;ciclo&lt;/b&gt;. &lt;b&gt;1000/FPS&lt;/b&gt;&amp;nbsp;serve a calcolare quante volte in un secondo deve essere eseguita la funzione &lt;b&gt;gameLoop&lt;/b&gt;, se dentro di essa chiamiamo una funzione che ridisegna l&#39;interfaccia, abbiamo la nostra animazione a 30 fotogrammi al secondo.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;function gameLoop() {}&lt;/b&gt;: è &amp;nbsp;il vero e proprio &lt;b&gt;ciclo&lt;/b&gt;&amp;nbsp;del gioco.&lt;/li&gt;
&lt;/ul&gt;
Siccome che l&#39;oggetto che andremo a spostare è un cubo, direi di creare un oggetto box:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO92zkmE6RPu2dvXCC6DlmiFRRka7U6eXR4NK-pgT2sQq7Pft_dlMytBxRiexB-Ruefeuv1GolI1tnVqWb8NfXeCsnhvqL9abgKCUzzgrJESoooVMXPsXH1XwItSHvYYwEgOo_ac5xyK4/s1600/36.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;187&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO92zkmE6RPu2dvXCC6DlmiFRRka7U6eXR4NK-pgT2sQq7Pft_dlMytBxRiexB-Ruefeuv1GolI1tnVqWb8NfXeCsnhvqL9abgKCUzzgrJESoooVMXPsXH1XwItSHvYYwEgOo_ac5xyK4/s400/36.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;x&lt;/b&gt;&amp;nbsp;e &lt;b&gt;&amp;nbsp;y&lt;/b&gt;&amp;nbsp;sono la posizione in cui si trova il cubo.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;w &lt;/b&gt;&amp;nbsp;e &lt;b&gt;h&lt;/b&gt;&amp;nbsp;sono rispettivamente la lunghezza e l&#39;altezza del cubo.&lt;/li&gt;
&lt;/ul&gt;
Aggiungiamo una funzione &lt;b&gt;onClick&lt;/b&gt;:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhk2XTPh4qJRH9YRpFDU_z3rOJ_vaJcbIEZYH9M2SsCcsfOF8hfdTP3ARr77X_ahyphenhyphenP5i-ySa-K_VIKWeaZurvspXexvkMJs6JRVd8k_J4P9rkNkkeouZ0OqOtPyWKeczCW0bKuV571Qpyg/s1600/37.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;190&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhk2XTPh4qJRH9YRpFDU_z3rOJ_vaJcbIEZYH9M2SsCcsfOF8hfdTP3ARr77X_ahyphenhyphenP5i-ySa-K_VIKWeaZurvspXexvkMJs6JRVd8k_J4P9rkNkkeouZ0OqOtPyWKeczCW0bKuV571Qpyg/s400/37.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Che non fa altro che ricavare le coordinate dell&#39;ultimo punto cliccato e salvare nell&#39;oggetto box.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
La funzione la richiamiamo tramite l&#39;istruzione&amp;nbsp;&lt;b&gt;window.document.onclick = onClick;&lt;/b&gt;&amp;nbsp;inserita nella funzione &lt;b&gt;onLoad&lt;/b&gt;:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirfnhodBJ1yveBGGuwjuztxOJFOv1Pvb6KnYuDJbJ7xfa8qeprtutW_1z6_OCdN30LmyXznz1qAZTm6fas77uhoZhCRP016_zb-RccmTZC3qpnJbPC_2HSo6n3VJoF9xNqG4AALQGRHbo/s1600/38.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;60&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirfnhodBJ1yveBGGuwjuztxOJFOv1Pvb6KnYuDJbJ7xfa8qeprtutW_1z6_OCdN30LmyXznz1qAZTm6fas77uhoZhCRP016_zb-RccmTZC3qpnJbPC_2HSo6n3VJoF9xNqG4AALQGRHbo/s400/38.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Basta richiamarla una volta sola prima del nostro &lt;b&gt;ciclo&lt;/b&gt;. Questo perché sovrascriviamo un &lt;b&gt;handler&lt;/b&gt;&amp;nbsp;nell&#39;evento &lt;b&gt;onclick&lt;/b&gt;&amp;nbsp;del documento, quindi l&#39;ascolto di un nuovo click viene effettuato direttamente da javascript, a noi rimane solo il compito di aggiornare il nostro oggetto &lt;b&gt;box&lt;/b&gt;. Ovviamente, se avviamo il nostro progetto in questo momento, non vedremo spostare un bel niente, questo perché non ci siamo ancora preoccupati di aggiornare la nostra finestra, ed è quello che andremo a fare. Creiamo una funzione &lt;b&gt;onDraw&lt;/b&gt;:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipxF6S04UWQkWf18H48jTIxY8HYxD_eVUYami-vQUS2lDv_Zo68Hx-3JRKA8Baaep8U5vE0pUz4jtlYocYqGYMG9GRvSzYu4g70vBgM157lnYWyLGt5wwuKByCDS1fJ_SSvMjbEFQnVYI/s1600/39.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;188&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipxF6S04UWQkWf18H48jTIxY8HYxD_eVUYami-vQUS2lDv_Zo68Hx-3JRKA8Baaep8U5vE0pUz4jtlYocYqGYMG9GRvSzYu4g70vBgM157lnYWyLGt5wwuKByCDS1fJ_SSvMjbEFQnVYI/s400/39.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
che richiameremo dentro al nostro &lt;b&gt;ciclo&lt;/b&gt;:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ7Ho-5TX6no1lxfh5gxUO5Lz_id4Y64oEH8Jj4Dwm4dRuL4NTPO73idxTnxji745nGGmAQrtFsGNiIiYc8DrB6TXYCyGR7UlgMI-r9lqAltAHztwrl6_8bRHAV4ZcYHUGey-OI4dW2Vs/s1600/40.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ7Ho-5TX6no1lxfh5gxUO5Lz_id4Y64oEH8Jj4Dwm4dRuL4NTPO73idxTnxji745nGGmAQrtFsGNiIiYc8DrB6TXYCyGR7UlgMI-r9lqAltAHztwrl6_8bRHAV4ZcYHUGey-OI4dW2Vs/s1600/40.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
L&#39;ultima modifica da effettuare è cambiare la riga:&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;div.setAttribute(&#39;style&#39;, &#39;position:absolute;width:20px;height:20px;top:10px;left:10px;border:1px solid #000;background-color:#00ff60&#39;);&lt;/b&gt;&lt;/blockquote&gt;
dentro la funzione &lt;b&gt;onLoad&lt;/b&gt;&amp;nbsp;con questa:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;div.setAttribute(&#39;style&#39;, &#39;position:absolute;width:&#39; + box.w + &#39;px;height:&#39; + box.h + &#39;px;top:&#39; + box.x + &#39;px;left:&#39; + box.y + &#39;px;border:1px solid #000;background-color:#00ff60&#39;);&lt;/b&gt;&amp;nbsp;&lt;/blockquote&gt;
di modo che, basta cambiare la &lt;b&gt;x&lt;/b&gt;, &lt;b&gt;y&lt;/b&gt;, &lt;b&gt;w&lt;/b&gt;&amp;nbsp;e &lt;b&gt;h&lt;/b&gt;&amp;nbsp;dell&#39;oggetto &lt;b&gt;box&lt;/b&gt;&amp;nbsp;per rendere subito effettive le modifiche fin dall&#39;inizio. Prima di eseguire, dal &lt;b&gt;Solution Explorer&lt;/b&gt;&amp;nbsp;apriamo il file &lt;b&gt;default.html&lt;/b&gt;&amp;nbsp;che si trova nella cartella &lt;b&gt;html&lt;/b&gt;&amp;nbsp;ed cancelliamo questa riga:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;lt;h1&amp;gt;page name&amp;lt;/h1&amp;gt;&lt;/b&gt;&lt;/blockquote&gt;
Così avremo tutto lo schermo a nostra a disposizione, per sbizzarrirci a muovere il nostro cubo. Salviamo&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUSV8atKln4FdWmgiccNVqNNkCphVT6Y6ImsZQeBT0eOetS-yj1xvkwwnmvduhI2PWq-QjTsIDVzBb9LEcvarbIMyLGrLP9jFr2zr2gAliQOSJUkgxXf4tI6wju4401mdIh0z2iOWJpO8/s1600/23.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUSV8atKln4FdWmgiccNVqNNkCphVT6Y6ImsZQeBT0eOetS-yj1xvkwwnmvduhI2PWq-QjTsIDVzBb9LEcvarbIMyLGrLP9jFr2zr2gAliQOSJUkgxXf4tI6wju4401mdIh0z2iOWJpO8/s1600/23.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
ed eseguiamo&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgE9ZmJc50SHAJW1ZZrCKJDxfrxh2ya_DgM42GfuLRYQ5FUvxkq5r_4tnxSUmMloXEZu7DQTNXo_jFauYvhzz00-Fp1tX2gdqLsQRXJrOaCoUi-xpC30FqFJO-gVevjMAc35Iq48rRrJac/s1600/24.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgE9ZmJc50SHAJW1ZZrCKJDxfrxh2ya_DgM42GfuLRYQ5FUvxkq5r_4tnxSUmMloXEZu7DQTNXo_jFauYvhzz00-Fp1tX2gdqLsQRXJrOaCoUi-xpC30FqFJO-gVevjMAc35Iq48rRrJac/s1600/24.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;Per ora, buon divertimento. Presto qualche &lt;a href=&quot;http://informaticasemplice.blogspot.it/2013/05/giochi-per-windows-phone-pratica-con-fps.html&quot; target=&quot;_blank&quot;&gt;nuova modifica&lt;/a&gt;, per ampliare il motore grafico!&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://informaticasemplice.blogspot.com/feeds/8220018681890040184/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://informaticasemplice.blogspot.com/2013/05/giochi-per-windows-pratica-su-windows.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1358727525610408775/posts/default/8220018681890040184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1358727525610408775/posts/default/8220018681890040184'/><link rel='alternate' type='text/html' href='http://informaticasemplice.blogspot.com/2013/05/giochi-per-windows-pratica-su-windows.html' title='Giochi per Windows - Pratica su Windows Phone'/><author><name>Niccolò Petrocchi</name><uri>http://www.blogger.com/profile/01057098047235180688</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwWniztzAeZ5yZxNG7ChXvdceGGPPCckNi4h7CRuCVncBiYlL75t0TjRiVAltZKOrVpzQX2GxGsNxTGIKJQaMuFaT2-1LJ6VHhQSKnmiuLe2vUiEGvFA-5WOvqu0NLCvkAzMc0GEqgPSw/s72-c/34.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1358727525610408775.post-7154680198273208097</id><published>2013-05-02T07:39:00.001-07:00</published><updated>2013-05-13T23:02:59.095-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="giochi"/><category scheme="http://www.blogger.com/atom/ns#" term="html5"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="phone"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="windows 8"/><category scheme="http://www.blogger.com/atom/ns#" term="windows phone 8"/><title type='text'>Giochi per Windows - Un po di teoria</title><content type='html'>Scommetto che chiunque, alla domanda:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Ti piacerebbe sviluppare un gioco?&lt;/b&gt;&amp;nbsp;&lt;/blockquote&gt;
Risponderebbe sì, ma poi sotto sotto non ha le basi per poter partire, oggi voglio dare un po di teoria e in un futuro qualche esempio su come creare dei giochi (grazie ad &lt;b&gt;HTML5/Javascript&lt;/b&gt;). So che per qualcuno di voi è una noia mortale, ma purtroppo bisogna partire da un po di teoria, sarò sbrigativo.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Per prima cosa:
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Cos&#39;è un motore grafico?&lt;/b&gt;&lt;/blockquote&gt;
Diciamo che è il &lt;b&gt;nucleo&lt;/b&gt; di un gioco (un &lt;b&gt;kernel&lt;/b&gt; per intendersi) , senza di esso un gioco non esiste e, quindi tutto ruota intorno ad esso. Sia i giochi più moderni, che i classici di un tempo, hanno alla base un &lt;b&gt;motore grafico&lt;/b&gt;.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Come funziona un motore grafico?&lt;/b&gt;&lt;/blockquote&gt;
Bé, oggi giorno i motori grafici sono piuttosto complessi, comunque più o meno hanno tutti alla base questo concetto:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;b&gt;Caricamento delle risorse&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Loop infinito&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;b&gt;Caricamento delle risorse:&lt;/b&gt;&amp;nbsp;In questa fase, vengono caricate tutte o parte delle risorse per poter eseguire il gioco.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Loop infinito:&lt;/b&gt;&amp;nbsp;Questa fase è un po più complicata, dentro questo ciclo, che si ripete finché il gioco non viene chiuso o messo in pausa, vengono effettuati, tutti i controlli, calcoli, ecc. e il ridisegno dell&#39;interfaccia, il cosiddetto &lt;b&gt;rendering&lt;/b&gt;.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Cos&#39;è il rendering?&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
E&#39; il processo che serve ad ridisegnare l&#39;interfaccia del gioco, più precisamente a riprodurre un&#39;animazione. Questo processo si misura in &lt;b&gt;FPS&lt;/b&gt;.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Cos&#39;è un FPS?&lt;/b&gt;&lt;/blockquote&gt;
Un &lt;b&gt;FPS&lt;/b&gt; (o &lt;b&gt;Frame Per Secondo&lt;/b&gt;) è un&#39;unità di misura per calcolare quanti fotogrammi devono essere riprodotti in un secondo. Ovviamente, più fotogrammi riprodotti, più l&#39;animazione sarà realistica, questo comporta anche un maggior peso di calcolo, quindi la cosa deve essere bilanciata.&lt;br /&gt;
&lt;b&gt;Nel prossimo articolo, vedremo come scrivere un piccolo motore grafico di base.&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://informaticasemplice.blogspot.com/feeds/7154680198273208097/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://informaticasemplice.blogspot.com/2013/05/giochi-per-windows-un-po-di-teoria.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1358727525610408775/posts/default/7154680198273208097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1358727525610408775/posts/default/7154680198273208097'/><link rel='alternate' type='text/html' href='http://informaticasemplice.blogspot.com/2013/05/giochi-per-windows-un-po-di-teoria.html' title='Giochi per Windows - Un po di teoria'/><author><name>Niccolò Petrocchi</name><uri>http://www.blogger.com/profile/01057098047235180688</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1358727525610408775.post-7412891985546040576</id><published>2013-05-02T02:40:00.003-07:00</published><updated>2013-05-13T23:00:08.676-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="html5"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="phone"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="windows phone 8"/><title type='text'>Windows Phone 8 e javascript - Parte 2</title><content type='html'>In questa seconda parte, vedremo come ampliare il nostro piccolo progetto. Con la prima parte, avevamo visto come creare una pagina con scritto &lt;b&gt;page name&lt;/b&gt;. Per prima cosa, riprendiamo dalla pagina &lt;b&gt;MainPage.xaml&lt;/b&gt;, più precisamente, dal tag&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8UFufYVjxd97mmD22gIx5ibx0oUcf41cvzVansGx-JEeoTz_Nfnzd5qZSJnG48DsT_od8g7kgKWvHDnikHIlV72EniTMO1FFq5GuTMfMTsLSNKV1w0AJq6DD0Isqa_UP60He95_DfBnw/s1600/22.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8UFufYVjxd97mmD22gIx5ibx0oUcf41cvzVansGx-JEeoTz_Nfnzd5qZSJnG48DsT_od8g7kgKWvHDnikHIlV72EniTMO1FFq5GuTMfMTsLSNKV1w0AJq6DD0Isqa_UP60He95_DfBnw/s1600/22.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Andremo ad aggiungere dei nuovi attributi:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;x:Name&lt;/b&gt;: Questo attributo serve a dare un nome al nostro tag. Più precisamente, serve a creare un&#39;istanza del componente, da poter utilizzare nel codice &lt;b&gt;C#&lt;/b&gt;. Non preoccupatevi, più avanti vedremo cosa vuol dire.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;IsScriptEnabled&lt;/b&gt;: Questo attributo, se impostato a &lt;b&gt;true&lt;/b&gt;, abilita l&#39;esecuzione degli Script &lt;b&gt;Javascript&lt;/b&gt;&amp;nbsp;nella pagina &lt;b&gt;html&lt;/b&gt;.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;ScriptNotify&lt;/b&gt;: Questo attributo serve ad creare una funzione, per far comunicare il &lt;b&gt;Web Browser&lt;/b&gt;&amp;nbsp;con il &lt;b&gt;C#&lt;/b&gt;. Anche in questo caso, più avanti vedremo come.&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
Quindi il nostro tag diventerà così&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzo-qm2_vYyXdiG9SJFJEQfS4InX8Un5MECWjfzQGmyDn_NHn5UjDEK0seKPHcVpG29J8ZePv70qRpuDSSVcZr3RyEySn4WWivj7UOHZt0zimq6GC38VnIC3-qGsXvsMoEzBrTEChBpWU/s1600/32.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;30&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzo-qm2_vYyXdiG9SJFJEQfS4InX8Un5MECWjfzQGmyDn_NHn5UjDEK0seKPHcVpG29J8ZePv70qRpuDSSVcZr3RyEySn4WWivj7UOHZt0zimq6GC38VnIC3-qGsXvsMoEzBrTEChBpWU/s400/32.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Ora passiamo a vedere un po di codice &lt;b&gt;C#&lt;/b&gt;, niente paura, vedremo solo il meccanismo di comunicazione tra il &lt;b&gt;Web Brower&lt;/b&gt;&amp;nbsp;e la nostra funzione &lt;b&gt;HTML_JS&lt;/b&gt;&amp;nbsp;definita nell&#39;attributo &lt;b&gt;ScriptNotify&lt;/b&gt;. Apriamo il &lt;b&gt;Solution Explorer&lt;/b&gt;&amp;nbsp;e clicchiamo due volte con il sinistro sopra il file &lt;b&gt;MainPage.xaml.cs&lt;/b&gt;:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjE-Ow9GjjU6Wqb6G-emaFGc_0Em7pIoEovi-RJYf8Cutb6npsfkmoPHiQMg5rq2r7cFM3nbKKDaJnTXCd46sVUkMrZO973fcOIKqUFXEVeTmQJ60Whf5gKXp7a_WoM_npBFyIhxeXNMgY/s1600/26.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjE-Ow9GjjU6Wqb6G-emaFGc_0Em7pIoEovi-RJYf8Cutb6npsfkmoPHiQMg5rq2r7cFM3nbKKDaJnTXCd46sVUkMrZO973fcOIKqUFXEVeTmQJ60Whf5gKXp7a_WoM_npBFyIhxeXNMgY/s1600/26.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Prima di iniziare, puliamo un po il codice, eliminando queste parti:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2gd2uNcypioHE0PSJDnC892o5Aivs6zFTRfMMbM76QKnvYd9TO-Jx-6BRIA4o0xHRJ6IH-7cM1tuyoIM5mSuhuznRsvJXQqLGzN_7CeVocfLLMQRyXxRLqnOPSk4q6uHXFiKc7DOs-MI/s1600/27.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2gd2uNcypioHE0PSJDnC892o5Aivs6zFTRfMMbM76QKnvYd9TO-Jx-6BRIA4o0xHRJ6IH-7cM1tuyoIM5mSuhuznRsvJXQqLGzN_7CeVocfLLMQRyXxRLqnOPSk4q6uHXFiKc7DOs-MI/s1600/27.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxHOjz2qc-opEEPE1od0IQHObp5bF-aI2e_mdxxm4QmWSGtb2eKfkYao2Xidw-YQNeNrd2JI98ArlafrzV-uCOi7ByqHgWZPQbz3UqXcVQx2ehB25ofRJRFBQ3pJ83s8CjLnEGY94NJ84/s1600/28.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;98&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxHOjz2qc-opEEPE1od0IQHObp5bF-aI2e_mdxxm4QmWSGtb2eKfkYao2Xidw-YQNeNrd2JI98ArlafrzV-uCOi7ByqHgWZPQbz3UqXcVQx2ehB25ofRJRFBQ3pJ83s8CjLnEGY94NJ84/s400/28.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Alla fine il codice sarà più o meno questo:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibcZSSEOYC-kIN6hH9xJy7NqRLBKSyvomzuZ3FVIyinj803yI8mONJHBwrABhyphenhyphen5XOTzbtoCJsXU1FgERl-26y-JKRfXR5hPeNn8ThPmiQB36Tih9I7H-I5WziNWQlxAH2hd4dxH7DwymQ/s1600/29.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;190&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibcZSSEOYC-kIN6hH9xJy7NqRLBKSyvomzuZ3FVIyinj803yI8mONJHBwrABhyphenhyphen5XOTzbtoCJsXU1FgERl-26y-JKRfXR5hPeNn8ThPmiQB36Tih9I7H-I5WziNWQlxAH2hd4dxH7DwymQ/s400/29.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Adesso, adiamo a scrivere la nostra funzione &lt;b&gt;HTML_JS&lt;/b&gt;:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMoccFD90GpEK8UmN7_0uSH7AHqVghwHl8pMl6v7RGpbtysDaG1kT0fpDWjnzjmHU78liMEmCZVIJ2eh1I5G5xfsSPgfLNHPIOLvPCTXRKAanlbanoUev6wZ-SAWMRAVtFtTpSJSaAOL8/s1600/30.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMoccFD90GpEK8UmN7_0uSH7AHqVghwHl8pMl6v7RGpbtysDaG1kT0fpDWjnzjmHU78liMEmCZVIJ2eh1I5G5xfsSPgfLNHPIOLvPCTXRKAanlbanoUev6wZ-SAWMRAVtFtTpSJSaAOL8/s1600/30.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJ1DiXXBC6mqAFKj8CJLlIzevziPZIbADadCcjWLt1CCWJljJIEtApCKKMFlkNDIyBW-NG0TF2exlDivFa6Z-RNDGlcqY_8uyVxteu_9SWP1COaz5xbk9f5142gmT2rKL2uCjBR75bBnk/s1600/31.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;189&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJ1DiXXBC6mqAFKj8CJLlIzevziPZIbADadCcjWLt1CCWJljJIEtApCKKMFlkNDIyBW-NG0TF2exlDivFa6Z-RNDGlcqY_8uyVxteu_9SWP1COaz5xbk9f5142gmT2rKL2uCjBR75bBnk/s400/31.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
La funzione inserita, non fa altro che stampare un messaggio, con il testo inviato dal &lt;b&gt;Web Browser&lt;/b&gt;.&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Come facciamo ad impostare il testo?&amp;nbsp;&lt;/b&gt;&lt;/blockquote&gt;
Apriamo il &lt;b&gt;Solution Explorer&lt;/b&gt;&amp;nbsp;e clicchiamo due volte con il sinistro sul file &lt;b&gt;default.js&lt;/b&gt;&amp;nbsp;che si trova nella cartella &lt;b&gt;js&lt;/b&gt;. Nella &lt;b&gt;Parte 1&lt;/b&gt;, avevamo creato una funzione vuota chiamata &lt;b&gt;onLoad()&lt;/b&gt;, modifichiamo la funzione in questo modo:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9nazCHzKg5KeK82gZAw80e8da7cN95o5liyjxAAlur6t9O7PwXq4I-UPqzdDCtriujR7m8lOC5nVKAOZ1b1_J_2UajdgQ9ASSi7kTFV_OehRhO3TFfAt5eDSCq0LGdT1PRGWJMlwq0XQ/s1600/33.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;190&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9nazCHzKg5KeK82gZAw80e8da7cN95o5liyjxAAlur6t9O7PwXq4I-UPqzdDCtriujR7m8lOC5nVKAOZ1b1_J_2UajdgQ9ASSi7kTFV_OehRhO3TFfAt5eDSCq0LGdT1PRGWJMlwq0XQ/s400/33.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Salviamo il tutto:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUSV8atKln4FdWmgiccNVqNNkCphVT6Y6ImsZQeBT0eOetS-yj1xvkwwnmvduhI2PWq-QjTsIDVzBb9LEcvarbIMyLGrLP9jFr2zr2gAliQOSJUkgxXf4tI6wju4401mdIh0z2iOWJpO8/s1600/23.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUSV8atKln4FdWmgiccNVqNNkCphVT6Y6ImsZQeBT0eOetS-yj1xvkwwnmvduhI2PWq-QjTsIDVzBb9LEcvarbIMyLGrLP9jFr2zr2gAliQOSJUkgxXf4tI6wju4401mdIh0z2iOWJpO8/s1600/23.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
ed eseguiamo:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgE9ZmJc50SHAJW1ZZrCKJDxfrxh2ya_DgM42GfuLRYQ5FUvxkq5r_4tnxSUmMloXEZu7DQTNXo_jFauYvhzz00-Fp1tX2gdqLsQRXJrOaCoUi-xpC30FqFJO-gVevjMAc35Iq48rRrJac/s1600/24.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgE9ZmJc50SHAJW1ZZrCKJDxfrxh2ya_DgM42GfuLRYQ5FUvxkq5r_4tnxSUmMloXEZu7DQTNXo_jFauYvhzz00-Fp1tX2gdqLsQRXJrOaCoUi-xpC30FqFJO-gVevjMAc35Iq48rRrJac/s1600/24.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Se tutto è andato a buon fine, vedremo un messaggio con il testo che abbiamo impostato, carino no?&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;Per questa seconda parte è tutto. Nei prossimi articoli vedremo come creare semplici applicazioni partendo da questo template.&lt;/b&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://informaticasemplice.blogspot.com/feeds/7412891985546040576/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://informaticasemplice.blogspot.com/2013/05/windows-phone-8-e-javascript-parte-2.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1358727525610408775/posts/default/7412891985546040576'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1358727525610408775/posts/default/7412891985546040576'/><link rel='alternate' type='text/html' href='http://informaticasemplice.blogspot.com/2013/05/windows-phone-8-e-javascript-parte-2.html' title='Windows Phone 8 e javascript - Parte 2'/><author><name>Niccolò Petrocchi</name><uri>http://www.blogger.com/profile/01057098047235180688</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8UFufYVjxd97mmD22gIx5ibx0oUcf41cvzVansGx-JEeoTz_Nfnzd5qZSJnG48DsT_od8g7kgKWvHDnikHIlV72EniTMO1FFq5GuTMfMTsLSNKV1w0AJq6DD0Isqa_UP60He95_DfBnw/s72-c/22.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1358727525610408775.post-7925853444883590488</id><published>2013-05-01T03:40:00.001-07:00</published><updated>2013-05-13T22:59:56.726-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="html5"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="phone"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="windows phone 8"/><title type='text'>Windows Phone 8 e javascript - Parte 1</title><content type='html'>Navigando nel web ho trovato molte domande sulla convivenza di Windows phone e Javascript, la mia risposta è sempre la stessa:&lt;br /&gt;
&lt;blockquote&gt;
&lt;b&gt;&quot;Si, è possibile creare applicazioni Windows Phone basate su HTML5 e Javascript&quot;&lt;/b&gt;&lt;/blockquote&gt;
Oggi voglio far capire come sia possibile farlo. Chi non è alle prime armi, potrebbe rispondermi:&lt;br /&gt;
&lt;blockquote&gt;
&lt;b&gt;&quot;Visual Studio dispone già di un Project Template HTML5/Javascript per Windows Phone&quot;&lt;/b&gt;&lt;/blockquote&gt;
Questa cosa è vera, però è interessante capire come funziona la cosa, e creare un template pulito da codice che magari non useremo mai.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;NOTA BENE: Per sviluppare su Windows Phone 8, hai bisogno di un PC con Windows 8 e Visual Studio 2012&lt;/b&gt;.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Prima di tutto, apriamo il nostro Visual Studio e clicchiamo su &lt;b&gt;File -&amp;gt; Nuovo -&amp;gt; Progetto...&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJm6dusQWbTirNkaifKwVJNQc-MMR4RU-f9UY7u1ir_SoPNkxeRVUbidyiWkPIbiLugNnBzjMW2HI-uoCjgQaKuPdtGCzpJHT0E4B6j84ilNmY_LtZmWrlnyePccIBdvG6L07pKGndXSg/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJm6dusQWbTirNkaifKwVJNQc-MMR4RU-f9UY7u1ir_SoPNkxeRVUbidyiWkPIbiLugNnBzjMW2HI-uoCjgQaKuPdtGCzpJHT0E4B6j84ilNmY_LtZmWrlnyePccIBdvG6L07pKGndXSg/s400/1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Nella finestra che si apre selezioniamo &lt;b&gt;Visual C# -&amp;gt; Windows Phone -&amp;gt; Windows Phone App&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDqlYD_6FrjxiogW0iWx6ibDLggV1Y_zJprkpmXtVedtnvQhqmiWi7M-ZzhOBiQJ1NrGqFEO6om9mvudZDWR6oxAcWVTltWLroK2CE3di3Hi0UY0wzSrLPRMVDLA5M_6rk44kzLh5QV1o/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;243&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDqlYD_6FrjxiogW0iWx6ibDLggV1Y_zJprkpmXtVedtnvQhqmiWi7M-ZzhOBiQJ1NrGqFEO6om9mvudZDWR6oxAcWVTltWLroK2CE3di3Hi0UY0wzSrLPRMVDLA5M_6rk44kzLh5QV1o/s400/2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Inseriamo un &lt;b&gt;Nome&lt;/b&gt;&amp;nbsp;e il &lt;b&gt;Percorso di salvataggio&lt;/b&gt;&amp;nbsp;e clicchiamo su &lt;b&gt;OK&lt;/b&gt;. In questa ultima finestra, lasciamo tutto così com&#39;è e clicchiamo su &lt;b&gt;OK&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9sXH3Rumj1aoOrpwPf2SbrOxi-8ZjO3Lybs4ti71lJy8KCz2cMr_cAO-MmbmbZfTx0Ps6debuHWZFa3MNE_zXRE0NYr4A0UVne0ZcRNfi4IjEblgdP5nDDhYJmPctifDpX3KCKzd_6JY/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9sXH3Rumj1aoOrpwPf2SbrOxi-8ZjO3Lybs4ti71lJy8KCz2cMr_cAO-MmbmbZfTx0Ps6debuHWZFa3MNE_zXRE0NYr4A0UVne0ZcRNfi4IjEblgdP5nDDhYJmPctifDpX3KCKzd_6JY/s1600/3.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Attendiamo che il progetto venga creato, finito il caricamento, ci verrà presentata una schermata simile a questa:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8fOrB_qKzVgZuFVgeCLhYg4VY43B0ziVmf088pWbztJb_9mst1vjAMK9EH4Kzf8HIgDRrGgQZQB2KqPCY-JziDvnaUIeVwkBfHS_L2KsNXUsRgRvoq_K93yiJTpW4dMwMKsrfr1s0HFM/s1600/4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;189&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8fOrB_qKzVgZuFVgeCLhYg4VY43B0ziVmf088pWbztJb_9mst1vjAMK9EH4Kzf8HIgDRrGgQZQB2KqPCY-JziDvnaUIeVwkBfHS_L2KsNXUsRgRvoq_K93yiJTpW4dMwMKsrfr1s0HFM/s400/4.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Concentriamoci sulla parte destra, quella del codice, apporteremo qualche modifica. Prima di tutto modifichiamo queste righe:&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjn1CNtRFQWce8RxOqN8Mq05jJ06mrNrpWz5IvydnWEjvrL80tzMfKQUX299Quygcz189TJRdVhWaOHm85sfWfELDbhjIX5NTSCI4Ybed3-h9tXLp4PvDQlPAfiTjNETCqzQgNve-mZ0/s1600/5.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;65&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjn1CNtRFQWce8RxOqN8Mq05jJ06mrNrpWz5IvydnWEjvrL80tzMfKQUX299Quygcz189TJRdVhWaOHm85sfWfELDbhjIX5NTSCI4Ybed3-h9tXLp4PvDQlPAfiTjNETCqzQgNve-mZ0/s320/5.png&quot; width=&quot;310&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhE2ZmIClwuv8HrspMBGxZxpwJBWNypvIMixSKvqZ6xoMhMBMaqGjeA1uzET2T06AMngxNqeyZ82b2ZyDYTR97m5nywf_LkzA4Z2srtrfXYQkg5pKReTQ9QxsYT56gusrKumEnKIksNRDQ/s1600/6.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;51&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhE2ZmIClwuv8HrspMBGxZxpwJBWNypvIMixSKvqZ6xoMhMBMaqGjeA1uzET2T06AMngxNqeyZ82b2ZyDYTR97m5nywf_LkzA4Z2srtrfXYQkg5pKReTQ9QxsYT56gusrKumEnKIksNRDQ/s320/6.png&quot; width=&quot;310&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br style=&quot;clear: both;&quot; /&gt;
Cancelliamo completamente questa parte di codice:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzqxjm0TrEaV7VEH14xiBGNmUtIEnJQBoKdZHNhITp61v_2GNBgAZy_0zAyNjommeZxoioBoIAL47qG5i3WXM-vq-UQtmAiQo_nV5XTO-OX2kRZuO17dw_nUeT9Csmc3C8QPBEF_yw74M/s1600/7.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;151&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzqxjm0TrEaV7VEH14xiBGNmUtIEnJQBoKdZHNhITp61v_2GNBgAZy_0zAyNjommeZxoioBoIAL47qG5i3WXM-vq-UQtmAiQo_nV5XTO-OX2kRZuO17dw_nUeT9Csmc3C8QPBEF_yw74M/s400/7.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Ed anche questa:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEdDi_uB4t1niyUp0C7K0yopcLFVW5aEOCyyHTggHaGiAvPVtZOMg-Zi31fmBaZd1i1ZYXzL7bFeRXwfeK9e-dI2OM1TgMeBHkzkcu_8pHN7Rwkx2eLScY5A9tzjm5D5m5G-iZ5kWfEE8/s1600/8.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;46&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEdDi_uB4t1niyUp0C7K0yopcLFVW5aEOCyyHTggHaGiAvPVtZOMg-Zi31fmBaZd1i1ZYXzL7bFeRXwfeK9e-dI2OM1TgMeBHkzkcu_8pHN7Rwkx2eLScY5A9tzjm5D5m5G-iZ5kWfEE8/s400/8.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Infine, eliminiamo questa ultima parte:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9j1e4odJ-VOGci-Da8QR00HDWQjPPMr5O00fYzhON8nRJ-5TafsZQoz0vfx9A7wPPZskjufgecl-P0HJuotAy5bjSU_SaCt9jwPDyTW0RceBHghxg0OwJa-EDNXGT2RyLMUkrI0c8Hvw/s1600/9.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;38&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9j1e4odJ-VOGci-Da8QR00HDWQjPPMr5O00fYzhON8nRJ-5TafsZQoz0vfx9A7wPPZskjufgecl-P0HJuotAy5bjSU_SaCt9jwPDyTW0RceBHghxg0OwJa-EDNXGT2RyLMUkrI0c8Hvw/s400/9.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Ora modifichiamo queste linee di codice:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;float: left; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyxhovO7B-gSKicWg1TK6MarHgATTiI8C-WmSFzEGwPADsdnI_KTcKk8Ogpe4C2bdcAgXSdr5dCq3DxCqeFANYS8Eyi87TSKXvZ0mygVuQmz8Eqc0OJl7oRLO5l_GNfTe5cQwlOmC3itk/s1600/10.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;48&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyxhovO7B-gSKicWg1TK6MarHgATTiI8C-WmSFzEGwPADsdnI_KTcKk8Ogpe4C2bdcAgXSdr5dCq3DxCqeFANYS8Eyi87TSKXvZ0mygVuQmz8Eqc0OJl7oRLO5l_GNfTe5cQwlOmC3itk/s320/10.png&quot; width=&quot;310&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;float: right; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh584QYlJHH6j6V26C0W5AIv8hLcvJsQwuyXPiGLGCkzIOXShht-wyYaH1JTmX8zXz9KjEFfBkf6b7EfvslIsksZJMELmvC9BeIhLWbCA4aMcUzhuCjQpgE53OL3vehtVS5SxG6iC6KwCY/s1600/11.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;54&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh584QYlJHH6j6V26C0W5AIv8hLcvJsQwuyXPiGLGCkzIOXShht-wyYaH1JTmX8zXz9KjEFfBkf6b7EfvslIsksZJMELmvC9BeIhLWbCA4aMcUzhuCjQpgE53OL3vehtVS5SxG6iC6KwCY/s320/11.png&quot; width=&quot;310&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br style=&quot;clear: both;&quot; /&gt;
Fatte tutte queste operazioni, il risultato dovrebbe essere simile a questo:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMPCX0bfNMznjWsXE0JYm7jK5Pw7HJHdTk4Bx1rGCp8TzZIcX_nrNN9DZracs8NUFxuqqMS5riq9nsFRfcD_9izcDwg-U7px1qjypqnCGovLa6SGlG3_zH1mAwoAnnv8iLuFQneOZqY9k/s1600/12.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;190&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMPCX0bfNMznjWsXE0JYm7jK5Pw7HJHdTk4Bx1rGCp8TzZIcX_nrNN9DZracs8NUFxuqqMS5riq9nsFRfcD_9izcDwg-U7px1qjypqnCGovLa6SGlG3_zH1mAwoAnnv8iLuFQneOZqY9k/s400/12.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Fino ad ora, non abbiamo fatto altro che creare una griglia con una riga, che occupa tutto lo schermo. &lt;b&gt;Javascript e l&#39;HTML 5&lt;/b&gt;, funzionano all&#39;interno di pagine web, quindi il prossimo passo sarà quello di inserire un &lt;b&gt;Web Browser&lt;/b&gt; all&#39;interno della riga, dove, all&#39;interno di esso verrà visualizzata la nostra applicazione. Modifichiamo questa riga:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;float: left; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;float: left; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh584QYlJHH6j6V26C0W5AIv8hLcvJsQwuyXPiGLGCkzIOXShht-wyYaH1JTmX8zXz9KjEFfBkf6b7EfvslIsksZJMELmvC9BeIhLWbCA4aMcUzhuCjQpgE53OL3vehtVS5SxG6iC6KwCY/s1600/11.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;54&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh584QYlJHH6j6V26C0W5AIv8hLcvJsQwuyXPiGLGCkzIOXShht-wyYaH1JTmX8zXz9KjEFfBkf6b7EfvslIsksZJMELmvC9BeIhLWbCA4aMcUzhuCjQpgE53OL3vehtVS5SxG6iC6KwCY/s320/11.png&quot; width=&quot;310&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;float: right; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKSxzW-jRyBePUQU60yNkGEUSqyeN_Q1xVk3IAyOENIruhEK8HOzYaWnklyMuu-_jtexXBpk9uM1mLoRfxbtSL0OM36XkU17QNcPJXc3yh9jyWkQ4muFYB-XaXvAcyVD0PmERC61bOcvw/s1600/13.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;54&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKSxzW-jRyBePUQU60yNkGEUSqyeN_Q1xVk3IAyOENIruhEK8HOzYaWnklyMuu-_jtexXBpk9uM1mLoRfxbtSL0OM36XkU17QNcPJXc3yh9jyWkQ4muFYB-XaXvAcyVD0PmERC61bOcvw/s320/13.png&quot; width=&quot;310&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br style=&quot;clear: both;&quot; /&gt;
Così avremmo aggiunto il nostro &lt;b&gt;Web Browser&lt;/b&gt;. Ora andremo a creare un po di cartelle per dare una struttura al nostro progetto. Apriamo il &lt;b&gt;Solution Explorer&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDQbLyjNB4nJH1ql2od7-KC81kAurhyphenhyphentikVWe_KLNRQjGW5ba9XbmYz_KWQrJWdFO-qOX6SFf0xhZ1BCV_QRMXVhbSqyYns63_FvIrECkhYs9EOIwGY4qyLP5OtxPUDtfzouWayHQWtKY/s1600/14.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDQbLyjNB4nJH1ql2od7-KC81kAurhyphenhyphentikVWe_KLNRQjGW5ba9XbmYz_KWQrJWdFO-qOX6SFf0xhZ1BCV_QRMXVhbSqyYns63_FvIrECkhYs9EOIwGY4qyLP5OtxPUDtfzouWayHQWtKY/s1600/14.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Selezioniamo il nostro progetto&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihxn-91uiRIKHEZ2ExcMHHBmKpGHShOmacEdwMFV5HYyvXh0rLYqtbKSmSRT1PHlSAg6OcnjUK8T399t-YC_gcFx7Y9cj-Xsv23aIL0G7P5W-R6qVBNKmBD-11DjLzgXzdaYgQPK3SBVg/s1600/15.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihxn-91uiRIKHEZ2ExcMHHBmKpGHShOmacEdwMFV5HYyvXh0rLYqtbKSmSRT1PHlSAg6OcnjUK8T399t-YC_gcFx7Y9cj-Xsv23aIL0G7P5W-R6qVBNKmBD-11DjLzgXzdaYgQPK3SBVg/s1600/15.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Clicchiamo con il tasto destro su di esso e selezioniamo &lt;b&gt;&amp;nbsp;Aggiungi -&amp;gt; Nuova cartella&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiePaw9czt0KsPNlreJ9oh1YvyvBloT3mXSGO3hiRmWGSV_O_lHBv-dimMlpk-WG0xCfHboBCJd_PNPK6eDp59-8vTrIuqkfpUeiyK0NApfUCkGHDgFMiE6FbVn7XVFwJl1-9e1sHM-leM/s1600/16.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;233&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiePaw9czt0KsPNlreJ9oh1YvyvBloT3mXSGO3hiRmWGSV_O_lHBv-dimMlpk-WG0xCfHboBCJd_PNPK6eDp59-8vTrIuqkfpUeiyK0NApfUCkGHDgFMiE6FbVn7XVFwJl1-9e1sHM-leM/s400/16.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Le cartelle da creare con questo procedimento sono:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;css&lt;/li&gt;
&lt;li&gt;html&lt;/li&gt;
&lt;li&gt;js&lt;/li&gt;
&lt;/ul&gt;
Creata la prima struttura, sempre dal &lt;b&gt;Solution Explorer&lt;/b&gt;&amp;nbsp;creiamo un nuovo file dentro la cartella &lt;b&gt;css&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8j1-7wUrnIX3GRjgFiyWIVAHgcJiNfSUZPN59najIW23GdXX9EkKdUxrrOnD5IO00AL44huW4WO-EUxL0J9a_deYKpDfYu2oeMGYxi6vQkkf5JxkVxjYq0wTCz80R-vsgLjM58dwqnsA/s1600/17.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;181&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8j1-7wUrnIX3GRjgFiyWIVAHgcJiNfSUZPN59najIW23GdXX9EkKdUxrrOnD5IO00AL44huW4WO-EUxL0J9a_deYKpDfYu2oeMGYxi6vQkkf5JxkVxjYq0wTCz80R-vsgLjM58dwqnsA/s400/17.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Nella finestra che si apre, selezioniamo &lt;b&gt;File di Testo&lt;/b&gt;,&amp;nbsp;nel campo nome inseriamo &lt;b&gt;default.css&lt;/b&gt;&amp;nbsp;e clicchiamo su &lt;b&gt;Aggiungi&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfZ-2lMZCdX1illFl7SJebiF0dNTuF6cX_NSayKAM4O1leoa319pRIasz2IksXOUShIWiB3u9lRcC_Zn8X03gEQi7sDSPkofYU-YzTaxTaVooJzi4754yZwvC-DacXOvhnqHZl6EJ3BaI/s1600/18.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;243&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfZ-2lMZCdX1illFl7SJebiF0dNTuF6cX_NSayKAM4O1leoa319pRIasz2IksXOUShIWiB3u9lRcC_Zn8X03gEQi7sDSPkofYU-YzTaxTaVooJzi4754yZwvC-DacXOvhnqHZl6EJ3BaI/s400/18.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Modifichiamo il file css, inserendo queste righe&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtj96TY5VDcrNDWkxy6vTvl-pZl9zxfBsEnfB3jYELHiYF8oZCYq3bAy4-PiCbEjCn80RSDW6RUNEcUwNEGp0qrwt8rwO3NEKxZrStx55Bq4xQYEqMZ9F3lMioGuBoQiQ9HZN08jB-1PI/s1600/19.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;190&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtj96TY5VDcrNDWkxy6vTvl-pZl9zxfBsEnfB3jYELHiYF8oZCYq3bAy4-PiCbEjCn80RSDW6RUNEcUwNEGp0qrwt8rwO3NEKxZrStx55Bq4xQYEqMZ9F3lMioGuBoQiQ9HZN08jB-1PI/s400/19.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
La riga nuova per tutti è la seguente:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;-ms-touch-action: none; &lt;/b&gt;Con questa riga, disabilitiamo lo scroll all&#39;interno del &lt;b&gt;Web Browser&lt;/b&gt;, nascondendo agli utenti, il fatto di essere a navigare una pagina web e rendendo l&#39;applicazione più nativa.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
Adesso torniamo nel &lt;b&gt;&amp;nbsp;Solution Explorer&lt;/b&gt;, clicchiamo con il destro sulla cartella &lt;b&gt;html&lt;/b&gt;&amp;nbsp;e selezioniamo &lt;b&gt;Aggiungi -&amp;gt; Nuovo elemento...&lt;/b&gt;&amp;nbsp;Questa volta nella finestra selezioniamo &lt;b&gt;File di Testo&lt;/b&gt;&amp;nbsp;e come nome diamo &lt;b&gt;default.html&lt;/b&gt;. In questo nuovo file aggiungiamo le seguenti righe:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2xcYdsNcSDfR-3rP9fw8fkRzNFHAm9gqnnH2hIXCwHM5ISwdi90uW6rTKCrW90RmPilKylCwdMpX6Ua8arPq3ozEZB-n8gz-qS0yH6oyqEYyaadmUftGlId4DgcC2uNeZhjM7_h-XGfQ/s1600/20.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;190&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2xcYdsNcSDfR-3rP9fw8fkRzNFHAm9gqnnH2hIXCwHM5ISwdi90uW6rTKCrW90RmPilKylCwdMpX6Ua8arPq3ozEZB-n8gz-qS0yH6oyqEYyaadmUftGlId4DgcC2uNeZhjM7_h-XGfQ/s400/20.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Semplicemente, sono tag &lt;b&gt;HTML&lt;/b&gt;. Torniamo al &lt;b&gt;Solution Explorer&lt;/b&gt;, clicchiamo con il destro sulla cartella &lt;b&gt;js&lt;/b&gt;, selezioniamo &lt;b&gt;Aggiungi -&amp;gt; Nuovo Elemento...&lt;/b&gt;&amp;nbsp;Nella finestra selezioniamo &lt;b&gt;File di Testo&lt;/b&gt;&amp;nbsp;e come nome diamo &lt;b&gt;default.js&lt;/b&gt;. Aggiungiamo le seguenti righe al nuovo file:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFsIrH7eVtIBfeaetsfHdhAohq2TMg37F2wMnmyyGowUaMbeM99-SVyK2gKslvA1HJ1xe-GKniWWKH8KB2b0ypxVX_l0w-oXlhEm6zUywjxfuz5mdJf2CYVGgmJZNMk4RLTxIqJz3vKaY/s1600/21.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;190&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFsIrH7eVtIBfeaetsfHdhAohq2TMg37F2wMnmyyGowUaMbeM99-SVyK2gKslvA1HJ1xe-GKniWWKH8KB2b0ypxVX_l0w-oXlhEm6zUywjxfuz5mdJf2CYVGgmJZNMk4RLTxIqJz3vKaY/s400/21.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Torniamo nella pagina &lt;b&gt;MainPage.xaml&lt;/b&gt;,&amp;nbsp;Al nuvo tag inserito in precedenza (quello del &lt;b&gt;Web Browser&lt;/b&gt;), dovremmo aggiungere dei nuovi attributi, ecco una breve spiegazione:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Source: &lt;/b&gt;questo attributo richiede il percorso del file html da visualizzare, quindi noti inseriremo il percorso del file &lt;b&gt;default.html&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-weight: bold; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8UFufYVjxd97mmD22gIx5ibx0oUcf41cvzVansGx-JEeoTz_Nfnzd5qZSJnG48DsT_od8g7kgKWvHDnikHIlV72EniTMO1FFq5GuTMfMTsLSNKV1w0AJq6DD0Isqa_UP60He95_DfBnw/s1600/22.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8UFufYVjxd97mmD22gIx5ibx0oUcf41cvzVansGx-JEeoTz_Nfnzd5qZSJnG48DsT_od8g7kgKWvHDnikHIlV72EniTMO1FFq5GuTMfMTsLSNKV1w0AJq6DD0Isqa_UP60He95_DfBnw/s1600/22.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Salviamo tutto&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUSV8atKln4FdWmgiccNVqNNkCphVT6Y6ImsZQeBT0eOetS-yj1xvkwwnmvduhI2PWq-QjTsIDVzBb9LEcvarbIMyLGrLP9jFr2zr2gAliQOSJUkgxXf4tI6wju4401mdIh0z2iOWJpO8/s1600/23.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUSV8atKln4FdWmgiccNVqNNkCphVT6Y6ImsZQeBT0eOetS-yj1xvkwwnmvduhI2PWq-QjTsIDVzBb9LEcvarbIMyLGrLP9jFr2zr2gAliQOSJUkgxXf4tI6wju4401mdIh0z2iOWJpO8/s1600/23.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
e proviamo ad eseguire&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgE9ZmJc50SHAJW1ZZrCKJDxfrxh2ya_DgM42GfuLRYQ5FUvxkq5r_4tnxSUmMloXEZu7DQTNXo_jFauYvhzz00-Fp1tX2gdqLsQRXJrOaCoUi-xpC30FqFJO-gVevjMAc35Iq48rRrJac/s1600/24.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgE9ZmJc50SHAJW1ZZrCKJDxfrxh2ya_DgM42GfuLRYQ5FUvxkq5r_4tnxSUmMloXEZu7DQTNXo_jFauYvhzz00-Fp1tX2gdqLsQRXJrOaCoUi-xpC30FqFJO-gVevjMAc35Iq48rRrJac/s1600/24.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;http://informaticasemplice.blogspot.it/2013/05/windows-phone-8-e-javascript-parte-2.html&quot; target=&quot;_blank&quot;&gt;Continua con la Parte 2&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://informaticasemplice.blogspot.com/feeds/7925853444883590488/comments/default' title='Commenti sul post'/><link rel='replies' type='text/html' href='http://informaticasemplice.blogspot.com/2013/05/windows-phone-8-e-javascript-parte-1.html#comment-form' title='0 Commenti'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1358727525610408775/posts/default/7925853444883590488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1358727525610408775/posts/default/7925853444883590488'/><link rel='alternate' type='text/html' href='http://informaticasemplice.blogspot.com/2013/05/windows-phone-8-e-javascript-parte-1.html' title='Windows Phone 8 e javascript - Parte 1'/><author><name>Niccolò Petrocchi</name><uri>http://www.blogger.com/profile/01057098047235180688</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJm6dusQWbTirNkaifKwVJNQc-MMR4RU-f9UY7u1ir_SoPNkxeRVUbidyiWkPIbiLugNnBzjMW2HI-uoCjgQaKuPdtGCzpJHT0E4B6j84ilNmY_LtZmWrlnyePccIBdvG6L07pKGndXSg/s72-c/1.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>