2011年6月21日 星期二

Web Standards Update for Microsoft Visual Studio 2010 SP1 下載

為Visual Studio 2010 SP1提供HTML5 、CSS3的支援

詳細說明請參考這篇文章

下載網址 點我

下載後安裝畫面

image

image

一直按下一步

image

安裝完成後開啟Visual Studio 2010編輯網頁時,就可以看到HTML5的選項。

image

2011年6月16日 星期四

Microsoft Technology Associate (MTA) 新認證

即將發佈的新認證- MTA 。

看起來像是IT、程設與資料庫的基礎考試。

對象是學生、教師、學校的IT人員

底下資料來自微軟網站,參考 http://www.microsoft.com/learning/en/us/certification/mta.aspx

 

image

2011年6月14日 星期二

在WPF應用程式自訂Command

1.在WPF應用程式中加入一個類別
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;
namespace WpfApplication1 {
public class UICommands {
        public static RoutedUICommand ChangeBGColorCommand =
            new RoutedUICommand ( );
    }
}
2.在XAML Window 中加入命名空間
xmlns:cmd="clr-namespace:WpfApplication1"
image
3.加Window.CommandBindings
<Window.CommandBindings>
       <CommandBinding x:Name="changebg"  Executed="changebg_Executed"
                        Command="cmd:UICommands.ChangeBGColorCommand"
                       />
   </Window.CommandBindings>
image
4.寫changebg_Executed 事件
private void changebg_Executed ( object sender , ExecutedRoutedEventArgs e ) {
           this.button1.Background = new SolidColorBrush ( Colors.Red );
       }
image
5.在Window加入StackPanel 、Menu、MenuItem 、Button
<StackPanel >
        <Menu>
            <MenuItem Header="_Menu" >
                <MenuItem Header="Change "  
                          Command="cmd:UICommands.ChangeBGColorCommand"
                 />
             
            </MenuItem>
        </Menu>
        <Button Content="Button" Height="23" Name="button1" Width="75" />
    </StackPanel>
image
6.Run
image

2011年6月8日 星期三

在WPF Application設定Splash Screen

在WPF Application設定Splash Screen的動作很簡單,先加一張圖片到WPF Application,然後將Build Action設定為SplashScreen就可以了。

image

總網頁瀏覽量