mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Added MapControl.UiTools.MapLayerInfo
This commit is contained in:
parent
c31780a298
commit
d23bc99f3d
16 changed files with 332 additions and 161 deletions
42
MapUiTools/WPF/MapLayerInfo.xaml
Normal file
42
MapUiTools/WPF/MapLayerInfo.xaml
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<UserControl
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:MapControl.UiTools"
|
||||
x:Class="MapControl.UiTools.MapLayerInfo">
|
||||
|
||||
<UserControl.Resources>
|
||||
<Style TargetType="local:MapLayerInfo">
|
||||
<Setter Property="Padding" Value="4,2"/>
|
||||
<Setter Property="HorizontalAlignment" Value="Right"/>
|
||||
<Setter Property="VerticalAlignment" Value="Bottom"/>
|
||||
</Style>
|
||||
<Style TargetType="ProgressBar">
|
||||
<Setter Property="Width" Value="100"/>
|
||||
</Style>
|
||||
<Style TargetType="TextBlock">
|
||||
<Setter Property="FontSize" Value="10"/>
|
||||
</Style>
|
||||
</UserControl.Resources>
|
||||
|
||||
<StackPanel
|
||||
Orientation="Horizontal"
|
||||
DataContext="{Binding RelativeSource={RelativeSource AncestorType=UserControl}}">
|
||||
|
||||
<ProgressBar
|
||||
VerticalAlignment="Center" Margin="{Binding Padding}"
|
||||
Maximum="1" Value="{Binding MapLayer.LoadingProgress}">
|
||||
|
||||
<ProgressBar.Visibility>
|
||||
<Binding Path="Value" RelativeSource="{RelativeSource Self}">
|
||||
<Binding.Converter>
|
||||
<local:ProgressVisibilityConverter/>
|
||||
</Binding.Converter>
|
||||
</Binding>
|
||||
</ProgressBar.Visibility>
|
||||
</ProgressBar>
|
||||
|
||||
<TextBlock
|
||||
Margin="{Binding Padding}"
|
||||
local:HyperlinkText.InlinesSource="{Binding MapLayer.Description}"/>
|
||||
</StackPanel>
|
||||
</UserControl>
|
||||
Loading…
Add table
Add a link
Reference in a new issue