Welcome to the Xceed Community | Help
Community Search  
More Search Options

How to apply themes in Listview

Sort Posts: Previous Next
  •  06-10-2012, 7:45 AM Post no. 32224

    How to apply themes in Listview

    Gud day to all of you guyz. just want to ask how to apply themes in listview WPF. thanks
  •  06-10-2012, 10:32 AM Post no. 32225 in reply to 32224

    Re: How to apply themes in Listview

    Hi,

    There are 2 ways to apply themes in WPF using the Professional Themes package. 

    1) Implicitly

    2) Explicitly

    If you want to apply them implicitly so that every Listview has the same theme, then you can do it as instructed here. If you are looking to apply them explicitly, you can do it as it is shown in the documentation here. If you need to see the available controls that are supported for every theme, you can also view them in the online documentation.


    Marc

    Developer in Technical Support
    Xceed - Multi-talented components - http://xceed.com
  •  06-10-2012, 12:57 PM Post no. 32228 in reply to 32225

    Re: How to apply themes in Listview

    thanks for your reply. yes i tried to use the explicit. but the problem is it doesnt work in my header.. it's still the same as the original theme.... whenevr i mouse over the data inside the listview, it's not working also as what the example of the xceed professional theme example...

     

    here's my code:

     

                         <ListView Style="{x:Static xcpt:GlassResources.ListViewStyle}" FontSize="14">
                            <ListView.View>
                                <GridView>
                                    <GridViewColumn Width="150" Header="Date From" />
                                    <GridViewColumn Width="150" Header="Date To" />
                                    <GridViewColumn Width="200" Header="Created By" />
                                    <GridViewColumn Width="150" Header="Date Created" />
                                </GridView>
                            </ListView.View>
                        </ListView>

  •  06-11-2012, 8:59 PM Post no. 32237 in reply to 32228

    Re: How to apply themes in Listview

    Attachment: TestProject149129.zip

    Hi,

    This works for me. The theme is applied to my header. I have attached a sample application. It is very simple, just enough to see if the theme is applied. You will just need to put your license key in XAML and make sure you have the proper DLLs installed. I just decided to use the LiveExplorer for this example.


    Marc

    Developer in Technical Support
    Xceed - Multi-talented components - http://xceed.com
  •  06-12-2012, 6:51 AM Post no. 32239 in reply to 32237

    Re: How to apply themes in Listview

    thank you so much for your reply and thanks now i solve it by removing the styleusagemode... gosh!!! by the way if im going to set my styleusagemode. let say i have to buttons. one is using xceed theme and the other is none..... how to do it?  thanks a lot again and God bless :)
  •  06-12-2012, 11:15 PM Post no. 32245 in reply to 32239

    Re: How to apply themes in Listview

    Hi,

    I have forwarded this case to the lead developer of the component. I now see why you were having issues. Currently, the style will only get applied if it is added implicitly, but like you said, this is an issue if you don't want 2 buttons to have the same theme. I will forward you his feedback as soon as I receive it. Also, if possible, I will provide you with a solution. I am not saying there is one, but if there is, I will give it to you.


    Marc

    Developer in Technical Support
    Xceed - Multi-talented components - http://xceed.com
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.