Click here to Skip to main content
15,900,475 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: convert byte[] to BitmabImage Pin
Pete O'Hanlon12-May-09 2:35
mvePete O'Hanlon12-May-09 2:35 
AnswerRe: convert byte[] to BitmabImage Pin
morishuz18-Aug-10 6:35
morishuz18-Aug-10 6:35 
QuestionHow can I be notified when Windows XP fades the screen to gray? Pin
CooperWu11-May-09 21:03
CooperWu11-May-09 21:03 
AnswerRe: How can I be notified when Windows XP fades the screen to gray? Pin
Pete O'Hanlon12-May-09 2:19
mvePete O'Hanlon12-May-09 2:19 
GeneralRe: How can I be notified when Windows XP fades the screen to gray? Pin
CooperWu12-May-09 16:29
CooperWu12-May-09 16:29 
Questionhow to reduce CPU usage of WPF application? Pin
CooperWu11-May-09 20:59
CooperWu11-May-09 20:59 
AnswerRe: how to reduce CPU usage of WPF application? Pin
sivaddrahcir19-May-09 8:09
sivaddrahcir19-May-09 8:09 
QuestionForce a WPF control to refresh? Pin
CooperWu11-May-09 20:41
CooperWu11-May-09 20:41 
We have two textBlock like this: (we used .NET FW 3.0)

<br />
                    <TextBlock Grid.Column="0" Name="tabName" Style="{StaticResource textBlockBarStyle}" HorizontalAlignment="Left"><br />
                        <TextBlock.Margin><br />
                            <Binding Converter="{StaticResource dpiConverter}"><br />
                                <Binding.ConverterParameter><br />
                                    <Thickness Left="3" Top="6" Right="0" Bottom="0"/><br />
                                </Binding.ConverterParameter><br />
                            </Binding><br />
                        </TextBlock.Margin><br />
                    </TextBlock><br />


and
<br />
            <TextBox  x:Name="txtBoxHelp" <br />
                      IsReadOnly="True" Style="{DynamicResource txtBoxHelpStyle}" <br />
                      IsTabStop="False" <br />
                      Text="some text" MouseLeftButtonDown="txtBoxHelp_MouseLeftButtonDown"><br />
                <TextBox.Margin><br />
                    <Binding Converter="{StaticResource dpiConverter}"><br />
                        <Binding.ConverterParameter><br />
                            <Thickness Left="7" Top="0" Right="0" Bottom="0"/><br />
                        </Binding.ConverterParameter><br />
                    </Binding><br />
                </TextBox.Margin><br />
            </TextBox><br />

these two textBlock work well on others OS, but sometimes miss on the Windows XP Home Version with SP3. we have tried many ways to refresh these, but failed.

we tried: 1, UpdateLayout 2, InvalidateVisual 3, changed the set Text property in code to binding mode.

how to force these controls to refresh?

Glad to discuss with you and best wishes.

AnswerRe: Force a WPF control to refresh? Pin
Niladri_Biswas17-Jun-09 21:20
Niladri_Biswas17-Jun-09 21:20 
GeneralRe: Force a WPF control to refresh? Pin
Jasmine Pomelo24-Sep-09 6:10
Jasmine Pomelo24-Sep-09 6:10 
QuestionStyling a ScrollViewer? Pin
mildred-frontfree11-May-09 18:30
mildred-frontfree11-May-09 18:30 
QuestionRe: Styling a ScrollViewer? Pin
Mark Salsbery12-May-09 7:03
Mark Salsbery12-May-09 7:03 
AnswerRe: Styling a ScrollViewer? Pin
mildred-frontfree12-May-09 14:50
mildred-frontfree12-May-09 14:50 
GeneralRe: Styling a ScrollViewer? Pin
Mark Salsbery12-May-09 14:53
Mark Salsbery12-May-09 14:53 
GeneralRe: Styling a ScrollViewer? Pin
mildred-frontfree12-May-09 17:37
mildred-frontfree12-May-09 17:37 
QuestionMessage Removed Pin
11-May-09 8:51
professionalN_tro_P11-May-09 8:51 
AnswerMessage Removed Pin
11-May-09 9:09
professionalN_tro_P11-May-09 9:09 
GeneralMessage Removed Pin
11-May-09 9:19
professionalN_tro_P11-May-09 9:19 
GeneralRe: Custom Made Button Click event Pin
Mark Salsbery11-May-09 14:26
Mark Salsbery11-May-09 14:26 
QuestionMessage Removed Pin
12-May-09 3:39
professionalN_tro_P12-May-09 3:39 
AnswerRe: Custom Made Button Click event Pin
Mark Salsbery12-May-09 6:48
Mark Salsbery12-May-09 6:48 
GeneralMessage Removed Pin
12-May-09 7:55
professionalN_tro_P12-May-09 7:55 
GeneralRe: Custom Made Button Click event Pin
Mark Salsbery12-May-09 8:14
Mark Salsbery12-May-09 8:14 
GeneralMessage Removed Pin
12-May-09 8:24
professionalN_tro_P12-May-09 8:24 
GeneralRe: Custom Made Button Click event Pin
Mark Salsbery12-May-09 9:14
Mark Salsbery12-May-09 9:14 

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.