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

How to init Style type property in sample data source

$
0
0

I have a viewmodel with Style type property and want to create sample data source to get view in designer. I use 

Application.Current.FindResource("CustomStyle")
to define property in code behind, 

but how can i define this Style type property in my ViewModelSampleData.xaml?

I mean somthing like:

<MyNameSpace:MyViewModel MyCustomPropertyStyle="here some initialization for CustomStyle">


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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