Control 通过Behavior监听键盘操作
摘要:View Code 1 <UserControl x:Class="Coinstar.Coin.Kiosk.Administration.Ui.ServiceMode.Views.IOBoardDeviceView" 2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 4 xmlns:mc="http://schemas..
阅读全文
posted @
2011-12-23 16:56
Damon-Cui
阅读(208)
推荐(0)
WPF简单动画之加载本地图片集
摘要:view 代码如下:View Code 1 <Grid> 2 <Grid.RowDefinitions> 3 <RowDefinition Height="50"/> 4 <RowDefinition Height="*"/> 5 </Grid.RowDefinitions> 6 <StackPanel Orientation="Horizontal"> 7 <Button x:Name="BtnPrevious" Width="
阅读全文
posted @
2011-12-17 15:45
Damon-Cui
阅读(1070)
推荐(0)
Behavior与View交互的用法
摘要:button 通过Behavior操作textbox内的textView 代码如下:View Code 1 <UserControl x:Class="TestApp.Views.TestView" 2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 4 xmlns:mc="http://schemas.openxmlf..
阅读全文
posted @
2011-12-17 11:36
Damon-Cui
阅读(248)
推荐(0)
根据网络URL地址转换图片
摘要:代码如下:Code Behind 1 void MainWindow_Loaded(object sender, RoutedEventArgs e) 2 { 3 string imgURL = "http://www.***.com/***.jpg"; 4 if (!String.IsNullOrEmpty(imgURL)) 5 { 6 Application.Current.Dispatcher.BeginInvoke(new Action(() => 7 { 8 //return byte[]...
阅读全文
posted @
2011-12-07 17:57
Damon-Cui
阅读(866)
推荐(0)