mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-02-16 18:47:28 -05:00
Remove use of the MultipleOpenAction converter
This commit is contained in:
@@ -53,20 +53,6 @@ namespace FeedCenter
|
|||||||
|
|
||||||
#endregion
|
#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 partial class Feed
|
||||||
{
|
{
|
||||||
public static Feed Create()
|
public static Feed Create()
|
||||||
|
|||||||
@@ -9,9 +9,6 @@
|
|||||||
WindowStartupLocation="CenterOwner"
|
WindowStartupLocation="CenterOwner"
|
||||||
Icon="/FeedCenter;component/Resources/Application.ico"
|
Icon="/FeedCenter;component/Resources/Application.ico"
|
||||||
FocusManager.FocusedElement="{Binding ElementName=urlTextBox}">
|
FocusManager.FocusedElement="{Binding ElementName=urlTextBox}">
|
||||||
<Window.Resources>
|
|
||||||
<feedCenter:MultipleOpenActionConverter x:Key="multipleOpenActionConverter" />
|
|
||||||
</Window.Resources>
|
|
||||||
<Grid Name="mainGrid">
|
<Grid Name="mainGrid">
|
||||||
<TabControl Name="optionsTabControl"
|
<TabControl Name="optionsTabControl"
|
||||||
Margin="12,12,12,41">
|
Margin="12,12,12,41">
|
||||||
@@ -110,7 +107,7 @@
|
|||||||
Margin="6" />
|
Margin="6" />
|
||||||
<ComboBox Name="openComboBox"
|
<ComboBox Name="openComboBox"
|
||||||
VerticalContentAlignment="Center"
|
VerticalContentAlignment="Center"
|
||||||
SelectedValue="{Binding Path=MultipleOpenAction, UpdateSourceTrigger=Explicit, ValidatesOnExceptions=true, Converter={StaticResource multipleOpenActionConverter}}"
|
SelectedValue="{Binding Path=MultipleOpenAction, UpdateSourceTrigger=Explicit, ValidatesOnExceptions=true}"
|
||||||
SelectedValuePath="Tag"
|
SelectedValuePath="Tag"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Margin="6">
|
Margin="6">
|
||||||
|
|||||||
Reference in New Issue
Block a user