Click here to Skip to main content
15,887,413 members
Home / Discussions / WPF
   

WPF

 
QuestionThe Webbrowser in WPF can’t display page unless mouse moving on. Pin
CooperWu23-Dec-09 17:18
CooperWu23-Dec-09 17:18 
QuestionWhere do you see Silverlight a few years from now? Pin
Goalie3523-Dec-09 4:52
Goalie3523-Dec-09 4:52 
AnswerRe: Where do you see Silverlight a few years from now? Pin
Ian Shlasko23-Dec-09 5:08
Ian Shlasko23-Dec-09 5:08 
AnswerRe: Where do you see Silverlight a few years from now? Pin
Mark Salsbery23-Dec-09 6:16
Mark Salsbery23-Dec-09 6:16 
AnswerRe: Where do you see Silverlight a few years from now? [modified] Pin
crystal915425-Dec-09 4:47
crystal915425-Dec-09 4:47 
GeneralRe: Where do you see Silverlight a few years from now? Pin
ProtoBytes28-Dec-09 11:09
ProtoBytes28-Dec-09 11:09 
AnswerRe: Where do you see Silverlight a few years from now? Pin
ProtoBytes28-Dec-09 11:24
ProtoBytes28-Dec-09 11:24 
QuestionText mouse selection while list binding.. Pin
koltaviy23-Dec-09 2:28
koltaviy23-Dec-09 2:28 
Hi all.

What we have:
I have a listbox binded to the CollectionViewSource.

What I need:
Allow a user to select any block of text in the listbox to copy it like it was in a richtextbox.


I wonder if I can realize it someway. I don't think it's the best idea to use richtextbox for holding items.

The DataTemplate for listbox ItemTemplate:

<DataTemplate x:Key="ChatMessageTemplate" DataType="{x:Type bl:Message}"><br />
            <Grid Name="gMessages">     <br />
                <Grid.RowDefinitions><br />
                    <RowDefinition Height="14"/><br />
                    <RowDefinition Height="*"/><br />
                </Grid.RowDefinitions>                <br />
                <TextBlock Name="tbHeader" Margin="4,2,0,0" Grid.Row="0" FontFamily="Segoe UI" FontSize="10"  Foreground="Black" FontWeight="Bold" TextAlignment="Left" VerticalAlignment="Top" HorizontalAlignment="Left"><br />
                    <TextBlock.Text><br />
                        <MultiBinding StringFormat="{}{0} ({1})"><br />
                            <Binding Path="Author.Name" /><br />
                            <Binding Path="CreationDate" />                                <br />
                        </MultiBinding><br />
                    </TextBlock.Text>   <br />
                </TextBlock>                <br />
                <!--{Binding ElementName=gMessages, Path=ActualWidth}--><br />
                <!--HorizontalAlignment="Left" TextAlignment="Left"-->                <br />
                <TextBlock Width="300" Name="tbText" Grid.Row="1" Margin="4,0,0,0" FontFamily="Segoe UI" Text="{Binding Path=Text, Mode=OneWay}" FontSize="10" Foreground="Black" TextWrapping="Wrap" HorizontalAlignment="Stretch"/><br />
            </Grid><br />
<br />
            <DataTemplate.Triggers><br />
                <DataTrigger Binding="{Binding Path=Author.ID, Converter={StaticResource isCurrentUserConverter}}" Value="false"><br />
                    <Setter TargetName="tbHeader" Property="Foreground" Value="Blue" /><br />
                </DataTrigger><br />
            </DataTemplate.Triggers><br />
        </DataTemplate>

AnswerRe: Text mouse selection while list binding.. Pin
ProtoBytes29-Dec-09 11:30
ProtoBytes29-Dec-09 11:30 
GeneralRe: Text mouse selection while list binding.. Pin
koltaviy29-Dec-09 17:34
koltaviy29-Dec-09 17:34 
QuestionWPF: Starting Tutorials Pin
Abbas_here22-Dec-09 20:56
Abbas_here22-Dec-09 20:56 
AnswerRe: WPF: Starting Tutorials Pin
Mark Salsbery23-Dec-09 7:15
Mark Salsbery23-Dec-09 7:15 
GeneralRe: WPF: Starting Tutorials Pin
Abbas_here23-Dec-09 18:28
Abbas_here23-Dec-09 18:28 
QuestionLoad dll client side Pin
Adriaan Davel22-Dec-09 20:37
Adriaan Davel22-Dec-09 20:37 
AnswerRe: Load dll client side Pin
Mark Salsbery24-Dec-09 7:57
Mark Salsbery24-Dec-09 7:57 
GeneralRe: Load dll client side Pin
Adriaan Davel3-Jan-10 19:41
Adriaan Davel3-Jan-10 19:41 
GeneralRe: Load dll client side Pin
Mark Salsbery3-Jan-10 19:56
Mark Salsbery3-Jan-10 19:56 
GeneralRe: Load dll client side Pin
Adriaan Davel3-Jan-10 20:33
Adriaan Davel3-Jan-10 20:33 
GeneralRe: Load dll client side Pin
Mark Salsbery3-Jan-10 20:44
Mark Salsbery3-Jan-10 20:44 
GeneralRe: Load dll client side Pin
Adriaan Davel4-Jan-10 2:44
Adriaan Davel4-Jan-10 2:44 
AnswerRe: Load dll client side Pin
Mark Salsbery24-Dec-09 8:39
Mark Salsbery24-Dec-09 8:39 
AnswerRe: Load dll client side Pin
Adriaan Davel3-Jan-10 22:05
Adriaan Davel3-Jan-10 22:05 
Question[WPF] XamlParseException ----&gt; The calling thread must be STA Pin
pbalaga22-Dec-09 11:00
pbalaga22-Dec-09 11:00 
QuestionRe: [WPF] XamlParseException ----&gt; The calling thread must be STA Pin
Mark Salsbery23-Dec-09 7:06
Mark Salsbery23-Dec-09 7:06 
AnswerRe: [WPF] XamlParseException ----&gt; The calling thread must be STA Pin
pbalaga25-Dec-09 3:56
pbalaga25-Dec-09 3:56 

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.