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.
99 lines
5.2 KiB
99 lines
5.2 KiB
<Page x:Class="BBWY.Client.Views.Setting.ShopSetting"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:BBWY.Client.Views.Setting"
|
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls"
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
xmlns:cmodel="clr-namespace:BBWY.Client.Models"
|
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="450" d:DesignWidth="800"
|
|
Title="ShopSetting"
|
|
DataContext="{Binding ShopSetting,Source={StaticResource Locator}}">
|
|
<Page.Resources>
|
|
<ObjectDataProvider x:Key="PlatformProvider" MethodName="GetValues" ObjectType="{x:Type sys:Enum}">
|
|
<ObjectDataProvider.MethodParameters>
|
|
<x:Type TypeName="cmodel:Platform"/>
|
|
</ObjectDataProvider.MethodParameters>
|
|
</ObjectDataProvider>
|
|
<Style x:Key="textblockPropertyStyle" TargetType="TextBlock">
|
|
<Setter Property="HorizontalAlignment" Value="Right"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
<Setter Property="Margin" Value="0,0,5,0"/>
|
|
</Style>
|
|
<Style x:Key="textboxValueStyle" TargetType="{x:Type c:BTextBox}">
|
|
<Setter Property="Width" Value="150"/>
|
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
|
<Setter Property="Height" Value="30"/>
|
|
<Setter Property="Background" Value="White"/>
|
|
<Setter Property="BorderBrush" Value="{StaticResource TextBox.BorderBrush}"/>
|
|
</Style>
|
|
</Page.Resources>
|
|
<b:Interaction.Triggers>
|
|
<b:EventTrigger EventName="Loaded">
|
|
<b:InvokeCommandAction Command="{Binding LoadCommand}"/>
|
|
</b:EventTrigger>
|
|
<b:EventTrigger EventName="Unloaded">
|
|
<b:InvokeCommandAction Command="{Binding UnloadCommand}"/>
|
|
</b:EventTrigger>
|
|
</b:Interaction.Triggers>
|
|
<Grid>
|
|
<c:RoundWaitProgress Play="{Binding IsLoading}" Panel.ZIndex="999"/>
|
|
<Grid Margin="5,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="100"/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="40"/>
|
|
<RowDefinition Height="40"/>
|
|
<RowDefinition Height="40"/>
|
|
<RowDefinition Height="40"/>
|
|
<RowDefinition Height="40"/>
|
|
<RowDefinition Height="40"/>
|
|
<RowDefinition Height="40"/>
|
|
<RowDefinition Height="40"/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Text="管理密码" Style="{StaticResource textblockPropertyStyle}"/>
|
|
<c:BTextBox Grid.Column="1" Style="{StaticResource textboxValueStyle}" IsEnabled="False"
|
|
DisableBgColor="{StaticResource TextBox.Disable.BgColor}"/>
|
|
|
|
<TextBlock Text="平台扣点" Style="{StaticResource textblockPropertyStyle}" Grid.Row="1"/>
|
|
<c:BTextBox Grid.Column="1" Style="{StaticResource textboxValueStyle}" Grid.Row="1" IsEnabled="False"
|
|
DisableBgColor="{StaticResource TextBox.Disable.BgColor}"/>
|
|
|
|
<TextBlock Text="采购平台" Style="{StaticResource textblockPropertyStyle}" Grid.Row="2"/>
|
|
<ComboBox ItemsSource="{Binding Source={StaticResource PlatformProvider}}"
|
|
Grid.Row="2" Grid.Column="1"
|
|
SelectedItem="{Binding PurchaseAccount.PurchasePlatformId}"
|
|
DisplayMemberPath="."
|
|
Height="25"
|
|
Width="150"
|
|
HorizontalAlignment="Left"
|
|
VerticalContentAlignment="Center"/>
|
|
|
|
<TextBlock Text="账号名称" Style="{StaticResource textblockPropertyStyle}" Grid.Row="3"/>
|
|
<c:BTextBox Grid.Column="1" Style="{StaticResource textboxValueStyle}" Grid.Row="3"
|
|
Text="{Binding PurchaseAccount.AccountName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
|
<TextBlock Text="AppKey" Style="{StaticResource textblockPropertyStyle}" Grid.Row="4"/>
|
|
<c:BTextBox Grid.Column="1" Grid.Row="4"
|
|
Text="{Binding PurchaseAccount.AppKey,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
|
<TextBlock Text="AppSecret" Style="{StaticResource textblockPropertyStyle}" Grid.Row="5"/>
|
|
<c:BTextBox Grid.Column="1" Grid.Row="5"
|
|
Text="{Binding PurchaseAccount.AppSecret,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
|
<TextBlock Text="AppToken" Style="{StaticResource textblockPropertyStyle}" Grid.Row="6"/>
|
|
<c:BTextBox Grid.Column="1" Grid.Row="6"
|
|
Text="{Binding PurchaseAccount.AppToken,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
|
<c:BButton Content="保存" Grid.Column="1" Grid.Row="7" Width="80" HorizontalAlignment="Left"
|
|
Command="{Binding SaveCommand}"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Page>
|
|
|