| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <UserControl x:Class="TeamAAS_VP.Views.Product.CreateProductPage"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:prism="http://prismlibrary.com/"
- xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
- xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="clr-namespace:TeamAAS_VP.ViewModels.Product"
- xmlns:lex="http://wpflocalizeextension.codeplex.com"
- lex:LocalizeDictionary.DesignCulture="zh-CN"
- lex:ResxLocalizationProvider.DefaultAssembly="TeamAAS-VP"
- lex:ResxLocalizationProvider.DefaultDictionary="Lang"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d"
- d:DataContext="{d:DesignInstance Type=vm:CreateProductPageViewModel}"
- d:Background="White"
- Name="createpro"
- MinWidth="300"
- FontFamily="{DynamicResource DefaultFont}">
- <b:Interaction.Triggers>
- <b:EventTrigger EventName="Loaded">
- <b:InvokeCommandAction Command="{Binding LoadedCommand}" />
- </b:EventTrigger>
- </b:Interaction.Triggers>
- <Grid Margin="10">
- <Grid.RowDefinitions>
- <RowDefinition Height="auto" />
- <RowDefinition Height="auto" />
- <RowDefinition Height="auto" />
- <RowDefinition Height="auto" />
- <RowDefinition Height="auto" />
- </Grid.RowDefinitions>
- <TextBlock Text="{lex:Loc 新建产品}"
- FontSize="16" />
- <TextBox x:Name="txtName"
- Grid.Row="1"
- Margin="2,6,2,0"
- materialDesign:HintAssist.Hint="{lex:Loc 请输入产品名称}"
- FontSize="16"
- Style="{StaticResource MaterialDesignFloatingHintTextBox}"
- Text="{Binding ProductName,Mode=TwoWay}">
- </TextBox>
- <ComboBox Grid.Row="3"
- Margin="2,10,0,0"
- FontSize="16"
- materialDesign:HintAssist.Hint="{lex:Loc 模板}"
- materialDesign:HintAssist.HelperText="{lex:Loc 选择一个模板}"
- Style="{StaticResource MaterialDesignFloatingHintComboBox}"
- ItemsSource="{Binding Templates}"
- SelectedItem="{Binding SelectTemplate}" />
- <StackPanel Grid.Row="4"
- Margin="0,20,0,0"
- HorizontalAlignment="Center"
- Orientation="Horizontal">
- <Button FontSize="16"
- Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}"
- CommandParameter="{Binding ElementName=createpro,Path=DataContext}"
- IsDefault="True"
- Style="{StaticResource MaterialDesignFlatButton}"
- Content="{lex:Loc 确定}">
- </Button>
- <Button Margin="8,0,0,0"
- FontSize="16"
- Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}"
- IsCancel="True"
- Style="{StaticResource MaterialDesignFlatButton}"
- Content="{lex:Loc 取消}">
- <Button.CommandParameter>
- <x:Null />
- </Button.CommandParameter>
- </Button>
- </StackPanel>
- </Grid>
- </UserControl>
|