You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
5.4 KiB

<Window x:Class="Container.ChildWindows.GetUrl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="设备信息" Height="500" Width="400" Topmost="True" Loaded="Services_Loaded" Closed="Win_Closed" WindowStyle="None" AllowsTransparency="True">
<Canvas x:Name="Mainp">
<Canvas x:Name="deviceinfo" Visibility="Visible" Height="500" Width="400" >
<Canvas.Background>
<ImageBrush ImageSource="../image/background.jpg"/>
</Canvas.Background>
<TextBox x:Name="Text_RegKey" FontSize="12" Foreground="Black" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center" Width="237" Height="39" Canvas.Left="127" Canvas.Top="83" BorderThickness="0" Background="White"/>
<Label x:Name="Label_RegKey" FontWeight="Bold" FontSize="12" FontFamily="HYQiHei" Foreground="#808080" Content="商场激活码" Canvas.Top="92" Canvas.Left="54"/>
<!--<TextBox x:Name="Text_HttpUrl" FontSize="12" Foreground="Black" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center" Width="237" Height="39" Canvas.Left="127" Canvas.Top="148" BorderThickness="0" Background="White"/>-->
<!--<Label x:Name="Label_WsUrl" FontWeight="Bold" FontSize="12" FontFamily="HYQiHei" Foreground="#808080" Content="Http地址" Canvas.Top="157" Canvas.Left="64"/>-->
<!--<TextBox x:Name="Text_WsUrl" FontSize="12" Foreground="Black" Background="White" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center" Width="237" Height="39" Canvas.Top="203" Canvas.Left="127" BorderThickness="0"/>-->
<!--<Label x:Name="Label_ExePath" FontWeight="Bold" FontSize="12" FontFamily="HYQiHei" Foreground="#808080" Content="Websocket地址" Canvas.Top="212" Canvas.Left="26"/>-->
<Label x:Name="Label_HttpUrl" FontWeight="Bold" FontSize="12" FontFamily="HYQiHei" Foreground="#808080" Content="应用程序路径" Canvas.Top="157" Canvas.Left="40"/>
<TextBox x:Name="Text_ExePath" FontSize="12" GotFocus="ExeFile_Click" Foreground="Black" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center" Width="237" Height="39" Canvas.Top="148" Canvas.Left="127" BorderThickness="0">
<TextBox.Resources>
<VisualBrush x:Key="HelpBrush" TileMode="None" Opacity="1" Stretch="None" AlignmentX="Left">
<VisualBrush.Visual>
<TextBox Width="237" Height="39" BorderThickness="0" Foreground="#C0C0C0" Background="White" FontSize="10" VerticalContentAlignment="Center" VerticalAlignment="Center" Text="可选" />
</VisualBrush.Visual>
</VisualBrush>
</TextBox.Resources>
<TextBox.Style>
<Style TargetType="TextBox">
<Style.Triggers>
<Trigger Property="Text" Value="{x:Null}">
<Setter Property="Background" Value="{StaticResource HelpBrush}"/>
</Trigger>
<Trigger Property="Text" Value="">
<Setter Property="Background" Value="{StaticResource HelpBrush}"/>
</Trigger>
</Style.Triggers>
</Style>
</TextBox.Style>
</TextBox>
<Label x:Name="lab_msg" HorizontalAlignment="Center" HorizontalContentAlignment="Center" Foreground="Red" Content="Label" Visibility="Hidden" Canvas.Top="209" Width="400" Height="27"/>
<Button x:Name="ButtonOK" Canvas.Left="154" Canvas.Top="261" Width="91" Height="27" Click="Button_Click">
<Button.Style>
<Style TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Canvas Name="cvs" Background="Transparent" Canvas.Top="351" Width="91" Height="27">
<Image Name="Img" Source="../image/Btn_OK.jpg" Height="27" Width="91"/>
<TextBlock Name="tbSale" FontWeight="Bold" Foreground="Transparent" Width="91" Canvas.Top="7" FontFamily="HYQiHei" Height="27" FontSize="15" TextAlignment="Center" Text="完成"></TextBlock>
</Canvas>
<ControlTemplate.Triggers>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" Value="#b6b6b6" TargetName="cvs" />
<Setter Property="Foreground" Value="White" TargetName="tbSale" />
<Setter Property="Visibility" Value="Hidden" TargetName="Img" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Button.Style>
</Button>
</Canvas>
</Canvas>
</Window>