mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-01-13 17:22:48 -05:00
Remove use of the MultipleOpenAction converter
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user