© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
4 replies
DaVinki

❔ ✅ Display all properties of different types without an attribute in a WPF list?

I have a Vehicle object that looks like this:

public class Vehicle
{
    [DoNotLogInCsv]
    private ILogger? Logger { get; }
    [DoNotLogInCsv]
    public VehicleProfile Profile { get; }
    public DescribedValue<float> Rpm { get; private set; }
    public DescribedValue<int> IntakeManifoldAbsolutePressure { get; private set; }
    public DescribedValue<float> EngineLoad { get; private set; }
    public DescribedValue<int> FuelPressure { get; private set; }
    public DescribedValue<float> ThrottlePosition { get; private set; }
    public DescribedValue<float> TimingAdvance { get; private set; }
    public DescribedValue<float> IntakeAirTemperature { get; private set; }
    public DescribedValue<float> ShortTermFuelTrimBank1 { get; private set; }
    public DescribedValue<float> LongTermFuelTrimBank1 { get; private set; }
    public DescribedValue<int> VehicleSpeed { get; private set; }
    public DescribedValue<float> MafAirFlowRate { get; private set; }
    public DescribedValue<int> RuntimeSinceEngineStart { get; private set; }
    public DescribedValue<float> CommandedAirFuelEquivalencyRatio { get; private set; }
    public DescribedValue<int> EngineOilTemperature { get; private set; }
    public DescribedValue<float> FuelInjectionTiming { get; private set; }
}
public class Vehicle
{
    [DoNotLogInCsv]
    private ILogger? Logger { get; }
    [DoNotLogInCsv]
    public VehicleProfile Profile { get; }
    public DescribedValue<float> Rpm { get; private set; }
    public DescribedValue<int> IntakeManifoldAbsolutePressure { get; private set; }
    public DescribedValue<float> EngineLoad { get; private set; }
    public DescribedValue<int> FuelPressure { get; private set; }
    public DescribedValue<float> ThrottlePosition { get; private set; }
    public DescribedValue<float> TimingAdvance { get; private set; }
    public DescribedValue<float> IntakeAirTemperature { get; private set; }
    public DescribedValue<float> ShortTermFuelTrimBank1 { get; private set; }
    public DescribedValue<float> LongTermFuelTrimBank1 { get; private set; }
    public DescribedValue<int> VehicleSpeed { get; private set; }
    public DescribedValue<float> MafAirFlowRate { get; private set; }
    public DescribedValue<int> RuntimeSinceEngineStart { get; private set; }
    public DescribedValue<float> CommandedAirFuelEquivalencyRatio { get; private set; }
    public DescribedValue<int> EngineOilTemperature { get; private set; }
    public DescribedValue<float> FuelInjectionTiming { get; private set; }
}


A described value is just a string
Description
Description
and T
Value
Value
pair object

I want to get all of these properties without the CSV logging attribute to be shown in a WPF list. Any ideas on how I can do this? Couldn't come up with anything after a few hours and can't find much online.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

WPF how display a list of properties
C#CC# / help
3y ago
WPF Acquiring an Item clicked in a ListBox
C#CC# / help
2y ago
❔ ✅ Cant select an attribute of an object for display in a combobox or textbox
C#CC# / help
3y ago
Getting all types that implement a custom attribute
C#CC# / help
2y ago