Click here to Skip to main content
11,576,993 members (57,443 online)

Silverlight / WPF

 
GeneralRe: Can anyone suggest any good books or tutorials on WPF-MVVM please? Pin
Vijay Kanda13-Nov-12 21:56
memberVijay Kanda13-Nov-12 21:56 
AnswerRe: Can anyone suggest any good books or tutorials on WPF-MVVM please? Pin
Abhinav S13-Nov-12 21:19
mvpAbhinav S13-Nov-12 21:19 
GeneralRe: Can anyone suggest any good books or tutorials on WPF-MVVM please? Pin
Vijay Kanda13-Nov-12 21:59
memberVijay Kanda13-Nov-12 21:59 
GeneralRe: Can anyone suggest any good books or tutorials on WPF-MVVM please? Pin
Abhinav S13-Nov-12 23:09
mvpAbhinav S13-Nov-12 23:09 
QuestionDatabinding ICollectionView to DataGrid WPF C# Pin
maycockt8-Nov-12 5:57
membermaycockt8-Nov-12 5:57 
AnswerRe: Databinding ICollectionView to DataGrid WPF C# Pin
maycockt8-Nov-12 22:42
membermaycockt8-Nov-12 22:42 
QuestionPrinting with more than 96 dpi in WPF Pin
Member 45210688-Nov-12 2:22
memberMember 45210688-Nov-12 2:22 
AnswerRe: Printing with more than 96 dpi in WPF Pin
Super Lloyd14-Nov-12 16:16
memberSuper Lloyd14-Nov-12 16:16 
GeneralRe: Printing with more than 96 dpi in WPF Pin
Member 452106819-Nov-12 22:26
memberMember 452106819-Nov-12 22:26 
QuestionI have issues with the C# WPF WebBrowser class Pin
Xarzu6-Nov-12 20:14
memberXarzu6-Nov-12 20:14 
AnswerRe: I have issues with the C# WPF WebBrowser class Pin
Gerry Schmitz7-Nov-12 11:04
memberGerry Schmitz7-Nov-12 11:04 
QuestionBlurry Borderline In FlowDocument Pin
FocusedWolf6-Nov-12 10:46
memberFocusedWolf6-Nov-12 10:46 
AnswerRe: Blurry Borderline In FlowDocument Pin
Gerry Schmitz7-Nov-12 13:13
memberGerry Schmitz7-Nov-12 13:13 
AnswerRe: Blurry Borderline In FlowDocument Pin
FocusedWolf7-Nov-12 16:00
memberFocusedWolf7-Nov-12 16:00 
Ok i figured out a way that works, although its a bit ugly:

<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <FlowDocumentScrollViewer>
        <FlowDocument>
        
            <Paragraph>
                <InlineUIContainer>
                    
                    <Border BorderBrush="Black" BorderThickness="1" Padding="10" SnapsToDevicePixels="True">
                        <Expander>
                            <Expander.Header>
                                <TextBlock Text="An expander" Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Expander}}, Path=ActualWidth}" />
                            </Expander.Header>
                                                
                            <Button>A button</Button>
                        </Expander>                    
                    </Border>
                    
                </InlineUIContainer>
            </Paragraph>
            
        </FlowDocument>
    </FlowDocumentScrollViewer>
</Window>

As for why, my code is based on this: http://stackoverflow.com/questions/3798262/how-to-collapse-a-paragraph although i've been improving it. The idea is add or remove a paragraph block below the expander block based on the state of the expander. That + code to handle the copy to clipboard to convert the uielements to text (in this case, getting the header string of the expander) and the result is an interactive flowdocument with collapsing regions and copy support.

modified 7-Nov-12 23:32pm.

QuestionBinding in a WPF TreeViewItem Pin
John Simmons / outlaw programmer6-Nov-12 8:16
mvpJohn Simmons / outlaw programmer6-Nov-12 8:16 
AnswerRe: Binding in a WPF TreeViewItem Pin
Pete O'Hanlon6-Nov-12 8:29
protectorPete O'Hanlon6-Nov-12 8:29 
GeneralRe: Binding in a WPF TreeViewItem Pin
John Simmons / outlaw programmer6-Nov-12 8:54
mvpJohn Simmons / outlaw programmer6-Nov-12 8:54 
GeneralRe: Binding in a WPF TreeViewItem Pin
Pete O'Hanlon6-Nov-12 9:00
protectorPete O'Hanlon6-Nov-12 9:00 
GeneralRe: Binding in a WPF TreeViewItem Pin
John Simmons / outlaw programmer6-Nov-12 9:22
mvpJohn Simmons / outlaw programmer6-Nov-12 9:22 
GeneralRe: Binding in a WPF TreeViewItem Pin
Pete O'Hanlon6-Nov-12 9:29
protectorPete O'Hanlon6-Nov-12 9:29 
GeneralRe: Binding in a WPF TreeViewItem Pin
John Simmons / outlaw programmer6-Nov-12 9:37
mvpJohn Simmons / outlaw programmer6-Nov-12 9:37 
GeneralRe: Binding in a WPF TreeViewItem Pin
Pete O'Hanlon6-Nov-12 9:44
protectorPete O'Hanlon6-Nov-12 9:44 
GeneralRe: Binding in a WPF TreeViewItem Pin
John Simmons / outlaw programmer6-Nov-12 10:02
mvpJohn Simmons / outlaw programmer6-Nov-12 10:02 
GeneralRe: Binding in a WPF TreeViewItem Pin
John Simmons / outlaw programmer6-Nov-12 10:13
mvpJohn Simmons / outlaw programmer6-Nov-12 10:13 
GeneralRe: Binding in a WPF TreeViewItem Pin
Pete O'Hanlon6-Nov-12 10:22
protectorPete O'Hanlon6-Nov-12 10:22 
GeneralRe: Binding in a WPF TreeViewItem Pin
John Simmons / outlaw programmer6-Nov-12 10:27
mvpJohn Simmons / outlaw programmer6-Nov-12 10:27 
GeneralRe: Binding in a WPF TreeViewItem Pin
Pete O'Hanlon6-Nov-12 10:28
protectorPete O'Hanlon6-Nov-12 10:28 
GeneralRe: Binding in a WPF TreeViewItem Pin
John Simmons / outlaw programmer7-Nov-12 3:53
mvpJohn Simmons / outlaw programmer7-Nov-12 3:53 
GeneralRe: Binding in a WPF TreeViewItem Pin
Pete O'Hanlon7-Nov-12 4:01
protectorPete O'Hanlon7-Nov-12 4:01 
GeneralRe: Binding in a WPF TreeViewItem Pin
John Simmons / outlaw programmer7-Nov-12 5:24
mvpJohn Simmons / outlaw programmer7-Nov-12 5:24 
GeneralRe: Binding in a WPF TreeViewItem Pin
John Simmons / outlaw programmer8-Nov-12 4:30
mvpJohn Simmons / outlaw programmer8-Nov-12 4:30 
GeneralRe: Binding in a WPF TreeViewItem Pin
John Simmons / outlaw programmer8-Nov-12 5:53
mvpJohn Simmons / outlaw programmer8-Nov-12 5:53 
GeneralRe: Binding in a WPF TreeViewItem Pin
John Simmons / outlaw programmer8-Nov-12 10:13
mvpJohn Simmons / outlaw programmer8-Nov-12 10:13 
Questionslide menu Pin
HimmelDeveloper2-Nov-12 6:51
memberHimmelDeveloper2-Nov-12 6:51 
AnswerRe: slide menu Pin
Richard MacCutchan2-Nov-12 10:27
mvpRichard MacCutchan2-Nov-12 10:27 
QuestionCustomized Scrollbar not working properly Pin
Anil_S.Kamble2-Nov-12 5:11
memberAnil_S.Kamble2-Nov-12 5:11 
QuestionCustom TreeViewItems Pin
John Simmons / outlaw programmer2-Nov-12 4:06
mvpJohn Simmons / outlaw programmer2-Nov-12 4:06 
AnswerRe: Custom TreeViewItems Pin
SledgeHammer012-Nov-12 6:47
memberSledgeHammer012-Nov-12 6:47 
QuestionHow to detect if the users pressed Ctrl and V at the same time? Pin
gmf1-Nov-12 11:26
membergmf1-Nov-12 11:26 
AnswerRe: How to detect if the users pressed Ctrl and V at the same time? Pin
Pete O'Hanlon1-Nov-12 11:49
protectorPete O'Hanlon1-Nov-12 11:49 
GeneralRe: How to detect if the users pressed Ctrl and V at the same time? Pin
gmf1-Nov-12 13:28
membergmf1-Nov-12 13:28 
GeneralRe: How to detect if the users pressed Ctrl and V at the same time? Pin
Pete O'Hanlon1-Nov-12 13:34
protectorPete O'Hanlon1-Nov-12 13:34 
QuestionXAML Diff Source Compare Pin
_Maxxx_30-Oct-12 15:04
member_Maxxx_30-Oct-12 15:04 
AnswerRe: XAML Diff Source Compare Pin
Mycroft Holmes30-Oct-12 17:42
memberMycroft Holmes30-Oct-12 17:42 
GeneralRe: XAML Diff Source Compare Pin
_Maxxx_30-Oct-12 23:19
member_Maxxx_30-Oct-12 23:19 
AnswerRe: XAML Diff Source Compare Pin
Abhinav S30-Oct-12 21:22
mvpAbhinav S30-Oct-12 21:22 
GeneralRe: XAML Diff Source Compare Pin
_Maxxx_30-Oct-12 23:20
member_Maxxx_30-Oct-12 23:20 
AnswerRe: XAML Diff Source Compare Pin
Pete O'Hanlon30-Oct-12 22:32
protectorPete O'Hanlon30-Oct-12 22:32 
GeneralRe: XAML Diff Source Compare Pin
_Maxxx_30-Oct-12 23:24
member_Maxxx_30-Oct-12 23:24 
QuestionHow to set the wcf ria service time out. Pin
Saurabh_0829-Oct-12 11:32
memberSaurabh_0829-Oct-12 11:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.150603.1 | Last Updated 2 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid