This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I have two situations where I need it.One is when I just put ComboBox for property editor (which I fill with data when window is loaded). The second one is when I have user control which is used as property editor (in exact situation it just contains textbox and button). In both cases, they have standard look even Alloy is used for PropertyGrid. Is there a way to apply styles from Alloy to ComboBox and for TextBox inside user control? |
|
|
You can reference the Alloy resource dictionary in your user control and access the styles by name (look at the Alloy.xaml source code under the installation directory > Source > Styles to find the names), or copy the required style declarations (from the same place) and paste it into your user control. (We supply Alloy.xaml source with all editions of the grid -- you don't need Enterprise edition for this.) |
|
|
I couldn't use first approach because there was some "collision" with existing Alloy class from .dll (Visual Studio were reporting that there is no Alloy.StyleKey property). However, second approach worked without a problem. Thanks. |
|