Browse Source
Merge branch 'master' into fixes/CS0618
pull/6760/head
workgroupengineering
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
35 additions and
7 deletions
-
samples/ControlCatalog/Pages/TextBoxPage.xaml
-
src/Avalonia.Themes.Default/OverlayPopupHost.xaml
-
src/Avalonia.Themes.Default/PopupRoot.xaml
-
src/Avalonia.Themes.Fluent/Controls/OverlayPopupHost.xaml
-
src/Avalonia.Themes.Fluent/Controls/PopupRoot.xaml
|
|
|
@ -11,7 +11,15 @@ |
|
|
|
HorizontalAlignment="Center" |
|
|
|
Spacing="16"> |
|
|
|
<StackPanel Orientation="Vertical" Spacing="8"> |
|
|
|
<TextBox Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit." Width="200" /> |
|
|
|
<TextBox Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit." Width="200" |
|
|
|
FontFamily="Comic Sans MS" |
|
|
|
Foreground="Blue"> |
|
|
|
<TextBox.ContextFlyout> |
|
|
|
<Flyout> |
|
|
|
<TextBlock>Custom context flyout</TextBlock> |
|
|
|
</Flyout> |
|
|
|
</TextBox.ContextFlyout> |
|
|
|
</TextBox> |
|
|
|
<TextBox Width="200" Watermark="ReadOnly" IsReadOnly="True" Text="This is read only"/> |
|
|
|
<TextBox Width="200" Watermark="Numeric Watermark" x:Name="numericWatermark"/> |
|
|
|
<TextBox Width="200" |
|
|
|
|
|
|
|
@ -1,5 +1,11 @@ |
|
|
|
<Style xmlns="https://github.com/avaloniaui" Selector="OverlayPopupHost"> |
|
|
|
<Setter Property="Background" Value="{DynamicResource ThemeBackgroundBrush}"/> |
|
|
|
<Style xmlns="https://github.com/avaloniaui" |
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
|
|
Selector="OverlayPopupHost"> |
|
|
|
<Setter Property="Foreground" Value="{DynamicResource ThemeForegroundBrush}"/> |
|
|
|
<Setter Property="FontSize" Value="{DynamicResource FontSizeNormal}"/> |
|
|
|
<Setter Property="FontFamily" Value="{x:Static FontFamily.Default}" /> |
|
|
|
<Setter Property="FontWeight" Value="400" /> |
|
|
|
<Setter Property="FontStyle" Value="Normal" /> |
|
|
|
<Setter Property="Template"> |
|
|
|
<ControlTemplate> |
|
|
|
<Panel> |
|
|
|
|
|
|
|
@ -1,5 +1,11 @@ |
|
|
|
<Style xmlns="https://github.com/avaloniaui" Selector="PopupRoot"> |
|
|
|
<Setter Property="Background" Value="{DynamicResource ThemeBackgroundBrush}"/> |
|
|
|
<Style xmlns="https://github.com/avaloniaui" |
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
|
|
Selector="PopupRoot"> |
|
|
|
<Setter Property="Foreground" Value="{DynamicResource ThemeForegroundBrush}"/> |
|
|
|
<Setter Property="FontSize" Value="{DynamicResource FontSizeNormal}"/> |
|
|
|
<Setter Property="FontFamily" Value="{x:Static FontFamily.Default}" /> |
|
|
|
<Setter Property="FontWeight" Value="400" /> |
|
|
|
<Setter Property="FontStyle" Value="Normal" /> |
|
|
|
<Setter Property="Template"> |
|
|
|
<ControlTemplate> |
|
|
|
<Panel> |
|
|
|
|
|
|
|
@ -1,5 +1,9 @@ |
|
|
|
<Style xmlns="https://github.com/avaloniaui" Selector="OverlayPopupHost"> |
|
|
|
<Setter Property="Background" Value="{DynamicResource SystemControlBackgroundAltHighBrush}"/> |
|
|
|
<Setter Property="Foreground" Value="{DynamicResource SystemControlForegroundBaseHighBrush}"/> |
|
|
|
<Setter Property="FontSize" Value="{DynamicResource ControlContentThemeFontSize}"/> |
|
|
|
<Setter Property="FontFamily" Value="{DynamicResource ContentControlThemeFontFamily}" /> |
|
|
|
<Setter Property="FontWeight" Value="400" /> |
|
|
|
<Setter Property="FontStyle" Value="Normal" /> |
|
|
|
<Setter Property="Template"> |
|
|
|
<ControlTemplate> |
|
|
|
<Panel> |
|
|
|
|
|
|
|
@ -2,7 +2,11 @@ |
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
|
|
|
<Style Selector="PopupRoot"> |
|
|
|
<Setter Property="TransparencyLevelHint" Value="Transparent" /> |
|
|
|
<Setter Property="Background" Value="{x:Null}" /> |
|
|
|
<Setter Property="Foreground" Value="{DynamicResource SystemControlForegroundBaseHighBrush}"/> |
|
|
|
<Setter Property="FontSize" Value="{DynamicResource ControlContentThemeFontSize}"/> |
|
|
|
<Setter Property="FontFamily" Value="{DynamicResource ContentControlThemeFontFamily}" /> |
|
|
|
<Setter Property="FontWeight" Value="400" /> |
|
|
|
<Setter Property="FontStyle" Value="Normal" /> |
|
|
|
<Setter Property="Template"> |
|
|
|
<ControlTemplate> |
|
|
|
<Panel> |
|
|
|
|