Skip to content

Commit

Permalink
Merge pull request #1 from shadowofsilicon/SC_Experimental_Warning
Browse files Browse the repository at this point in the history
hide "Experimental Features" section from the settings window
  • Loading branch information
shadowofsilicon authored Sep 23, 2018
2 parents 8f3d70a + 9411627 commit de3a2f2
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions Rubberduck.Core/UI/Settings/GeneralSettings.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,23 +232,25 @@
</DataGridTemplateColumn>
</DataGrid.Columns>
</DataGrid>
<Label Content="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=GeneralSettings_ExperimentalFeatures}" FontWeight="SemiBold" />
<Label Margin="5,0,0,5" FontWeight="Bold" Foreground="{x:Static SystemColors.HighlightTextBrush}">
<Label.Content>
<AccessText TextWrapping="Wrap" Text="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=GeneralSettings_ExperimentalFeaturesWarning}"/>
</Label.Content>
</Label>
<ListView ItemsSource="{Binding ExperimentalFeatures}"
HorizontalAlignment="Stretch"
BorderThickness="0">
<ListView.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<CheckBox IsChecked="{Binding IsEnabled}" Content="{Binding DisplayValue}" />
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
<Grid Visibility="Collapsed">
<Label Content="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=GeneralSettings_ExperimentalFeatures}" FontWeight="SemiBold" />
<Label Margin="5,0,0,5" FontWeight="Bold" Foreground="{x:Static SystemColors.HighlightTextBrush}">
<Label.Content>
<AccessText TextWrapping="Wrap" Text="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=GeneralSettings_ExperimentalFeaturesWarning}"/>
</Label.Content>
</Label>
<ListView ItemsSource="{Binding ExperimentalFeatures}"
HorizontalAlignment="Stretch"
BorderThickness="0">
<ListView.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<CheckBox IsChecked="{Binding IsEnabled}" Content="{Binding DisplayValue}" />
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</Grid>
</StackPanel>
</Grid>
</ScrollViewer>
Expand Down

0 comments on commit de3a2f2

Please sign in to comment.