mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
43 lines
1.6 KiB
XML
43 lines
1.6 KiB
XML
<UserControl
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:md="clr-namespace:Markdown.Avalonia;assembly=Markdown.Avalonia"
|
|
xmlns:ctxt="clr-namespace:ColorTextBlock.Avalonia;assembly=ColorTextBlock.Avalonia"
|
|
xmlns:local="clr-namespace:MapControl.UiTools"
|
|
x:Class="MapControl.UiTools.MapLayerInfo"
|
|
x:Name="mapLayerInfo">
|
|
|
|
<UserControl.Styles>
|
|
<Style Selector="local|MapLayerInfo">
|
|
<Setter Property="Padding" Value="4,0"/>
|
|
<Setter Property="HorizontalAlignment" Value="Right"/>
|
|
<Setter Property="VerticalAlignment" Value="Bottom"/>
|
|
</Style>
|
|
<Style Selector="ctxt|CRun">
|
|
<Setter Property="FontSize" Value="10"/>
|
|
</Style>
|
|
</UserControl.Styles>
|
|
|
|
<StackPanel
|
|
Orientation="Horizontal"
|
|
Background="{Binding Background, ElementName=mapLayerInfo}"
|
|
DataContext="{Binding ElementName=mapLayerInfo}">
|
|
|
|
<ProgressBar
|
|
VerticalAlignment="Center" Margin="{Binding Padding}"
|
|
Maximum="1" Value="{Binding MapLayer.LoadingProgress}">
|
|
|
|
<ProgressBar.IsVisible>
|
|
<Binding Path="Value" RelativeSource="{RelativeSource Self}">
|
|
<Binding.Converter>
|
|
<local:ProgressVisibilityConverter/>
|
|
</Binding.Converter>
|
|
</Binding>
|
|
</ProgressBar.IsVisible>
|
|
</ProgressBar>
|
|
|
|
<md:MarkdownScrollViewer Markdown="{Binding MapLayer.Description}"/>
|
|
</StackPanel>
|
|
</UserControl>
|