Views/Settings.xaml

<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <StackPanel>
        <TextBlock Text="Market Data API Keys (Optional)" FontSize="16" FontWeight="Bold"
                   Foreground="{DynamicResource DashboardForegroundBrush}" Margin="0,10,0,10"/>
        <TextBlock Text="Enter keys to enable provider-backed market data. Saved keys remain masked and are never shown again."
                   Foreground="{DynamicResource DashboardMutedForegroundBrush}" FontSize="11" Margin="10,0,0,8" TextWrapping="Wrap"/>
 
        <StackPanel Margin="10,5">
            <TextBlock Foreground="{DynamicResource DashboardMutedForegroundBrush}" FontSize="11" Margin="0,0,0,3" TextWrapping="Wrap">
                <Run Text="FRED API key (indices and commodities)"/>
                <Run Text=" - "/>
                <Hyperlink x:Name="lnkFredKey" NavigateUri="https://fred.stlouisfed.org/docs/api/api_key.html" AutomationProperties.Name="Get a FRED API key (indices and commodities) (opens https://fred.stlouisfed.org/docs/api/api_key.html in your browser)"
                           Foreground="{DynamicResource DashboardAccentBrush}"><Run Text="Get a free key"/></Hyperlink>
            </TextBlock>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <PasswordBox Grid.Column="0" x:Name="txtFredKey" Background="{DynamicResource DashboardSurfaceBrush}"
                             Foreground="{DynamicResource DashboardForegroundBrush}" BorderBrush="{DynamicResource DashboardBorderBrush}" Padding="5,3"
                             FontSize="12" FontFamily="Consolas"/>
                <TextBlock Grid.Column="1" x:Name="txtFredStatus" Text="Not configured."
                           Foreground="{DynamicResource DashboardMutedForegroundBrush}" FontSize="10" VerticalAlignment="Center"
                           Margin="8,0,0,0"/>
            </Grid>
        </StackPanel>
 
        <StackPanel Margin="10,10,10,5">
            <TextBlock Foreground="{DynamicResource DashboardMutedForegroundBrush}" FontSize="11" Margin="0,0,0,3" TextWrapping="Wrap">
                <Run Text="Alpha Vantage API key (stocks)"/>
                <Run Text=" - "/>
                <Hyperlink x:Name="lnkAlphaVantageKey" NavigateUri="https://www.alphavantage.co/support/#api-key" AutomationProperties.Name="Get a Alpha Vantage API key (stocks) (opens https://www.alphavantage.co/support/#api-key in your browser)"
                           Foreground="{DynamicResource DashboardAccentBrush}"><Run Text="Get a free key"/></Hyperlink>
            </TextBlock>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <PasswordBox Grid.Column="0" x:Name="txtAlphaVantageKey" Background="{DynamicResource DashboardSurfaceBrush}"
                             Foreground="{DynamicResource DashboardForegroundBrush}" BorderBrush="{DynamicResource DashboardBorderBrush}" Padding="5,3"
                             FontSize="12" FontFamily="Consolas"/>
                <TextBlock Grid.Column="1" x:Name="txtAlphaVantageStatus" Text="Not configured."
                           Foreground="{DynamicResource DashboardMutedForegroundBrush}" FontSize="10" VerticalAlignment="Center"
                           Margin="8,0,0,0"/>
            </Grid>
        </StackPanel>
 
        <StackPanel Margin="10,10,10,5">
            <TextBlock Foreground="{DynamicResource DashboardMutedForegroundBrush}" FontSize="11" Margin="0,0,0,3" TextWrapping="Wrap">
                <Run Text="CoinMarketCap API key (crypto, free Basic plan)"/>
                <Run Text=" - "/>
                <Hyperlink x:Name="lnkCoinMarketCapKey" NavigateUri="https://coinmarketcap.com/api/" AutomationProperties.Name="Get a CoinMarketCap API key (crypto, free Basic plan) (opens https://coinmarketcap.com/api/ in your browser)"
                           Foreground="{DynamicResource DashboardAccentBrush}"><Run Text="Get a free key"/></Hyperlink>
            </TextBlock>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <PasswordBox Grid.Column="0" x:Name="txtCoinMarketCapKey" Background="{DynamicResource DashboardSurfaceBrush}"
                             Foreground="{DynamicResource DashboardForegroundBrush}" BorderBrush="{DynamicResource DashboardBorderBrush}" Padding="5,3"
                             FontSize="12" FontFamily="Consolas"/>
                <TextBlock Grid.Column="1" x:Name="txtCoinMarketCapStatus" Text="Not configured."
                           Foreground="{DynamicResource DashboardMutedForegroundBrush}" FontSize="10" VerticalAlignment="Center"
                           Margin="8,0,0,0"/>
            </Grid>
        </StackPanel>
 
        <Button x:Name="btnSaveApiKeys" Content=" Save API Keys "
                Style="{DynamicResource DashboardPrimaryButtonStyle}"
                Margin="10,10,10,0" HorizontalAlignment="Left"/>
 
        <StackPanel Margin="10,15,10,5">
            <TextBlock Text="Key Storage Backend" Foreground="{DynamicResource DashboardMutedForegroundBrush}" FontSize="11" Margin="0,0,0,3"/>
            <ComboBox x:Name="cmbSecretsBackend" Width="220" HorizontalAlignment="Left"/>
            <TextBlock x:Name="txtSecretsBackendNote" Text="" Foreground="{DynamicResource DashboardMutedForegroundBrush}"
                       FontSize="9" Margin="0,3,0,0" TextWrapping="Wrap"/>
        </StackPanel>
    </StackPanel>
</UserControl>