Skip to content

Commit

Permalink
Remove CompileBinding restrictions
Browse files Browse the repository at this point in the history
  • Loading branch information
mysteryx93 committed Jun 27, 2024
1 parent 064686e commit 0bf02d4
Show file tree
Hide file tree
Showing 24 changed files with 31 additions and 1,259 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<TextBlock Text="Destination file already exists:" />
<TextBox Text="{Binding FilePath}" IsReadOnly="True" />
<TextBlock Text="What would you like to do?" Margin="0,10,0,2" />
<ListBox ItemsSource="{Binding Items}" x:CompileBindings="False"
<ListBox ItemsSource="{Binding Items}"
SelectedItem="{Binding Items.CurrentItem}"
Classes="RadioButtonListBox" />
</StackPanel>
Expand Down
12 changes: 6 additions & 6 deletions Src/App.Converter432Hz/Converter432Hz/Views/MainView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@
<Button Classes="round icon" Width="35" HorizontalAlignment="Right" VerticalAlignment="Top"
Content="I"
Command="{Binding ViewModel.ShowAbout, RelativeSource={RelativeSource AncestorType=views:MainView}}" />
<!-- Command="{Binding $parent[views:MainView].ViewModel.ShowAbout}" x:CompileBindings="False" -->
<!-- Command="{Binding $parent[views:MainView].ViewModel.ShowAbout}" -->
</Grid>
<Grid Margin="0,2,0,2">
<TextBlock VerticalAlignment="Center" Text="Output Format" />
<ComboBox HorizontalAlignment="Right" Width="120" x:CompileBindings="False"
<ComboBox HorizontalAlignment="Right" Width="120"
ItemsSource="{Binding FormatsList}" SelectedItem="{Binding FormatsList.CurrentItem}">
</ComboBox>
</Grid>
Expand All @@ -114,20 +114,20 @@
Content="{Binding Settings.Encode.FixedBitrate, Converter={StaticResource BitrateConverter}}"
Command="{Binding ToggleFixedBitrate}" IsVisible="{Binding IsToggleBitrateVisible}" />
</StackPanel>
<ComboBox HorizontalAlignment="Right" Width="120" x:CompileBindings="False"
<ComboBox HorizontalAlignment="Right" Width="120"
ItemsSource="{Binding BitrateList}" SelectedItem="{Binding BitrateList.CurrentItem}">
</ComboBox>
</Grid>
<Grid Margin="0,2,0,2" IsVisible="{Binding IsBitsPerSampleVisible}">
<TextBlock VerticalAlignment="Center" Text="Bits Per Sample" />
<ComboBox HorizontalAlignment="Right" Width="120" x:CompileBindings="False"
<ComboBox HorizontalAlignment="Right" Width="120"
ItemsSource="{Binding BitsPerSampleList}"
SelectedItem="{Binding BitsPerSampleList.CurrentItem}">
</ComboBox>
</Grid>
<Grid Margin="0,2,0,2">
<TextBlock VerticalAlignment="Center" Text="Sample rate" />
<ComboBox HorizontalAlignment="Right" Width="120" x:CompileBindings="False"
<ComboBox HorizontalAlignment="Right" Width="120"
ItemsSource="{Binding SampleRateList}"
SelectedItem="{Binding SampleRateList.CurrentItem}">
</ComboBox>
Expand All @@ -152,7 +152,7 @@
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock TextWrapping="Wrap" Width="120" TextAlignment="Center"
Text="When destination file exists" />
<ComboBox Margin="0,4,0,25" HorizontalAlignment="Center" x:CompileBindings="False"
<ComboBox Margin="0,4,0,25" HorizontalAlignment="Center"
ItemsSource="{Binding FileExistsActionList}"
SelectedItem="{Binding FileExistsActionList.CurrentItem, Mode=TwoWay}">
</ComboBox>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@
<StackPanel Orientation="Horizontal">
<TextBlock Text="Theme" VerticalAlignment="Center" />
<Grid Width="80" Margin="20,0,0,0">
<ComboBox Width="130" ItemsSource="{Binding ThemeList}" x:CompileBindings="False"
<ComboBox Width="130" ItemsSource="{Binding ThemeList}"
SelectedItem="{Binding ThemeList.CurrentItem}" />
</Grid>
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Check for Updates" VerticalAlignment="Center" />
<ComboBox Margin="12,0,0,0" Width="105" ItemsSource="{Binding CheckForUpdateList}"
x:CompileBindings="False"
SelectedItem="{Binding CheckForUpdateList.CurrentItem}" />
</StackPanel>
<StackPanel Margin="0">
Expand Down
Loading

0 comments on commit 0bf02d4

Please sign in to comment.