本文整理汇总了C#中System.Windows.Controls.TextBox.ToAnimatedOpacity方法的典型用法代码示例。如果您正苦于以下问题:C# TextBox.ToAnimatedOpacity方法的具体用法?C# TextBox.ToAnimatedOpacity怎么用?C# TextBox.ToAnimatedOpacity使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Controls.TextBox
的用法示例。
在下文中一共展示了TextBox.ToAnimatedOpacity方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ApplicationCanvas
public ApplicationCanvas()
{
var r0shadow = new Rectangle();
r0shadow.Opacity = 0.5;
r0shadow.Fill = Brushes.Black;
r0shadow.AttachTo(this);
var r1shadow = new Rectangle();
r1shadow.Opacity = 0.5;
r1shadow.Fill = Brushes.Black;
r1shadow.AttachTo(this);
var rcontent = new Canvas().AttachTo(this);
var r0 = new Rectangle();
r0.Opacity = 0.8;
r0.Fill = Brushes.DarkGreen;
r0.AttachTo(rcontent);
var r1 = new Rectangle();
r1.Opacity = 0.8;
r1.Fill = Brushes.DarkGreen;
r1.AttachTo(rcontent);
r1.MoveTo(0, 96);
r0.SizeTo(500, 96 - 16);
r1.SizeTo(500, 230);
r0shadow.SizeTo(500, 96 - 16);
r1shadow.SizeTo(500, 230);
var t = new TextBox();
t.IsReadOnly = true;
// type: System.Windows.Controls.TextBlock
//method: Void set_Foreground(System.Windows.Media.Brush)
t.Foreground = Brushes.Yellow;
t.AttachTo(rcontent);
t.AcceptsReturn = true;
t.Text = "You have found a shop.\nSee something you like?";
t.Background = Brushes.Transparent;
t.BorderThickness = new Thickness(0);
t.FontSize = 24;
t.MoveTo(8, 8);
t2 = new TextBox();
t2.IsReadOnly = true;
// type: System.Windows.Controls.TextBlock
//method: Void set_Foreground(System.Windows.Media.Brush)
t2.Foreground = Brushes.Yellow;
t2.AttachTo(rcontent);
t2.AcceptsReturn = true;
t2.Text = "! First we will log you in to FACEBOOK and then to PAYPAL, takes a few...";
t2.Background = Brushes.Transparent;
t2.BorderThickness = new Thickness(0);
t2.MoveTo(8, 290);
t2o = t2.ToAnimatedOpacity();
t2o.Opacity = 0.2;
bg_ammo = new Rectangle();
bg_ammo.Fill = Brushes.Yellow;
bg_ammo.AttachTo(rcontent);
bg_ammo.SizeTo(400, 48);
bg_ammo.MoveTo(50, 128 + 32 - 8);
var ammo = new Avalon.Images.avatars_ammo();
ammo.AttachTo(rcontent);
ammo.MoveTo(32 + 32, 128 + 32);
overlay_ammo.Fill = Brushes.Yellow;
overlay_ammo.Opacity = 0;
overlay_ammo.AttachTo(rcontent);
overlay_ammo.SizeTo(400, 48);
overlay_ammo.MoveTo(50, 128 + 32 - 8);
var bg_ammo_opacity = bg_ammo.ToAnimatedOpacity();
overlay_ammo.Cursor = Cursors.Hand;
bg_ammo_opacity.Opacity = 0.5;
overlay_ammo.MouseEnter +=
//.........这里部分代码省略.........