Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Oystein Bjorke
    @objorke
    Welcome!
    Ghost
    @ghost~5601d0c40fc9f982beb1818a
    Hello Everyone :)
    objorke/PropertyTools#90 so anyone can help me with this?
    Oystein Bjorke
    @objorke
    I think you could create a List<List<bool>>that contains the presence per person and lesson. See example https://github.com/objorke/PropertyTools/blob/master/Source/Examples/DataGrid/DataGridDemo/Examples/Window506.xaml
    Can we close #90?
    Caelan Sayler
    @caesay
    Does anyone watch this chat? I'm curious about a couple things,
    1. nested classes, i couldn't find any examples in the solution that lend to this
    2. non-image icon templates? ex. vector based icons? (these are the only way to reliably support dpi differences)
    Caelan Sayler
    @caesay
    (I've just implemented the latter, still wondering about nested classes)
    Oystein Bjorke
    @objorke
    @caesay sorry, I don't understand what you mean in (1)
    Caelan Sayler
    @caesay
    @objorke alright, lets say you have a model like the following:
    class ParentClass {
        string SomeProperty {get;set;}
        NestedClass SomeMorePropertiesInside {get;set;}
    }
    class NestedClass {
        string AnotherProperty {get;set;}
    }
    Oystein Bjorke
    @objorke
    In a PropertyGrid? You need to define a control for the nested class type.
    Caelan Sayler
    @caesay
    Right, I didn't think of that.
    I've already hacked something together and made it work by simply including the target object within the PropertyItem class, and using that as the datacontext on a per-property basis.
    I can send you a pull request for (2) though, if you want. I don't suppose you'll want the other changes.
    Oystein Bjorke
    @objorke
    Good! But please create an issue first. It might need to be discussed. And remember to include examples on usage in the PR.
    Taylor Hillegeist
    @taylorh140

    HI, In the Datagrid I am experiencing some odd behavior perhaps the greybeards will know why. I have bound SelectedItems to an ObservableCollection<myclass> using the following xaml:

    <p:DataGrid AutoGenerateColumns="False" ItemsSource="{Binding FetchEntries}" SelectedItems="{Binding SelectedFetchEntries,Mode=OneWayToSource}">

    When I select a row on the application I find that the SelectItems value is a IEnumerable of myclass

    DataGrid.cs:1322     this.SetValue(SelectedItemsProperty, value);

    but at the breakpoint for my viewmodel the value becomes null? for some reason.

            public ObservableCollection<myclass> SelectedFetchEntries
            {
                get { return _SelectedFetchEntries; }
                set { _SelectedFetchEntries = value; }
            }
    Taylor Hillegeist
    @taylorh140
    I suppose the type needs to be IEnumerable in the bound object and not Observable collection
    lsadehaan
    @lsadehaan
    Doesn't seem to be a very busy group for such a cool control :)
    It's funny, I came here to ask exactly what @caesay asked about - nested classes properties
    basically making the propertygrid the control for showing the nested class - did the code ever get incldued?
    Ghost
    @ghost~5b0060acd73408ce4f99f53a
    image.png
    Anybody know why this not work for .net core 3 desktop app?
    image.png