Remove use of the MultipleOpenAction converter

This commit is contained in:
2014-12-13 09:05:16 -05:00
parent 36e2b9d81e
commit 025c565956
2 changed files with 1 additions and 18 deletions

View File

@@ -53,20 +53,6 @@ namespace FeedCenter
#endregion
[ValueConversion(typeof(int), typeof(MultipleOpenAction))]
public class MultipleOpenActionConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return (MultipleOpenAction) value;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
return (int) value;
}
}
public partial class Feed
{
public static Feed Create()

View File

@@ -9,9 +9,6 @@
WindowStartupLocation="CenterOwner"
Icon="/FeedCenter;component/Resources/Application.ico"
FocusManager.FocusedElement="{Binding ElementName=urlTextBox}">
<Window.Resources>
<feedCenter:MultipleOpenActionConverter x:Key="multipleOpenActionConverter" />
</Window.Resources>
<Grid Name="mainGrid">
<TabControl Name="optionsTabControl"
Margin="12,12,12,41">
@@ -110,7 +107,7 @@
Margin="6" />
<ComboBox Name="openComboBox"
VerticalContentAlignment="Center"
SelectedValue="{Binding Path=MultipleOpenAction, UpdateSourceTrigger=Explicit, ValidatesOnExceptions=true, Converter={StaticResource multipleOpenActionConverter}}"
SelectedValue="{Binding Path=MultipleOpenAction, UpdateSourceTrigger=Explicit, ValidatesOnExceptions=true}"
SelectedValuePath="Tag"
Grid.Column="1"
Margin="6">