DescriptionPanel

12 posts, 1 answers
  1. Hans Peter
    Hans Peter avatar
    30 posts
    Member since:
    May 2006

    Posted 29 Jun 2011 Link to this post

    As the beta example is not that detailed, I have to ask:

    Is it possible to set the initial height of the description panel and where can I switch on, that the user can change the height of the description panel?

    Greets
  2. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 29 Jun 2011 Link to this post

    Hi Hans,

     

    You may change the height of the RadPropertyGrid's DescriptionPanel by altering the template of RadPropertyGrid. There you may find the PART_DescriptionPanel and change its height from there. 


    Regards,
    Vanya Pavlova
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Hans Peter
    Hans Peter avatar
    30 posts
    Member since:
    May 2006

    Posted 29 Jun 2011 Link to this post

    .. and how can the user change the size of DescriptionPanel like in VS?
  5. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 29 Jun 2011 Link to this post

    Hi Hans,

     

    You may use Microfost Expression Blend to extract the template of RadPropertyGrid and to find the DescriptionPanel. If you take a look at the default template you may see that the MinHeight of the panel is set to 75 pixels. Just change this height in the way you need.

    <Border x:Name="PART_DescriptionPanel" Visibility="{TemplateBinding DescriptionPanelVisibility}"
                            MinHeight="75" Grid.Row="2" BorderBrush="{StaticResource PropertyGrid_DescriptionBorderBrush}"
                            BorderThickness="0,1,0,0" Background="{StaticResource PropertyGrid_DescriptionBackground}">
                        <StackPanel Orientation="Vertical">
                            <TextBlock Text="{Binding SelectedPropertyDefinition.DisplayName,ElementName=PropertyGridPresenter}"  Margin="5" FontWeight="Bold"/>
                            <TextBlock Text="{Binding SelectedPropertyDefinition.Description,ElementName=PropertyGridPresenter}"  Margin="5" TextWrapping="Wrap"/>
                        </StackPanel>
                    </Border>


    For those clients who do not use Blend we ship our themes as separate projects. You may get the xaml files for all Telerik themes from the Themes folder of your personal installaion.

     

    All the best,
    Vanya Pavlova
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Hans Peter
    Hans Peter avatar
    30 posts
    Member since:
    May 2006

    Posted 29 Jun 2011 Link to this post

    Hi Vanya,

    thanks for the answer, but I think my question wasn't well formulated. I want to know how the user of my programm can change the size of the description panel when the program is running.

    Greets
  7. Answer
    Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 29 Jun 2011 Link to this post

    Hi Hans Peter,

     
    Thank you for getting back to us! Such functionality is not built-in supported in our RadPropertyGrid. If you want to achieve this effect you should alter the appearance of RadPropertyGrid and use some control such as GridSplitter to achieve the desired result. 


    Best wishes,
    Vanya Pavlova
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. Hans Peter
    Hans Peter avatar
    30 posts
    Member since:
    May 2006

    Posted 30 Jun 2011 Link to this post

    Hi Vanya,

    thanks for the response. I don't know how to "alter the appearance of RadPropertyGrid and use some control such as GridSplitter to achieve the desired result" .. but maybe you meant RadGrid, but then building my own PG is a bit to much for this smal effect :)

    However; it would be great, if you add a feature request for the next release, that the initial size of the description panel can be set directly on the PG and another one that the size can be changed at runtime.

    Thanks
    Hans
  9. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 30 Jun 2011 Link to this post

    Hi Hans,

     
    Thank you for getting back to us! We always appreciate customers feedback related to our components. By that reason I have logged your suggestion as feature request in our PITS System. I would encourage you to vote and this will increase its priority when we consider our future development plans. You may track its progress following this link http://www.telerik.com/support/pits.aspx#/public/silverlight/6688


    Regards,
    Vanya Pavlova
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  10. Greg
    Greg avatar
    16 posts
    Member since:
    Apr 2011

    Posted 14 Jul 2011 Link to this post

    I understand how to get the template but it's not clear how I would change the height of the Description Panel. Are you suggesting to change the height in the template itself found from the Themes folder of our personal installation? If not can you please clarify the exact steps needed to change the height of the Description Panel. Personally I'd like to remove it completely. I have DescriptionPanelVisibility set to hidden, however, there is still a line across the control where it previously existed. I'd like to remove the Description Panel and regain the space for displaying my data.
  11. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 15 Jul 2011 Link to this post

    Hello Hans Peter,

     

    If you want to remove completely RadPropertyGrid's DescriptionPanel you should use Expression Blend. Edit its template and remove the Border element named DescriptionPanel and its content to achieve the desired result. If you need sample project that demonstrates how this can be achieved please let me know. 


    All the best,
    Vanya Pavlova
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  12. Greg
    Greg avatar
    16 posts
    Member since:
    Apr 2011

    Posted 15 Jul 2011 Link to this post

    Vanya Pavlov,

    Hello, thank you for getting back with me. Yes, some sort of explanation or example would be very appreciated. I've successfully viewed the XAML in the themes and via Blend. But there is no indication in this thread on what to do once you have altered the Description Panel. How do I save the changes? How do I use the changes I've made. Can you please give a detailed explanation on how to complete the process of editing the XAML of the Description Panel?

    Also, this would be all so much easier if the DescriptionPanelVisability Method would also remove the template footprint, i.e. truly be not visible. By leaving the template footprint, (the line across the control where the Description Panel once was) really defeats the purpose of visibility. Can you please add a feature request that completely removes the Description Panel from the control when the visibilty state is set to hidden?

    Greg

    p.s. You must also remove lines 327 - 329 because the template is used on line 328, see attached.
  13. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 20 Jul 2011 Link to this post

    Hi Greg,

     
    In answer to :
    "Also, this would be all so much easier if the DescriptionPanelVisability Method would also remove the template footprint, i.e. truly be not visible. By leaving the template footprint, (the line across the control where the Description Panel once was) really defeats the purpose of visibility".

    Can you please try set the Visibility to Collapsed  instead of hidden . This should generate the result you expect.

    All the best,
    Pavel Pavlov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top
UI for WPF is Visual Studio 2017 Ready