91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 4.89MB
    文件類型: .zip
    金幣: 2
    下載: 1 次
    發(fā)布日期: 2023-10-29
  • 語言: C#
  • 標(biāo)簽: 控件模版??

資源簡介

TextBox樣式包括:水印、富文本格式、密碼框、只讀、搜索、選擇文件路徑 Button樣式:鼠標(biāo)移上去變色、圖標(biāo)+文字、勾選 Loading樣式:仿VS2015的等待動畫、原型進(jìn)度條 Image樣式:轉(zhuǎn)動 ComboBox樣式:水印、日歷、清楚按鈕 TreeView樣式:仿QQ樣式 ListBox樣式:單選、多選

資源截圖

代碼片段和文件信息

//source(?Microsoft?All-In-One?Code?framework?):http://1code.codeplex.com/
using?System;
using?System.Drawing;
using?System.IO;
using?System.Runtime.InteropServices;
using?System.Windows;
using?System.Windows.Interop;
using?System.Windows.Media;
using?System.Windows.Media.Imaging;
using?System.Windows.Threading;
using?File?=?System.Utility.Helper.File;
using?Image?=?System.Windows.Controls.Image;

namespace?Util.Controls
{
????///?
????///?支持GIF動畫圖片播放的圖片控件,GIF圖片源GIFSource
????///?

????public?class?AnimatedGIF?:?Image
????{
????????public?static?readonly?DependencyProperty?GIFSourceProperty?=?DependencyProperty.Register(
????????????“GIFSource“?typeof(string)?typeof(AnimatedGIF)?new?Propertymetadata(OnSourcePropertyChanged));

????????///?
????????///?GIF圖片源,支持相對路徑、絕對路徑
????????///?

????????public?string?GIFSource
????????{
????????????get?{?return?(string)GetValue(GIFSourceProperty);?}
????????????set?{?SetValue(GIFSourceProperty?value);?}
????????}

????????internal?Bitmap?Bitmap;?//?Local?bitmap?member?to?cache?image?resource
????????internal?BitmapSource?BitmapSource;
????????public?delegate?void?frameUpdatedEventHandler();

????????///?
????????///?Delete?local?bitmap?resource
????????///?Reference:?http://msdn.microsoft.com/en-us/library/dd183539(VS.85).aspx
????????///?

????????[DllImport(“gdi32.dll“?CharSet?=?CharSet.Auto?SetLastError?=?true)]
????????static?extern?bool?Deleteobject(IntPtr?hobject);

????????protected?override?void?OnInitialized(EventArgs?e)
????????{
????????????base.OnInitialized(e);
????????????this.Loaded?+=?AnimatedGIF_Loaded;
????????????this.Unloaded?+=?AnimatedGIF_Unloaded;
????????}

????????void?AnimatedGIF_Unloaded(object?sender?RoutedEventArgs?e)
????????{
????????????this.StopAnimate();
????????}

????????void?AnimatedGIF_Loaded(object?sender?RoutedEventArgs?e)
????????{
????????????BindSource(this);
????????}

????????///?
????????///?Start?animation
????????///?

????????public?void?StartAnimate()
????????{
????????????ImageAnimator.Animate(Bitmap?OnframeChanged);
????????}

????????///?
????????///?Stop?animation
????????///?

????????public?void?StopAnimate()
????????{
????????????ImageAnimator.StopAnimate(Bitmap?OnframeChanged);
????????}

????????///?
????????///?Event?handler?for?the?frame?changed
????????///?

????????private?void?OnframeChanged(object?sender?EventArgs?e)
????????{
????????????Dispatcher.BeginInvoke(DispatcherPriority.Normal
???????????????????????????????????new?frameUpdatedEventHandler(frameUpdatedCallback));
????????}

????????private?void?frameUpdatedCallback()
????????{
????????????ImageAnimator.Updateframes();

????????????if?(BitmapSource?!=?null)
????????????????BitmapSource.Freeze();

????????????//?Convert?the?bitmap?to?BitmapSource?that?can?be?display?in?WPF?Visua

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2016-04-16?22:24??Util.Controls\
?????目錄???????????0??2016-04-16?22:43??Util.Controls\Util.Controls\
?????目錄???????????0??2016-04-16?22:18??Util.Controls\Util.Controls\Control\
?????文件????????4737??2016-04-16?22:18??Util.Controls\Util.Controls\Control\AnimatedGIF.cs
?????文件????????5153??2016-04-16?22:18??Util.Controls\Util.Controls\Control\BulletCheckBox.xaml
?????文件????????2366??2016-04-16?22:18??Util.Controls\Util.Controls\Control\BulletCheckBox.xaml.cs
?????文件????????3315??2016-04-16?22:18??Util.Controls\Util.Controls\Control\BusyBox.xaml
?????文件?????????814??2016-04-16?22:18??Util.Controls\Util.Controls\Control\BusyBox.xaml.cs
?????文件????????9956??2016-04-16?22:18??Util.Controls\Util.Controls\Control\FButton.xaml
?????文件????????5609??2016-04-16?22:18??Util.Controls\Util.Controls\Control\FButton.xaml.cs
?????文件????????1427??2016-04-16?22:18??Util.Controls\Util.Controls\Control\FImage.xaml
?????文件????????2955??2016-04-16?22:18??Util.Controls\Util.Controls\Control\FImage.xaml.cs
?????文件?????????745??2016-04-16?22:18??Util.Controls\Util.Controls\Control\HighTextBlock.xaml
?????文件????????3857??2016-04-16?22:18??Util.Controls\Util.Controls\Control\HighTextBlock.xaml.cs
?????文件????????2498??2016-04-16?22:18??Util.Controls\Util.Controls\Control\MessageBoxX.xaml
?????文件????????4537??2016-04-16?22:18??Util.Controls\Util.Controls\Control\MessageBoxX.xaml.cs
?????文件???????15826??2016-04-16?22:18??Util.Controls\Util.Controls\Control\MultiComboBox.xaml
?????文件????????2285??2016-04-16?22:18??Util.Controls\Util.Controls\Control\MultiComboBox.xaml.cs
?????文件????????9052??2016-04-16?22:18??Util.Controls\Util.Controls\Control\ProgressRing.cs
?????文件???????21339??2016-04-16?22:18??Util.Controls\Util.Controls\Control\ProgressRing.xaml
?????目錄???????????0??2016-04-16?22:43??Util.Controls\Util.Controls\Control\ThumbnailImage\
?????文件?????????252??2016-04-16?22:18??Util.Controls\Util.Controls\Control\ThumbnailImage\EnumThumbnail.cs
?????文件?????????435??2016-04-16?22:18??Util.Controls\Util.Controls\Control\ThumbnailImage\IThumbnailProvider.cs
?????文件?????????822??2016-04-16?22:18??Util.Controls\Util.Controls\Control\ThumbnailImage\ImageThumbnailProvider.cs
?????文件????????6701??2016-04-16?22:43??Util.Controls\Util.Controls\Control\ThumbnailImage\ThumbnailImage.cs
?????文件?????????890??2016-04-16?22:18??Util.Controls\Util.Controls\Control\ThumbnailImage\ThumbnailProviderFactory.cs
?????文件????????1158??2016-04-16?22:18??Util.Controls\Util.Controls\Control\ThumbnailImage\VedioThumbnailProvider.cs
?????文件????????1082??2016-04-16?22:18??Util.Controls\Util.Controls\Control\ThumbnailImage\WebImageThumbnailProvider.cs
?????文件???????30493??2016-04-16?22:18??Util.Controls\Util.Controls\Control\VirtualizingWrapPanel.cs
?????文件????????1727??2015-12-22?15:49??Util.Controls\Util.Controls\Control\WaitingBox.xaml
?????文件????????1698??2015-12-22?15:49??Util.Controls\Util.Controls\Control\WaitingBox.xaml.cs
............此處省略515個文件信息

評論

共有 條評論

相關(guān)資源