Cool 给你的Visual Studio 添加音乐

转自:http://weblogs.asp.net/rrobbins/archive/2007/11/02/sound-events-for-visual-studio.aspx

太酷了,做程序员有时候也需要点娱乐.哈.(懒得翻译了,不复杂,看图就明白了)

Did you know you can assign sounds to a few Visual Studio events? You can assign a WAV file to play when a build fails or succeeds. Just open the Control Panel, select Sounds and Audio Devices and then click the Sounds tab. Scroll down to Microsoft Development Environment. I assigned my Build Succeeded to a WAV file of Darth Vader saying "All Too Easy" and my Build Failed to a WAV file of Han Solo saying "I got a bad feeling about this."

Sound Events

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
以下是一个简单的炫酷登录界面示例,使用了 WPF 技术: 1. 创建一个新的 WPF 应用程序项目 2. 在 MainWindow.xaml 中添加以下代码: ```xaml <Window x:Class="CoolLogin.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Cool Login" Height="450" Width="800" Background="#FF2C3E50"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="1*"/> <RowDefinition Height="2*"/> <RowDefinition Height="1*"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid Grid.Row="1" Margin="50"> <Grid.RowDefinitions> <RowDefinition Height="50"/> <RowDefinition Height="50"/> <RowDefinition Height="50"/> <RowDefinition Height="50"/> <RowDefinition Height="50"/> <RowDefinition Height="50"/> <RowDefinition Height="50"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <Label Grid.Row="0" Content="Cool Login" FontSize="32" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/> <TextBox Grid.Row="1" Margin="0,10,0,0" Height="40" HorizontalAlignment="Stretch" VerticalAlignment="Center" BorderBrush="White" BorderThickness="0 0 0 2" Background="#FF2C3E50" Foreground="White" PlaceholderText="Username"/> <PasswordBox Grid.Row="2" Margin="0,10,0,0" Height="40" HorizontalAlignment="Stretch" VerticalAlignment="Center" BorderBrush="White" BorderThickness="0 0 0 2" Background="#FF2C3E50" Foreground="White" PlaceholderText="Password"/> <Button Grid.Row="3" Margin="0,20,0,0" Height="40" HorizontalAlignment="Stretch" VerticalAlignment="Center" Background="#FF27AE60" Foreground="White" Content="Log In" BorderBrush="#FF27AE60" BorderThickness="2" FontSize="16"/> <Label Grid.Row="4" Margin="0,20,0,0" Content="or" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/> <Button Grid.Row="5" Margin="0,20,0,0" Height="40" HorizontalAlignment="Stretch" VerticalAlignment="Center" Background="#FF3B5998" Foreground="White" Content="Facebook" BorderBrush="#FF3B5998" BorderThickness="2" FontSize="16"/> <Button Grid.Row="6" Margin="0,20,0,0" Height="40" HorizontalAlignment="Stretch" VerticalAlignment="Center" Background="#FF55ACEE" Foreground="White" Content="Twitter" BorderBrush="#FF55ACEE" BorderThickness="2" FontSize="16"/> </Grid> </Grid> </Window> ``` 3. 运行程序,即可看到一个简单的炫酷登录界面。 界面效果如下图所示: ![CoolLogin界面效果图](https://i.imgur.com/2ZpHJ2n.png)

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值