mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 06:26:41 +00:00
Version 7.3. Added tile and map image progress reporting.
This commit is contained in:
parent
b423cc2d36
commit
3119c0fc9b
32 changed files with 252 additions and 100 deletions
|
|
@ -13,11 +13,18 @@ using System.Windows.Data;
|
|||
|
||||
namespace SampleApplication
|
||||
{
|
||||
public class HeadingToVisibilityConverter : IValueConverter
|
||||
public class DoubleToVisibilityConverter : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, string language)
|
||||
{
|
||||
return (double)value != 0d ? Visibility.Visible : Visibility.Collapsed;
|
||||
if (!(parameter is double p))
|
||||
{
|
||||
p = double.Parse(parameter.ToString());
|
||||
}
|
||||
|
||||
//System.Diagnostics.Debug.WriteLine((double)value);
|
||||
|
||||
return (double)value != p ? Visibility.Visible : Visibility.Collapsed;
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, string language)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue