@ -3,7 +3,7 @@ namespace Avalonia.Diagnostics.ViewModels
internal class AvaloniaPropertyViewModel : PropertyViewModel
internal class AvaloniaPropertyViewModel : PropertyViewModel
{
{
private readonly AvaloniaObject _ target ;
private readonly AvaloniaObject _ target ;
private string _ type ;
private System . Type _ type ;
private object? _ value ;
private object? _ value ;
private string _ priority ;
private string _ priority ;
private string _ group ;
private string _ group ;
@ -32,7 +32,7 @@ namespace Avalonia.Diagnostics.ViewModels
public override string Priority = >
public override string Priority = >
_ priority ;
_ priority ;
public override string Type = > _ type ;
public override System . Type Type = > _ type ;
public override string Value
public override string Value
{
{
@ -58,7 +58,7 @@ namespace Avalonia.Diagnostics.ViewModels
if ( Property . IsDirect )
if ( Property . IsDirect )
{
{
RaiseAndSetIfChanged ( ref _ value , _ target . GetValue ( Property ) , nameof ( Value ) ) ;
RaiseAndSetIfChanged ( ref _ value , _ target . GetValue ( Property ) , nameof ( Value ) ) ;
RaiseAndSetIfChanged ( ref _ type , _ value ? . GetType ( ) . Name ? ? Property . PropertyType . Nam e , nameof ( Type ) ) ;
RaiseAndSetIfChanged ( ref _ type , _ value ? . GetType ( ) ? ? Property . PropertyType , nameof ( Type ) ) ;
RaiseAndSetIfChanged ( ref _ priority , "Direct" , nameof ( Priority ) ) ;
RaiseAndSetIfChanged ( ref _ priority , "Direct" , nameof ( Priority ) ) ;
_ group = "Properties" ;
_ group = "Properties" ;
@ -68,7 +68,7 @@ namespace Avalonia.Diagnostics.ViewModels
var val = _ target . GetDiagnostic ( Property ) ;
var val = _ target . GetDiagnostic ( Property ) ;
RaiseAndSetIfChanged ( ref _ value , val ? . Value , nameof ( Value ) ) ;
RaiseAndSetIfChanged ( ref _ value , val ? . Value , nameof ( Value ) ) ;
RaiseAndSetIfChanged ( ref _ type , _ value ? . GetType ( ) . Name ? ? Property . PropertyType . Nam e , nameof ( Type ) ) ;
RaiseAndSetIfChanged ( ref _ type , _ value ? . GetType ( ) ? ? Property . PropertyType , nameof ( Type ) ) ;
if ( val ! = null )
if ( val ! = null )
{
{