wpf 相关实例代码例子

时间:2012-11-22 14:45:26
【文件属性】:

文件名称:wpf 相关实例代码例子

文件大小:618KB

文件格式:ZIP

更新时间:2012-11-22 14:45:26

wpf 实例 源代码

wpf 多个 相关实例代码例子 namespace LogonScreen { using System; using System.Collections; using System.IO; using System.Windows; using System.Windows.Controls; using System.Windows.Media; using System.Windows.Navigation; using System.Windows.Markup; using System.Windows.Input; using System.Windows.Media.Animation; public partial class Default { private static bool resourceLoaded = false; ResourceDictionary _defaultTheme ; ResourceDictionary _lunaTheme; ResourceDictionary _toonsTheme ; ResourceDictionary _xBoxTheme; private void Init (object sender, System.EventArgs args) { _defaultTheme = new Resources_Default(); _lunaTheme = new Resources_Luna(); _toonsTheme = new Resources_Toons(); _xBoxTheme = new Resources_XBox(); Application.Current.Resources = _defaultTheme; } private void OnMouseEnter(object sender, MouseEventArgs args) { resourceLoaded = true; } void ChangeUser (object sender, SelectionChangedEventArgs e) { if (!resourceLoaded) return; switch (UserTilesListBox.SelectedIndex) { case 0: Application.Current.Resources = _defaultTheme; break; case 1: Application.Current.Resources = _lunaTheme; break; case 2: Application.Current.Resources = _xBoxTheme; break; case 3: Application.Current.Resources = _toonsTheme; break; } } } }


【文件预览】:
readme.htm
csharp
----mssccprj.scc(186B)
----resources_toons.xaml.cs(175B)
----default.xaml.cs(2KB)
----resources_toons.xaml(38KB)
----resources_default.xaml(20KB)
----resources_luna.xaml(22KB)
----default.xaml(2KB)
----resources_default.xaml.cs(179B)
----app.xaml(831B)
----logonscreen.csproj(4KB)
----resources_xbox.xaml(31KB)
----resources_xbox.xaml.cs(173B)
----images()
--------tile_tobey.png(138KB)
--------tile_patrick.png(163KB)
--------tile_halo.png(143KB)
--------tile_abbey.png(148KB)
----resources_luna.xaml.cs(173B)
Metadata

网友评论

  • 新手学习wpf的例子
  • 新手学习wpf的例子
  • 学习wpf的例子
  • 帮助学习wpf的例子,很多xaml代码很有用的