1 Star 2 Fork 0

JackuXL/WearMusic-Transmitter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
MainWindow.xaml 2.88 KB
一键复制 编辑 原始数据 按行查看 历史
JackuXL 提交于 2021-08-10 16:11 . 适配WearMusic v3
<Window x:Class="WearMusicTransmitter.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
mc:Ignorable="d"
Title="WearMusic 音乐传输" Height="394.694" Width="663.627" Icon="ic_launcher_round.png">
<materialDesign:DialogHost
Identifier="RootDialog"
DialogTheme="Inherit"
SnackbarMessageQueue="{Binding ElementName=MainSnackbar, Path=MessageQueue}">
<Grid>
<TextBlock HorizontalAlignment="Left" Margin="32,51,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="25" Width="115" FontSize="16"><Run Text="当前设备:"/><LineBreak/><Run/></TextBlock>
<ComboBox x:Name="cmb_devices" HorizontalAlignment="Left" Margin="152,47,0,0" VerticalAlignment="Top" Width="146" Height="30" FontSize="14"/>
<TextBox x:Name="tb_path" HorizontalAlignment="Left" Height="32" Margin="32,116,0,0" TextWrapping="Wrap" materialDesign:HintAssist.Hint="路径..." VerticalAlignment="Top" Width="434" FontSize="16" CaretBrush="#FF2175F3"/>
<RadioButton x:Name="rb_mp3" Content="音频" HorizontalAlignment="Left" Margin="32,185,0,0" VerticalAlignment="Top" IsChecked="True" Height="26" Width="130"/>
<RadioButton x:Name="rb_lrc" Content="歌词" HorizontalAlignment="Left" Margin="195,185,0,0" VerticalAlignment="Top" Height="26" Width="113"/>
<RadioButton x:Name="rb_jpg" Content="封面" HorizontalAlignment="Left" Margin="347,185,0,0" VerticalAlignment="Top" Height="26" Width="119"/>
<Button x:Name="btn_push" Content="推送" HorizontalAlignment="Left" Margin="522,283,0,0" VerticalAlignment="Top" Width="94" Height="40" Click="btn_push_Click"/>
<Button x:Name="btn_choose" Style="{StaticResource MaterialDesignFloatingActionMiniButton}" HorizontalAlignment="Left" ToolTip="MaterialDesignFloatingActionMiniButton" Margin="535,116,0,156" Height="70" Width="70" RenderTransformOrigin="0.961,-0.088" Click="btn_choose_Click">
<materialDesign:PackIcon Kind="FileEditOutline" Height="30" Width="30" />
</Button>
<TextBlock HorizontalAlignment="Left" Margin="32,246,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="56" Width="276" Text="Tip:请将文件命名为歌曲名--歌手名,并确保同一歌曲的音频、歌词、封面的文件名(即.前面的部分)相同,以便软件识别" Foreground="#FF707070"/>
<materialDesign:Snackbar
x:Name="MainSnackbar"
MessageQueue="{materialDesign:MessageQueue}" />
</Grid>
</materialDesign:DialogHost>
</Window>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/JackuXL/WearMusic-Transmitter.git
git@gitee.com:JackuXL/WearMusic-Transmitter.git
JackuXL
WearMusic-Transmitter
WearMusic-Transmitter
master

搜索帮助