Fix Rider not recognizing DependencyProperty as such due to naming convention

This commit is contained in:
Yusyuriv 2024-04-22 00:53:32 +06:00
parent fc32a8873f
commit 5a0f1f8a04
No known key found for this signature in database
GPG key ID: A91C52E6F73148E0
3 changed files with 24 additions and 24 deletions

View file

@ -17,26 +17,26 @@ namespace Flow.Launcher.Resources.Controls
}
public string Title
{
get { return (string)GetValue(TitleValueProperty); }
set { SetValue(TitleValueProperty, value); }
get { return (string)GetValue(TitleProperty); }
set { SetValue(TitleProperty, value); }
}
public static readonly DependencyProperty TitleValueProperty =
public static readonly DependencyProperty TitleProperty =
DependencyProperty.Register(nameof(Title), typeof(string), typeof(Card), new PropertyMetadata(string.Empty));
public string Sub
{
get { return (string)GetValue(SubValueProperty); }
set { SetValue(SubValueProperty, value); }
get { return (string)GetValue(SubProperty); }
set { SetValue(SubProperty, value); }
}
public static readonly DependencyProperty SubValueProperty =
public static readonly DependencyProperty SubProperty =
DependencyProperty.Register(nameof(Sub), typeof(string), typeof(Card), new PropertyMetadata(string.Empty));
public string Icon
{
get { return (string)GetValue(IconValueProperty); }
set { SetValue(IconValueProperty, value); }
get { return (string)GetValue(IconProperty); }
set { SetValue(IconProperty, value); }
}
public static readonly DependencyProperty IconValueProperty =
public static readonly DependencyProperty IconProperty =
DependencyProperty.Register(nameof(Icon), typeof(string), typeof(Card), new PropertyMetadata(string.Empty));
/// <summary>

View file

@ -11,26 +11,26 @@ namespace Flow.Launcher.Resources.Controls
}
public string Title
{
get { return (string)GetValue(TitleValueProperty); }
set { SetValue(TitleValueProperty, value); }
get { return (string)GetValue(TitleProperty); }
set { SetValue(TitleProperty, value); }
}
public static readonly DependencyProperty TitleValueProperty =
public static readonly DependencyProperty TitleProperty =
DependencyProperty.Register(nameof(Title), typeof(string), typeof(ExCard), new PropertyMetadata(string.Empty));
public string Sub
{
get { return (string)GetValue(SubValueProperty); }
set { SetValue(SubValueProperty, value); }
get { return (string)GetValue(SubProperty); }
set { SetValue(SubProperty, value); }
}
public static readonly DependencyProperty SubValueProperty =
public static readonly DependencyProperty SubProperty =
DependencyProperty.Register(nameof(Sub), typeof(string), typeof(ExCard), new PropertyMetadata(string.Empty));
public string Icon
{
get { return (string)GetValue(IconValueProperty); }
set { SetValue(IconValueProperty, value); }
get { return (string)GetValue(IconProperty); }
set { SetValue(IconProperty, value); }
}
public static readonly DependencyProperty IconValueProperty =
public static readonly DependencyProperty IconProperty =
DependencyProperty.Register(nameof(Icon), typeof(string), typeof(ExCard), new PropertyMetadata(string.Empty));
/// <summary>

View file

@ -22,21 +22,21 @@ namespace Flow.Launcher.Resources.Controls
public string Keys
{
get { return (string)GetValue(KeysValueProperty); }
set { SetValue(KeysValueProperty, value); }
get { return (string)GetValue(KeysProperty); }
set { SetValue(KeysProperty, value); }
}
public static readonly DependencyProperty KeysValueProperty =
public static readonly DependencyProperty KeysProperty =
DependencyProperty.Register(nameof(Keys), typeof(string), typeof(HotkeyDisplay),
new PropertyMetadata(string.Empty, keyChanged));
public DisplayType Type
{
get { return (DisplayType)GetValue(TypeValueProperty); }
set { SetValue(TypeValueProperty, value); }
get { return (DisplayType)GetValue(TypeProperty); }
set { SetValue(TypeProperty, value); }
}
public static readonly DependencyProperty TypeValueProperty =
public static readonly DependencyProperty TypeProperty =
DependencyProperty.Register(nameof(Type), typeof(DisplayType), typeof(HotkeyDisplay),
new PropertyMetadata(null));