Click here to Skip to main content
15,917,328 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Command Binding Pin
SledgeHammer0119-Nov-12 12:14
SledgeHammer0119-Nov-12 12:14 
GeneralRe: Command Binding Pin
Mycroft Holmes19-Nov-12 13:26
professionalMycroft Holmes19-Nov-12 13:26 
GeneralRe: Command Binding Pin
Wayne Gaylard20-Nov-12 3:29
professionalWayne Gaylard20-Nov-12 3:29 
GeneralRe: Command Binding Pin
SledgeHammer0120-Nov-12 6:42
SledgeHammer0120-Nov-12 6:42 
AnswerRe: Command Binding Pin
Pete O'Hanlon22-Nov-12 22:41
mvePete O'Hanlon22-Nov-12 22:41 
GeneralRe: Command Binding Pin
Andy_L_J23-Nov-12 1:48
Andy_L_J23-Nov-12 1:48 
QuestionWPF Components For WinForm Pin
alirezamansoori13-Nov-12 5:26
alirezamansoori13-Nov-12 5:26 
AnswerRe: WPF Components For WinForm Pin
Pete O'Hanlon13-Nov-12 7:56
mvePete O'Hanlon13-Nov-12 7:56 
AnswerRe: WPF Components For WinForm Pin
Abhinav S13-Nov-12 21:17
Abhinav S13-Nov-12 21:17 
GeneralRe: WPF Components For WinForm Pin
alirezamansoori14-Nov-12 20:40
alirezamansoori14-Nov-12 20:40 
QuestionCan anyone suggest any good books or tutorials on WPF-MVVM please? Pin
Vijay Kanda11-Nov-12 19:22
Vijay Kanda11-Nov-12 19:22 
AnswerRe: Can anyone suggest any good books or tutorials on WPF-MVVM please? Pin
Praveen Raghuvanshi13-Nov-12 7:22
professionalPraveen Raghuvanshi13-Nov-12 7:22 
GeneralRe: Can anyone suggest any good books or tutorials on WPF-MVVM please? Pin
Vijay Kanda13-Nov-12 21:56
Vijay 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
Abhinav 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
Vijay 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
Abhinav S13-Nov-12 23:09 
QuestionDatabinding ICollectionView to DataGrid WPF C# Pin
maycockt8-Nov-12 5:57
maycockt8-Nov-12 5:57 
AnswerRe: Databinding ICollectionView to DataGrid WPF C# Pin
maycockt8-Nov-12 22:42
maycockt8-Nov-12 22:42 
QuestionPrinting with more than 96 dpi in WPF Pin
Member 45210688-Nov-12 2:22
Member 45210688-Nov-12 2:22 
AnswerRe: Printing with more than 96 dpi in WPF Pin
Super Lloyd14-Nov-12 16:16
Super Lloyd14-Nov-12 16:16 
GeneralRe: Printing with more than 96 dpi in WPF Pin
Member 452106819-Nov-12 22:26
Member 452106819-Nov-12 22:26 
QuestionI have issues with the C# WPF WebBrowser class Pin
Xarzu6-Nov-12 20:14
Xarzu6-Nov-12 20:14 
AnswerRe: I have issues with the C# WPF WebBrowser class Pin
Gerry Schmitz7-Nov-12 11:04
mveGerry Schmitz7-Nov-12 11:04 
QuestionBlurry Borderline In FlowDocument Pin
FocusedWolf6-Nov-12 10:46
FocusedWolf6-Nov-12 10:46 
It seems no amount of SnapsToDevicePixels="True" and/or UseLayoutRounding="True" can make the border around a Paragraph sharp:

XML
<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:

XML
<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
mveGerry Schmitz7-Nov-12 13:13 

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.