mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 22:46:58 +00:00
Use expression bodies for properties
This commit is contained in:
parent
e8b37f03ff
commit
74ba508e26
33 changed files with 194 additions and 230 deletions
|
|
@ -45,8 +45,8 @@ namespace MapControl
|
|||
/// </summary>
|
||||
public double MouseWheelZoomDelta
|
||||
{
|
||||
get { return (double)GetValue(MouseWheelZoomDeltaProperty); }
|
||||
set { SetValue(MouseWheelZoomDeltaProperty, value); }
|
||||
get => (double)GetValue(MouseWheelZoomDeltaProperty);
|
||||
set => SetValue(MouseWheelZoomDeltaProperty, value);
|
||||
}
|
||||
|
||||
private void OnPointerWheelChanged(object sender, PointerRoutedEventArgs e)
|
||||
|
|
|
|||
|
|
@ -36,8 +36,8 @@ namespace MapControl
|
|||
/// </summary>
|
||||
public bool AutoCollapse
|
||||
{
|
||||
get { return (bool)GetValue(AutoCollapseProperty); }
|
||||
set { SetValue(AutoCollapseProperty, value); }
|
||||
get => (bool)GetValue(AutoCollapseProperty);
|
||||
set => SetValue(AutoCollapseProperty, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -45,8 +45,8 @@ namespace MapControl
|
|||
/// </summary>
|
||||
public Location Location
|
||||
{
|
||||
get { return (Location)GetValue(LocationProperty); }
|
||||
set { SetValue(LocationProperty, value); }
|
||||
get => (Location)GetValue(LocationProperty);
|
||||
set => SetValue(LocationProperty, value);
|
||||
}
|
||||
|
||||
protected override void OnApplyTemplate()
|
||||
|
|
|
|||
|
|
@ -80,8 +80,8 @@ namespace MapControl
|
|||
|
||||
public UIElement Child
|
||||
{
|
||||
get { return border.Child; }
|
||||
set { border.Child = value; }
|
||||
get => border.Child;
|
||||
set => border.Child = value;
|
||||
}
|
||||
|
||||
private void SetBorderMargin()
|
||||
|
|
|
|||
|
|
@ -25,10 +25,8 @@ namespace MapControl
|
|||
/// <summary>
|
||||
/// Default folder path where an IImageCache instance may save cached data, i.e. C:\ProgramData\MapControl\TileCache
|
||||
/// </summary>
|
||||
public static string DefaultCacheFolder
|
||||
{
|
||||
get { return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "MapControl", "TileCache"); }
|
||||
}
|
||||
public static string DefaultCacheFolder =>
|
||||
Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "MapControl", "TileCache");
|
||||
|
||||
/// <summary>
|
||||
/// An IImageCache implementation used to cache tile images.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue