misc: chore: Use static instances of converters instead of using control resources
This commit is contained in:
@@ -30,9 +30,6 @@
|
||||
<Design.DataContext>
|
||||
<viewModels:MainWindowViewModel />
|
||||
</Design.DataContext>
|
||||
<Window.Resources>
|
||||
<helpers:BitmapArrayValueConverter x:Key="ByteImage" />
|
||||
</Window.Resources>
|
||||
<Window.KeyBindings>
|
||||
<KeyBinding Gesture="Alt+Return" Command="{Binding ToggleFullscreen}" />
|
||||
<KeyBinding Gesture="F11" Command="{Binding ToggleFullscreen}" />
|
||||
@@ -121,7 +118,7 @@
|
||||
Width="256"
|
||||
Height="256"
|
||||
IsVisible="{Binding ShowLoadProgress}"
|
||||
Source="{Binding SelectedIcon, Converter={StaticResource ByteImage}}" />
|
||||
Source="{Binding SelectedIcon, Converter={x:Static helpers:BitmapArrayValueConverter.Instance}}" />
|
||||
</Border>
|
||||
<Grid
|
||||
Grid.Column="1"
|
||||
|
||||
Reference in New Issue
Block a user