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
44
MapUiTools/UWP/MapLayerInfo.xaml
Normal file
44
MapUiTools/UWP/MapLayerInfo.xaml
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
<UserControl
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:MapControl.UiTools"
|
||||
x:Class="MapControl.UiTools.MapLayerInfo"
|
||||
x:Name="mapLayerInfo">
|
||||
|
||||
<UserControl.Resources>
|
||||
<Style TargetType="local:MapLayerInfo">
|
||||
<Setter Property="Padding" Value="6,3"/>
|
||||
<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"
|
||||
Background="{Binding Background, ElementName=mapLayerInfo}"
|
||||
DataContext="{Binding ElementName=mapLayerInfo}">
|
||||
|
||||
<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
|
||||
VerticalAlignment="Center" Margin="{Binding Padding}"
|
||||
local:HyperlinkText.InlinesSource="{Binding MapLayer.Description}"/>
|
||||
</StackPanel>
|
||||
</UserControl>
|
||||
Loading…
Add table
Add a link
Reference in a new issue