Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Problem with styles (Read 3562 times)
Hunter
Full Member
***
Offline



Posts: 194
Location: Sevastopol
Joined: Dec 1st, 2009
Problem with styles
Mar 28th, 2012 at 8:20am
Print Post  
Hello. I use the version 2.7.0.14366 of the library and find the problem. I use ActiPro WPFStudio DockingLayout and in their dockable windows I use Diagram objects and NodeListView object. When I enable applying styles to the native controls all objects from the NodeListView are disappearing. But when I change NodeListView to the standard WPF ListView I can't see this effect.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Problem with styles
Reply #1 - Mar 28th, 2012 at 11:32am
Print Post  
Hi, What does the style you are applying look like?
  
Back to top
 
IP Logged
 
Hunter
Full Member
***
Offline



Posts: 194
Location: Sevastopol
Joined: Dec 1st, 2009
Re: Problem with styles
Reply #2 - Mar 28th, 2012 at 12:33pm
Print Post  
There are the standard themes such as Office 2007 Black, Office 2007 Blue, Classic, Luna and etc. I think when I allow to use themes for native controls it tries to apply these themes for the NodeListView inside the DockWindow and after that I don't see the elements inside NodeListView
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Problem with styles
Reply #3 - Mar 29th, 2012 at 7:53am
Print Post  
I don't have these controls, but changing the standard themes at the application level does not hide the NodeListView in my test app, so I suppose ActiPro's themes go too deep and replace the NodeListView's generic item template. You might try setting the generic template as an explicit ItemTemplate property value, so that it does not inherit the template from the parent control:

Code
Select All
<diag:NodeListView Name="nodeListView" Width="300">
	<diag:NodeListView.ItemTemplate>
		<DataTemplate>
			<StackPanel Orientation='Horizontal' >
				<Border BorderThickness='3'>
					<ContentPresenter Content='{Binding}'/>
				</Border>
				<TextBlock Text='{Binding Path=(diag:NodeListView.Label)}'
						   VerticalAlignment='Center'
						   TextAlignment='Center'/>
			</StackPanel>
		</DataTemplate>
	</diag:NodeListView.ItemTemplate>
	<diag:ShapeNode Text="node1" Bounds="0,0,20,30" Shape="Decision" diag:NodeListView.Label="test label" />
	<diag:ShapeNode Text="node2" Bounds="0,0,20,30" Shape="Ellipse" diag:NodeListView.Label="test2" />
</diag:NodeListView> 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Joel D.
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 27
Location: Seattle
Joined: Feb 6th, 2017
Re: Problem with styles
Reply #4 - Apr 20th, 2017 at 5:57am
Print Post  
I think I was having the same problem, but it was the ItemContainerStyle that I had to explicitly set on the NodeListView to get the items to actually show up in the list.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Online


tech.support

Posts: 3148
Joined: Oct 19th, 2005
Re: Problem with styles
Reply #5 - Apr 20th, 2017 at 10:30am
Print Post  
Are you using ActiPro themes too?
  
Back to top
 
IP Logged
 
Joel D.
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 27
Location: Seattle
Joined: Feb 6th, 2017
Re: Problem with styles
Reply #6 - Apr 21st, 2017 at 3:41am
Print Post  
No, not ActiPro themes.  I'm using ExpressionDark, which I think I got from Microsoft's WPF Toolkit.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint