|
9 | 9 | mc:Ignorable="d" |
10 | 10 | d:DesignHeight="812" d:DesignWidth="872"> |
11 | 11 |
|
| 12 | + <UserControl.Resources> |
| 13 | + <BooleanToVisibilityConverter x:Key="BoolToVisibileConv"/> |
| 14 | + <conv:InvertedBooleanToVisibilityConverter x:Key="InvBoolToVisibileConv"/> |
| 15 | + </UserControl.Resources> |
| 16 | + |
12 | 17 | <Grid Height="Auto" |
13 | 18 | Width="640" |
14 | 19 | VerticalAlignment="Center"> |
|
42 | 47 | <RowDefinition Height="Auto"/> |
43 | 48 | <RowDefinition Height="30"/> |
44 | 49 | <RowDefinition Height="Auto"/> |
| 50 | + <RowDefinition Height="Auto"/> |
| 51 | + <RowDefinition Height="Auto"/> |
45 | 52 | </Grid.RowDefinitions> |
46 | 53 |
|
47 | 54 | <TextBlock Text="{Binding Title}" |
|
58 | 65 | Grid.Column="0" |
59 | 66 | FontSize="14" |
60 | 67 | FontWeight="Bold" |
| 68 | + VerticalAlignment="Center" |
| 69 | + Foreground="{DynamicResource Foreground}" |
| 70 | + Margin="0, 0, 0, 4"/> |
| 71 | + |
| 72 | + <TextBlock Text="Generate Goals for Agents" |
| 73 | + Grid.Row="2" |
| 74 | + Visibility="{Binding EditMode, Converter={StaticResource InvBoolToVisibileConv}, ConverterParameter=true}" |
| 75 | + Foreground="{DynamicResource Foreground}" |
| 76 | + FontSize="14" |
| 77 | + Margin="0, 0, 0, 8" |
| 78 | + HorizontalAlignment="Left" |
| 79 | + VerticalAlignment="Center" |
| 80 | + FontWeight="Bold"/> |
| 81 | + |
| 82 | + <TextBlock Text="Active Tier" |
| 83 | + Grid.Row="3" |
| 84 | + Grid.Column="0" |
| 85 | + FontSize="14" |
| 86 | + FontWeight="Bold" |
| 87 | + VerticalAlignment="Center" |
| 88 | + Visibility="{Binding GenerateAgentGoals, Converter={StaticResource BoolToVisibileConv}}" |
| 89 | + Foreground="{DynamicResource Foreground}" |
| 90 | + Margin="0, 0, 0, 4"/> |
| 91 | + |
| 92 | + <TextBlock Text="Collected XP in Active Tier" |
| 93 | + Grid.Row="4" |
| 94 | + Grid.Column="0" |
| 95 | + FontSize="14" |
| 96 | + FontWeight="Bold" |
| 97 | + VerticalAlignment="Center" |
| 98 | + Visibility="{Binding GenerateAgentGoals, Converter={StaticResource BoolToVisibileConv}}" |
61 | 99 | Foreground="{DynamicResource Foreground}" |
62 | 100 | Margin="0, 0, 0, 4"/> |
63 | 101 |
|
|
70 | 108 | Margin="0, 0, 0, 8" |
71 | 109 | Height="22" |
72 | 110 | Style="{DynamicResource TextBoxTheme}"/> |
| 111 | + |
| 112 | + <CheckBox Width="50" Height="30" |
| 113 | + Grid.Row="2" |
| 114 | + Grid.Column="1" |
| 115 | + x:Name="PART_AccentCheckBox" |
| 116 | + HorizontalAlignment="Right" |
| 117 | + Visibility="{Binding EditMode, Converter={StaticResource InvBoolToVisibileConv}, ConverterParameter=true}" |
| 118 | + IsChecked="{Binding GenerateAgentGoals}" |
| 119 | + Style="{StaticResource CheckBoxTheme}" |
| 120 | + Margin="0, 0, 0, 8"/> |
| 121 | + |
| 122 | + <TextBox x:Name="PART_TierBox" |
| 123 | + Grid.Row="3" |
| 124 | + Grid.Column="1" |
| 125 | + FontSize="14" |
| 126 | + Margin="0, 0, 0, 8" |
| 127 | + Height="22" |
| 128 | + Visibility="{Binding GenerateAgentGoals, Converter={StaticResource BoolToVisibileConv}}" |
| 129 | + Style="{DynamicResource TextBoxTheme}"> |
| 130 | + <TextBox.Text> |
| 131 | + <Binding Path="ActiveTier" |
| 132 | + UpdateSourceTrigger="PropertyChanged" |
| 133 | + ValidatesOnNotifyDataErrors="True" |
| 134 | + ValidatesOnDataErrors="True" |
| 135 | + NotifyOnValidationError="True"> |
| 136 | + <Binding.ValidationRules> |
| 137 | + <validation:TierValidationRule ValidatesOnTargetUpdated="True"/> |
| 138 | + </Binding.ValidationRules> |
| 139 | + </Binding> |
| 140 | + </TextBox.Text> |
| 141 | + </TextBox> |
| 142 | + |
| 143 | + <TextBox x:Name="PART_CollectedBox" |
| 144 | + Grid.Row="4" |
| 145 | + Grid.Column="1" |
| 146 | + FontSize="14" |
| 147 | + Margin="0, 0, 0, 8" |
| 148 | + Height="22" |
| 149 | + Visibility="{Binding GenerateAgentGoals, Converter={StaticResource BoolToVisibileConv}}" |
| 150 | + Style="{DynamicResource TextBoxTheme}"> |
| 151 | + <TextBox.Text> |
| 152 | + <Binding Path="Collected" |
| 153 | + UpdateSourceTrigger="PropertyChanged" |
| 154 | + ValidatesOnNotifyDataErrors="True" |
| 155 | + ValidatesOnDataErrors="True" |
| 156 | + NotifyOnValidationError="True"> |
| 157 | + <Binding.ValidationRules> |
| 158 | + <validation:NumericValidationRule ValidatesOnTargetUpdated="True"/> |
| 159 | + </Binding.ValidationRules> |
| 160 | + </Binding> |
| 161 | + </TextBox.Text> |
| 162 | + </TextBox> |
73 | 163 | </Grid> |
74 | 164 |
|
75 | 165 | <Grid Grid.Row="2" |
|
0 commit comments