RecipePermissionSelectView.xaml 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <UserControl x:Class="FurnaceUI.Views.Recipes.RecipePermissionSelectView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:FurnaceUI.Views.Recipes"
  7. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  8. xmlns:micro="http://www.caliburn.org"
  9. xmlns:editors="clr-namespace:MECF.Framework.UI.Client.CenterViews.Editors;assembly=MECF.Framework.UI.Client"
  10. mc:Ignorable="d"
  11. d:DesignHeight="450" d:DesignWidth="800">
  12. <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Margin="50">
  13. <Grid.ColumnDefinitions>
  14. <ColumnDefinition Width="100"/>
  15. <ColumnDefinition />
  16. </Grid.ColumnDefinitions>
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="80"/>
  19. <RowDefinition Height="120"/>
  20. <RowDefinition Height="40"/>
  21. <RowDefinition Height="Auto"/>
  22. </Grid.RowDefinitions>
  23. <Border Grid.Row="0" Grid.ColumnSpan="2" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,0" Background="{DynamicResource Table_BG_Title}" Padding="5,1" >
  24. <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"/>
  25. </Border>
  26. <!--<Border Grid.Row="1" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1" >
  27. <TextBlock Text="Permission" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
  28. </Border>
  29. <Border Grid.Row="1" Grid.Column="1" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  30. <ComboBox x:Name="cbPermission" FontSize="14" ItemsSource="{Binding permissionselections}" SelectedIndex="{Binding SelectedPermission,UpdateSourceTrigger=PropertyChanged}" Height="35" Width="300" Background="AliceBlue">
  31. </ComboBox>
  32. </Border>-->
  33. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,1" Background="{DynamicResource Table_BG_Title}" Padding="5,1" Grid.Row="1" Visibility="{Binding CommentVisiblility}">
  34. <TextBlock Text="Description" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
  35. </Border>
  36. <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}">
  37. <TextBox x:Name="tbComment" FontSize="20" Height="115" TextWrapping="NoWrap" Text="{Binding Comment,UpdateSourceTrigger=PropertyChanged}" Width="500" Tag="NotClearFull"/>
  38. </Border>
  39. <StackPanel Grid.Row="3" Grid.ColumnSpan="2" Margin="0,10" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
  40. <Button Content="OK" Width="120" Height="50">
  41. <i:Interaction.Triggers>
  42. <i:EventTrigger EventName="Click">
  43. <micro:ActionMessage MethodName="OK">
  44. </micro:ActionMessage>
  45. </i:EventTrigger>
  46. </i:Interaction.Triggers>
  47. </Button>
  48. <Button Content="Cancel" Margin="10,0,0,0" Width="120" Height="50">
  49. <i:Interaction.Triggers>
  50. <i:EventTrigger EventName="Click">
  51. <micro:ActionMessage MethodName="Cancel">
  52. </micro:ActionMessage>
  53. </i:EventTrigger>
  54. </i:Interaction.Triggers>
  55. </Button>
  56. </StackPanel>
  57. </Grid>
  58. </UserControl>