Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlowDocument in ItemTemplate #123

Closed
hawelo opened this issue Jan 29, 2015 · 1 comment
Closed

FlowDocument in ItemTemplate #123

hawelo opened this issue Jan 29, 2015 · 1 comment

Comments

@hawelo
Copy link

hawelo commented Jan 29, 2015

Hi,
I have a special case where I need to display flowdocuments in an itemscontrol and to support ordering of these flowdocuments by drag&drop. It looks that this special case is not currenlty supported.
Is there a way to make this work with the gong drag&drop?
Here is an example of ItemTemplate:

<DataTemplate>
    <FlowDocumentScrollViewer IsSelectionEnabled="False">
        <FlowDocument>
            <Paragraph>Test</Paragraph>
        </FlowDocument>
    </FlowDocumentScrollViewer>
</DataTemplate>
@punker76
Copy link
Owner

@hawelo try setting IsHitTestVisible="False" (i tested it shortly and it seems to work, i added it to the default example)

<DataTemplate>
  <FlowDocumentScrollViewer IsSelectionEnabled="False" IsHitTestVisible="False">
    <FlowDocument>
      <Paragraph>Test</Paragraph>
    </FlowDocument>
  </FlowDocumentScrollViewer>
</DataTemplate>

punker76 added a commit that referenced this issue Apr 11, 2015
punker76 added a commit that referenced this issue Aug 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants