| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <UserControl x:Class="TeamAAS_VP.Controls.AddProduct"
- 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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
- xmlns:system="clr-namespace:System;assembly=mscorlib"
- xmlns:local="clr-namespace:TeamAAS_VP.Controls"
- xmlns:lex="http://wpflocalizeextension.codeplex.com"
- lex:LocalizeDictionary.DesignCulture="zh-CN"
- lex:ResxLocalizationProvider.DefaultAssembly="TeamAAS-VP"
- lex:ResxLocalizationProvider.DefaultDictionary="Lang"
- mc:Ignorable="d"
- d:DesignHeight="250"
- d:DesignWidth="400"
- d:Background="White"
- FontFamily="{DynamicResource DefaultFont}">
- <Grid Margin="16">
- <Grid.RowDefinitions>
- <RowDefinition Height="auto" />
- <RowDefinition Height="*" />
- <RowDefinition Height="auto" />
- </Grid.RowDefinitions>
- <TextBlock Text="{Binding Title}"
- FontSize="16"
- FontWeight="Bold"
- Margin="0,10"
- VerticalAlignment="Center"
- TextAlignment="Left"
- HorizontalAlignment="Left" />
- <TextBox x:Name="txtName"
- Grid.Row="1"
- Margin="0,5"
- materialDesign:HintAssist.Hint="{Binding Item}"
- FontSize="16"
- Style="{StaticResource MaterialDesignFloatingHintTextBox}"
- Text="{Binding ProductName}">
- </TextBox>
- <StackPanel Grid.Row="2"
- Margin="0,10"
- Orientation="Horizontal">
- <Button Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}"
- CommandParameter="{Binding ElementName=txtName,Path=Text}"
- IsDefault="True"
- Style="{StaticResource MaterialDesignFlatButton}"
- Content="{lex:Loc 确定}">
- </Button>
- <Button Margin="10,0"
- Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}"
- IsCancel="True"
- Style="{StaticResource MaterialDesignFlatButton}"
- Content="{lex:Loc 取消}">
- <Button.CommandParameter>
- <x:Null />
- </Button.CommandParameter>
- </Button>
- </StackPanel>
- </Grid>
- </UserControl>
|