Click here to Skip to main content
12,394,667 members (81,561 online)

Silverlight / WPF

 
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 
It seems no amount of SnapsToDevicePixels="True" and/or UseLayoutRounding="True" can make the border around a Paragraph sharp:

<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <FlowDocumentReader>
        <FlowDocument>
        
            <Paragraph BorderBrush="Black" BorderThickness="1" Padding="10">
                <InlineUIContainer>
                    <Expander Header="An expander" >
                        <Button>A button</Button>
                    </Expander>
                </InlineUIContainer>
            </Paragraph>
            
            <Paragraph BorderBrush="Black" BorderThickness="1" Padding="10">
                <InlineUIContainer>
                    <Expander Header="An expander" >
                        <Button>A button</Button>
                    </Expander>
                </InlineUIContainer>
            </Paragraph>
            
            <Paragraph BorderBrush="Black" BorderThickness="1" Padding="10">
                <InlineUIContainer>
                    <Expander Header="An expander" >
                        <Button>A button</Button>
                    </Expander>
                </InlineUIContainer>
            </Paragraph>
            
        </FlowDocument>
    </FlowDocumentReader>
</Window>

However i can use RenderOptions.EdgeMode="Aliased" which makes the border sharp, but distorts the Expander:

<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <FlowDocumentReader RenderOptions.EdgeMode="Aliased">
        <FlowDocument>
        
            <Paragraph BorderBrush="Black" BorderThickness="1" Padding="10">
                <InlineUIContainer>
                    <Expander Header="An expander" >
                        <Button>A button</Button>
                    </Expander>
                </InlineUIContainer>
            </Paragraph>
            
        </FlowDocument>
    </FlowDocumentReader>
</Window>

So, is there any way to make the border sharp without hurting the documents appearance? Big Grin | :-D
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 
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 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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
Web02 | 2.8.160721.1 | Last Updated 22 Jul 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid