Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Media;
- using System.Windows.Media.Effects;
- namespace EffectsWPF
- {
- class Program
- {
- [STAThread]
- public static void Main()
- {
- var window = new Window();
- var viewbox = new Viewbox();
- var text = new TextBlock();
- var effect = new DropShadowEffect();
- effect.BlurRadius = 1;
- text.Foreground = Brushes.DeepSkyBlue;
- text.Text = "Hello, world!";
- text.Effect = effect;
- viewbox.Child = text;
- window.Content = viewbox;
- new Application().Run(window);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement