Click here to Skip to main content
16,007,472 members
Home / Discussions / WPF
   

WPF

 
Questionxaml design vs drag and drop Pin
arkiboys3-Mar-11 23:56
arkiboys3-Mar-11 23:56 
AnswerRe: xaml design vs drag and drop Pin
Pravin Patil, Mumbai4-Mar-11 0:10
Pravin Patil, Mumbai4-Mar-11 0:10 
AnswerRe: xaml design vs drag and drop Pin
Dave Kerr4-Mar-11 0:30
mentorDave Kerr4-Mar-11 0:30 
AnswerRe: xaml design vs drag and drop Pin
Mycroft Holmes4-Mar-11 0:48
professionalMycroft Holmes4-Mar-11 0:48 
AnswerRe: xaml design vs drag and drop Pin
RugbyLeague4-Mar-11 5:04
RugbyLeague4-Mar-11 5:04 
AnswerRe: xaml design vs drag and drop Pin
Tarun.K.S6-Mar-11 7:14
Tarun.K.S6-Mar-11 7:14 
AnswerRe: xaml design vs drag and drop Pin
Jammer8-Mar-11 0:16
Jammer8-Mar-11 0:16 
QuestionWPF TextBox - setting caret so hard! Following code doesn't change a thing! [modified] Pin
devvvy3-Mar-11 22:17
devvvy3-Mar-11 22:17 
WPF TextBox - setting caret so hard! Following code doesn't change a thing!
(But works if I run the damn thing under Visual Studio debugger, stop working if I disable the breakpoints!)

<br />
        <StackPanel Name="pnFreeTxt" Grid.Row="0" Grid.Column="0" VerticalAlignment="Top" Visibility="Collapsed"><br />
            <TextBox Name="SomeTextValues" Width="150px" GotFocus="SomeTextValues_GotFocus" PreviewMouseUp="SomeTextValues_PreviewMouseUp"></TextBox><br />
        </StackPanel><br />
        <br />
        private void SomeTextValues_GotFocus(object sender, RoutedEventArgs e)<br />
        {<br />
            base.OnGotFocus(e);<br />
            SomeTextValues.CaretIndex = FreeTextValues.Text.Length + 2;<br />
            return;<br />
        }<br />
<br />
        private void SomeTextValues_PreviewMouseUp(object sender, MouseButtonEventArgs e)<br />
        {<br />
            SomeTextValues.CaretIndex = FreeTextValues.Text.Length + 2;<br />
            SomeTextValues.ReleaseMouseCapture();<br />
            e.Handled = true;<br />
            return;<br />
        }<br />


This doesn't help because I want caret set before user mouse down (auto focus on the textbox).[^]

Some guys are having similar issue with SomeTextBox.SelectAll()[^]
dev
modified on Friday, March 4, 2011 4:34 AM

QuestionUsing Office Themes Pin
Kevin Marois3-Mar-11 9:40
professionalKevin Marois3-Mar-11 9:40 
AnswerRe: Using Office Themes Pin
Pete O'Hanlon3-Mar-11 9:45
mvePete O'Hanlon3-Mar-11 9:45 
AnswerRe: Using Office Themes Pin
SledgeHammer013-Mar-11 9:46
SledgeHammer013-Mar-11 9:46 
QuestionNagivating from a aspx page to a silverlight page Pin
Vimalsoft(Pty) Ltd3-Mar-11 5:17
professionalVimalsoft(Pty) Ltd3-Mar-11 5:17 
AnswerRe: Nagivating from a aspx page to a silverlight page Pin
Pravin Patil, Mumbai4-Mar-11 0:23
Pravin Patil, Mumbai4-Mar-11 0:23 
GeneralRe: Nagivating from a aspx page to a silverlight page Pin
Vimalsoft(Pty) Ltd4-Mar-11 0:29
professionalVimalsoft(Pty) Ltd4-Mar-11 0:29 
GeneralRe: Nagivating from a aspx page to a silverlight page Pin
Pravin Patil, Mumbai4-Mar-11 0:57
Pravin Patil, Mumbai4-Mar-11 0:57 
GeneralRe: Nagivating from a aspx page to a silverlight page Pin
Vimalsoft(Pty) Ltd4-Mar-11 1:25
professionalVimalsoft(Pty) Ltd4-Mar-11 1:25 
QuestionListView with 50,000 controls Pin
Moonwalker0313-Mar-11 3:43
Moonwalker0313-Mar-11 3:43 
AnswerRe: ListView with 50,000 controls Pin
SledgeHammer013-Mar-11 5:00
SledgeHammer013-Mar-11 5:00 
GeneralRe: ListView with 50,000 controls Pin
Moonwalker0313-Mar-11 6:04
Moonwalker0313-Mar-11 6:04 
GeneralRe: ListView with 50,000 controls Pin
SledgeHammer013-Mar-11 6:31
SledgeHammer013-Mar-11 6:31 
GeneralRe: ListView with 50,000 controls Pin
Moonwalker0313-Mar-11 11:53
Moonwalker0313-Mar-11 11:53 
AnswerRe: ListView with 50,000 controls Pin
_Maxxx_3-Mar-11 15:55
professional_Maxxx_3-Mar-11 15:55 
GeneralRe: ListView with 50,000 controls Pin
Moonwalker0314-Mar-11 2:16
Moonwalker0314-Mar-11 2:16 
GeneralRe: ListView with 50,000 controls Pin
_Maxxx_5-Mar-11 1:03
professional_Maxxx_5-Mar-11 1:03 
GeneralRe: ListView with 50,000 controls Pin
Moonwalker0315-Mar-11 3:14
Moonwalker0315-Mar-11 3: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.