chore(desktop): add comment on workaround

This commit is contained in:
Anna 2020-11-15 14:16:00 -05:00
parent 41a8dc88fd
commit 3b4fbc1ab9
1 changed files with 2 additions and 3 deletions

View File

@ -78,8 +78,9 @@
<TabControl.Resources>
<Style TargetType="{x:Type MenuItem}"
BasedOn="{StaticResource DefaultMenuItemStyle}">
<!-- this is necessary to work around an issue where you have to select an item before commands check if they can execute -->
<Setter Property="CommandTarget"
Value="{Binding Path=PlacementTarget,RelativeSource={RelativeSource AncestorType={x:Type ContextMenu}}}" />
Value="{Binding Path=PlacementTarget, RelativeSource={RelativeSource AncestorType={x:Type ContextMenu}}}" />
</Style>
<ContextMenu x:Key="TabContextMenu"
@ -154,8 +155,6 @@
<DataTemplate>
<cc:MessageTextBlock
FontFamily="Global User Interface, /Resources/fonts/#XIV AXIS Std ATK"
TextWrapping="Wrap"
FontSize="{Binding App.Config.FontSize, ElementName=Main, UpdateSourceTrigger=PropertyChanged}"
ProcessMarkdown="{Binding DataContext.ProcessMarkdown, ElementName=TabGrid}"
Message="{Binding .}" />
</DataTemplate>