Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Turning a ListView deived control into a look less control

$
0
0

So I have used this solution:

http://social.msdn.microsoft.com/Forums/en/wpf/thread/3308367d-0174-4389-9586-2875712bed73

to implement a new control that derives from ListView. I am stuck at the spot where I want to stash the control away into a DLL project and make a look less control out of it. Somwhow, I seem to be unable to describe and apply the Control Template Style for my new control from within the Control Template DLL. Other controls in that DLL work fine, so, I am thinking there must be something "ListView" specific missing here :)

I have tried to override the default style key with the corresponding static constructor but the template style in the controls DLL/Themes/Generic.xaml is never loaded. Although, the style is loaded if I put it into the applications Themes/Generic.xaml (???)

What do I have to do to turn Whei Zou's PersonListView into a look less control?


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>