|
|
|
|
@ -3,7 +3,7 @@ |
|
|
|
|
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:sys="clr-namespace:System;assembly=System.Core" |
|
|
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib" |
|
|
|
|
xmlns:conv="clr-namespace:MultiTerm.Wpf.ValueConverters" |
|
|
|
|
xmlns:controls="clr-namespace:MultiTerm.Wpf.Controls" |
|
|
|
|
xmlns:vm="clr-namespace:MultiTerm.Core.ViewModel;assembly=MultiTerm.Core" |
|
|
|
|
@ -14,6 +14,15 @@ |
|
|
|
|
<UserControl.Resources> |
|
|
|
|
<!-- Value Converters --> |
|
|
|
|
<conv:EnumDescriptionToMenuItemConverter x:Key="EnumDescriptionConverter"/> |
|
|
|
|
|
|
|
|
|
<!-- Data Sources --> |
|
|
|
|
<ObjectDataProvider x:Key="NewlineSeparatorTypeValues" |
|
|
|
|
ObjectType="{x:Type sys:Enum}" |
|
|
|
|
MethodName="GetValues"> |
|
|
|
|
<ObjectDataProvider.MethodParameters> |
|
|
|
|
<x:Type TypeName="core_common:NewlineSeparatorType" /> |
|
|
|
|
</ObjectDataProvider.MethodParameters> |
|
|
|
|
</ObjectDataProvider> |
|
|
|
|
|
|
|
|
|
</UserControl.Resources> |
|
|
|
|
|
|
|
|
|
@ -36,17 +45,13 @@ |
|
|
|
|
<MenuItem Header="Item1" Command="{Binding TestButtonClickedCommand}"/> |
|
|
|
|
</MenuItem> |
|
|
|
|
<MenuItem Header="_Settings"> |
|
|
|
|
<controls:SingleSelectSubMenu Title="Newline Separator (Receive)" |
|
|
|
|
OptionsSource="{Binding NewlineSeparatorTypeValues}" |
|
|
|
|
SelectedMenuItem="{Binding SelectedReceiveNewlineSeparator, |
|
|
|
|
Mode=TwoWay, |
|
|
|
|
Converter={StaticResource EnumDescriptionConverter}}"> |
|
|
|
|
<controls:SingleSelectSubMenu Title="Default Newline Separator on Receive" HorizontalContentAlignment="Left" VerticalContentAlignment="Top" |
|
|
|
|
OptionsSource="{Binding Source={StaticResource NewlineSeparatorTypeValues}}" |
|
|
|
|
SelectedMenuItem="{Binding DefaultReceiveNewlineSeparator, Mode=TwoWay, Converter={StaticResource EnumDescriptionConverter}}"> |
|
|
|
|
</controls:SingleSelectSubMenu> |
|
|
|
|
<controls:SingleSelectSubMenu Title="Newline Separator On Send" |
|
|
|
|
OptionsSource="{Binding NewlineSeparatorTypeValues}" |
|
|
|
|
SelectedMenuItem="{Binding SelectedSendNewlineSeparator, |
|
|
|
|
Mode=TwoWay, |
|
|
|
|
Converter={StaticResource EnumDescriptionConverter}}"> |
|
|
|
|
<controls:SingleSelectSubMenu Title="Default Newline Separator on Send" |
|
|
|
|
OptionsSource="{Binding Source={StaticResource NewlineSeparatorTypeValues}}" |
|
|
|
|
SelectedMenuItem="{Binding DefaultSendNewlineSeparator,Mode=TwoWay, Converter={StaticResource EnumDescriptionConverter}}"> |
|
|
|
|
</controls:SingleSelectSubMenu> |
|
|
|
|
</MenuItem> |
|
|
|
|
<MenuItem Header="_View"/> |
|
|
|
|
|