atelier:mitsuba

i love UI/UX, Blend, XAML, Behavior, P5, oF, Web, Tangible Bits and Physical computing. なにかあればお気軽にご連絡ください。atelier@c-mitsuba.com

Silverlight3 Out-of-Browserを試してみた。

実装方法はすごく簡単。
まず、VSを立ち上げて、Propertiesの中のAppManifest.xmlを開く。

すると、

<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
>
  <Deployment.Parts>
  </Deployment.Parts>

  <!-- Uncomment the markup and update the fields below to make your application offline enabled
    <Deployment.ApplicationIdentity>
        <ApplicationIdentity 
            ShortName="Out of Browser Silverlight Application" 
            Title="Window Title of Your Silverlight Application">
            <ApplicationIdentity.Blurb>Description of your Silverlight application</ApplicationIdentity.Blurb>
        </ApplicationIdentity>
    </Deployment.ApplicationIdentity>
  -->
</Deployment>

というコードがある。
それを下記のようにコメントアウトを外す。

<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
>
  <Deployment.Parts>
  </Deployment.Parts>

  <!-- Uncomment the markup and update the fields below to make your application offline enabled-->
    <Deployment.ApplicationIdentity>
        <ApplicationIdentity 
            ShortName="Out of Browser Silverlight Application" 
            Title="Window Title of Your Silverlight Application">
            <ApplicationIdentity.Blurb>Description of your Silverlight application</ApplicationIdentity.Blurb>
        </ApplicationIdentity>
    </Deployment.ApplicationIdentity>

</Deployment>

で、Build。

できたSilverlightのオブジェクトを右クリックする。
すると、Install Out of Browser Silverlight...onto this computer...
がクリックできるようになります。

で、インストールして、起動してみます。
ちゃんとローカルホストで動いています。


さてと、Uninstallはどうやってしましょう?

Installも簡単であれば、Uninstallももちろん簡単です。
Installした先のSilverlightオブジェクトを再度右クリックしてください。
すると、Remove this application...が出てきます。

それをクリックするだけで、Uninstallできます。

ね、簡単でしょ?w