1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <UserControl x:Class="FurnaceUI.Views.Recipes.RecipePermissionSelectView"
- 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:FurnaceUI.Views.Recipes"
- xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
- xmlns:micro="http://www.caliburn.org"
- xmlns:editors="clr-namespace:MECF.Framework.UI.Client.CenterViews.Editors;assembly=MECF.Framework.UI.Client"
-
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800">
- <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Margin="50">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="100"/>
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="80"/>
- <RowDefinition Height="120"/>
- <RowDefinition Height="40"/>
- <RowDefinition Height="Auto"/>
- </Grid.RowDefinitions>
- <Border Grid.Row="0" Grid.ColumnSpan="2" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,0" Background="{DynamicResource Table_BG_Title}" Padding="5,1" >
- <TextBlock Text="Are you sure you want to save the description?" HorizontalAlignment="Left" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="20" FontFamily="Arial" VerticalAlignment="Center"/>
- </Border>
- <!--<Border Grid.Row="1" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1" >
- <TextBlock Text="Permission" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
- </Border>
- <Border Grid.Row="1" Grid.Column="1" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
- <ComboBox x:Name="cbPermission" FontSize="14" ItemsSource="{Binding permissionselections}" SelectedIndex="{Binding SelectedPermission,UpdateSourceTrigger=PropertyChanged}" Height="35" Width="300" Background="AliceBlue">
- </ComboBox>
- </Border>-->
- <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,1" Background="{DynamicResource Table_BG_Title}" Padding="5,1" Grid.Row="1" Visibility="{Binding CommentVisiblility}">
- <TextBlock Text="Description" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
- </Border>
- <Border Grid.Column="2" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Padding="1" Grid.Row="1" Visibility="{Binding CommentVisiblility}">
- <TextBox x:Name="tbComment" FontSize="20" Height="115" TextWrapping="NoWrap" Text="{Binding Comment,UpdateSourceTrigger=PropertyChanged}" Width="500" Tag="NotClearFull"/>
- </Border>
- <StackPanel Grid.Row="3" Grid.ColumnSpan="2" Margin="0,10" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
- <Button Content="OK" Width="120" Height="50">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Click">
- <micro:ActionMessage MethodName="OK">
- </micro:ActionMessage>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </Button>
- <Button Content="Cancel" Margin="10,0,0,0" Width="120" Height="50">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Click">
- <micro:ActionMessage MethodName="Cancel">
- </micro:ActionMessage>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </Button>
- </StackPanel>
- </Grid>
- </UserControl>
|