<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>WPF</title><link>http://blog.blueshop.com.tw/swtnwr/category/2058.aspx</link><description>WPF</description><managingEditor>馬小玲</managingEditor><dc:language>zh-CHT</dc:language><generator>.Text Version 0.95.2004.101</generator><item><dc:creator>馬小玲</dc:creator><title>WPF(2)-分離程式邏輯與外觀</title><link>http://blog.blueshop.com.tw/swtnwr/archive/2007/09/04/52266.aspx</link><pubDate>Tue, 04 Sep 2007 04:04:00 GMT</pubDate><guid>http://blog.blueshop.com.tw/swtnwr/archive/2007/09/04/52266.aspx</guid><wfw:comment>http://blog.blueshop.com.tw/swtnwr/comments/52266.aspx</wfw:comment><comments>http://blog.blueshop.com.tw/swtnwr/archive/2007/09/04/52266.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.blueshop.com.tw/swtnwr/comments/commentRss/52266.aspx</wfw:commentRss><trackback:ping>http://blog.blueshop.com.tw/swtnwr/services/trackbacks/52266.aspx</trackback:ping><description>.xaml&lt;br&gt;&lt;textarea name="code" class="xml" cols="50" rows="6"&gt;&amp;lt;Window x:Class="WindowsApplication1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="WindowsApplication1" Height="300" Width="300"
    &amp;gt;
    &amp;lt;Grid&amp;gt;
      &amp;lt;Button Width="100" Height="50" Click="click"&amp;gt;
        &amp;lt;MediaElement Source="D:\影片\蕭中劍MV.wmv"&amp;gt;
        &amp;lt;/MediaElement&amp;gt;
      &amp;lt;/Button&amp;gt;
      &amp;lt;Button Height="43" Margin="97,29.1104294478528,91,0" Name="button1" VerticalAlignment="Top" Click="click1" Visibility="Visible" AllowDrop="False" ClipToBounds="False" FlowDirection="LeftToRight" ForceCursor="False" OverridesDefaultStyle="False"  &amp;gt;貓&amp;lt;/Button&amp;gt;
  &amp;lt;/Grid&amp;gt;
&amp;lt;/Window&amp;gt;&lt;/textarea&gt;&lt;br&gt;.xaml.cs&lt;br&gt;&lt;textarea name="code" class="c#" cols="50" rows="6"&gt;using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;


namespace WindowsApplication1
{
    /// &amp;lt;summary&amp;gt;
    /// Interaction logic for Window1.xaml
    /// &amp;lt;/summary&amp;gt;

    public partial class Window1 : System.Windows.Window
    {

        public Window1()
        {
            InitializeComponent();
        }

        public void click(object sender,RoutedEventArgs e)
        {
            Button x = (Button)sender;
            if(x.Width==900)
            {
                x.Width = 600;
                x.Height = 200;
            }
            else
            {
                x.Width = 900;
                x.Height = 300;
            }
          
        }

        public void click1(object sender, RoutedEventArgs e)
        {
            Button y = (Button)sender;
            if (y.Width ==900)
            {
                y.Width = 120;
                y.Height = 40;
            }
            else
            {
                y.Width = 900;
                y.Height = 300;
            }

        }
    }
}&lt;/textarea&gt;&lt;br&gt;以上是一個簡單的範例，由美工人員設計XAML，程式開發人員來負責.CS的部份，之後會開始先po一些xaml的基礎，asp.net ajax也是會持續的喔^^。&lt;br&gt;&lt;img src ="http://blog.blueshop.com.tw/swtnwr/aggbug/52266.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>馬小玲</dc:creator><title>WPF(1)-WPF的核心理念</title><link>http://blog.blueshop.com.tw/swtnwr/archive/2007/07/24/51883.aspx</link><pubDate>Tue, 24 Jul 2007 21:56:00 GMT</pubDate><guid>http://blog.blueshop.com.tw/swtnwr/archive/2007/07/24/51883.aspx</guid><wfw:comment>http://blog.blueshop.com.tw/swtnwr/comments/51883.aspx</wfw:comment><comments>http://blog.blueshop.com.tw/swtnwr/archive/2007/07/24/51883.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.blueshop.com.tw/swtnwr/comments/commentRss/51883.aspx</wfw:commentRss><trackback:ping>http://blog.blueshop.com.tw/swtnwr/services/trackbacks/51883.aspx</trackback:ping><description>&lt;P&gt;WPF的核心理念-「&lt;FONT color=#ff0000&gt;分離程式邏輯及外觀&lt;/FONT&gt;」，&amp;nbsp;引用於鄭淑芬老師的書(WPF新一代使用體驗開發實務)，這句將WPF的精神都點出來嚕&lt;/P&gt;
&lt;P&gt;目前尚在研讀WPF中，研讀過後，會再將自己吸收的心得跟大家分享。&amp;nbsp;&lt;/P&gt;&lt;img src ="http://blog.blueshop.com.tw/swtnwr/aggbug/51883.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>