Register  |  Login
 
 
 
 
You are here :- Support
Support Minimize

To post questions on the forum, you must be logged in (Registration is required).  Your information remains confidential, we do not pass or sell any information to third parties.

You can always contact us at support@jastdev.com or you can alternatively use the forum to ask questions.

Print  
Forum Minimize
 
  Support  Docking Control  General  SnapToDevicePixel Hard coded to true?
Previous Previous
 
Next Next
New Post 6/1/2008 8:46 PM
  raianeh
1 posts
No Ranking


SnapToDevicePixel Hard coded to true? 
Modified By raianeh  on 6/1/2008 12:48:05 PM)

Hi, We are having an issue with our WPF application using Jast Dev DockingControl. The diagonal lines appear choppy. After reading some WPF documentation it seems that this happens if SnapToDevicePixel is On (e.g. true). Can you please check whether this is hard coded to On? Would be greateful if you could help us resolve this issue. Even the checked symbol of a Radio Button appears choppy when it is embedded in dock window and loaded as a page.

Cheers

 
New Post 6/2/2008 9:03 AM
  bragi
11 posts
10th Level Poster


Re: SnapToDevicePixel Hard coded to true? 
Modified By bragi  on 6/2/2008 1:08:27 AM)

SnapsToDevicePixel is indeed one of the properties that can cause this.  The ToolFrame does set this in the default style (so it isn't hard code, you can always change the style).  A more important attached property is RenderOptions.EdgeMode, which should be set to Aliased.  Try setting these properties (especially RenderOptions.EdgeMode) on the object that is used as the content for a ToolFrameItem (usually a page).  This should solve the problem. 

Hope this helps.

 
New Post 6/2/2008 9:16 AM
  bragi
11 posts
10th Level Poster


Re: SnapToDevicePixel Hard coded to true? 
Modified By bragi  on 6/2/2008 1:16:33 AM)

My appologies, my previous post has a small error.  The value for RenderOptions.EdgeMode should be set to Unspecified.

If you change the default style of the ToolFrame, and set this attached property to Unspecified, this should fix it.  You can either do this on the ToolFrame itself or you pages, both should work.

Thank you for bringing this to my attention.

 
New Post 6/2/2008 6:54 PM
  bragi
11 posts
10th Level Poster


Re: SnapToDevicePixel Hard coded to true? 
Modified By bragi  on 6/2/2008 10:55:39 AM)

We have just released a fresh version of the library with updated resource dictionaries so that the default style of the ToolFrame sets RenderOptions.EdgeMode to Unspecified.  This way, you don't have to use custom styles to get the correct view. The custom styles in the demo's have also been updated.

You can get it from the Download section.

 
Previous Previous
 
Next Next
  Support  Docking Control  General  SnapToDevicePixel Hard coded to true?
Print