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

WPF

 
GeneralRe: Using a Grid as an ItemsPanel Pin
Ed.Poore17-Apr-08 12:07
Ed.Poore17-Apr-08 12:07 
GeneralRe: Using a Grid as an ItemsPanel Pin
Pete O'Hanlon17-Apr-08 23:12
mvePete O'Hanlon17-Apr-08 23:12 
GeneralRe: Using a Grid as an ItemsPanel Pin
Ed.Poore17-Apr-08 23:20
Ed.Poore17-Apr-08 23:20 
GeneralRe: Using a Grid as an ItemsPanel Pin
Pete O'Hanlon18-Apr-08 4:21
mvePete O'Hanlon18-Apr-08 4:21 
GeneralRe: Using a Grid as an ItemsPanel Pin
Ed.Poore18-Apr-08 4:29
Ed.Poore18-Apr-08 4:29 
QuestionHow to add multiple column in a single column of gridview in WPF? Pin
bankey10108-Apr-08 21:42
bankey10108-Apr-08 21:42 
AnswerRe: How to add multiple column in a single column of gridview in WPF? Pin
Pete O'Hanlon9-Apr-08 2:44
mvePete O'Hanlon9-Apr-08 2:44 
GeneralRe: How to add multiple column in a single column of gridview in WPF? Pin
User 2710099-Apr-08 3:24
User 2710099-Apr-08 3:24 
Here are two other ways you can do this.

1. Use a MultiValue Converter that concatenates the two strings and places the output in one TextBlock. I demonstrate this techniques in my article: http://www.codeproject.com/KB/WPF/WPFBusinessAppsPartThree.aspx[^]. This article also has the required value converter code and xaml usage.

Look at the below xaml. See how the MultiBinding Converter syntax works, it takes muliple string values and binding them to one property. MultiBinding converters are a great WPF feature.

<Core_WPF:FormNotification WatermarkMessage="New Record" 
    Height="28" Panel.ZIndex="99" AutoCollapseTimeout="2">
    <Core_WPF:FormNotification.ErrorMessage>
        <MultiBinding Converter="{StaticResource formNotificationErrorMessageConverter}">
            <Binding Path="Error" />
            <Binding Path="ValidationExceptionErrors" ElementName="ucPartThree" />
        </MultiBinding>
    </Core_WPF:FormNotification.ErrorMessage>
</Core_WPF:FormNotification>


2. In addition to Pete's code of placing the two TextBlocks inside another TextBlock, you could also use a StackPanel as a container for the two TextBlocks.

Cheers, Karl

» CodeProject 2008 MVP
» Microsoft MVP - Client App Dev

My Blog | Mole's Home Page | MVP Profile

Just a grain of sand on the worlds beaches.



modified 27-Feb-21 21:01pm.

GeneralRe: How to add multiple column in a single column of gridview in WPF? Pin
Pete O'Hanlon9-Apr-08 3:31
mvePete O'Hanlon9-Apr-08 3:31 
GeneralRe: How to add multiple column in a single column of gridview in WPF? Pin
User 2710099-Apr-08 3:39
User 2710099-Apr-08 3:39 
QuestionFlipping Image? [modified] Pin
KBou8-Apr-08 1:41
KBou8-Apr-08 1:41 
GeneralRe: Flipping Image? Pin
Pete O'Hanlon8-Apr-08 1:48
mvePete O'Hanlon8-Apr-08 1:48 
GeneralRe: Flipping Image? Pin
KBou8-Apr-08 2:03
KBou8-Apr-08 2:03 
GeneralRe: Flipping Image? Pin
Pete O'Hanlon8-Apr-08 2:31
mvePete O'Hanlon8-Apr-08 2:31 
GeneralRe: Flipping Image? Pin
User 2710098-Apr-08 3:21
User 2710098-Apr-08 3:21 
GeneralRe: Flipping Image? Pin
Ed.Poore10-Apr-08 10:26
Ed.Poore10-Apr-08 10:26 
GeneralRe: Flipping Image? Pin
User 27100910-Apr-08 10:31
User 27100910-Apr-08 10:31 
GeneralRe: Flipping Image? Pin
Ed.Poore10-Apr-08 10:35
Ed.Poore10-Apr-08 10:35 
GeneralRe: Flipping Image? Pin
User 27100910-Apr-08 10:38
User 27100910-Apr-08 10:38 
GeneralRe: Flipping Image? Pin
Ed.Poore10-Apr-08 10:46
Ed.Poore10-Apr-08 10:46 
GeneralRe: Flipping Image? Pin
Pete O'Hanlon10-Apr-08 22:09
mvePete O'Hanlon10-Apr-08 22:09 
GeneralRe: Flipping Image? Pin
Ed.Poore10-Apr-08 23:20
Ed.Poore10-Apr-08 23:20 
GeneralRe: Flipping Image? Pin
Pete O'Hanlon10-Apr-08 23:33
mvePete O'Hanlon10-Apr-08 23:33 
GeneralRe: Flipping Image? Pin
Ed.Poore11-Apr-08 2:19
Ed.Poore11-Apr-08 2:19 
GeneralRe: Flipping Image? Pin
Pete O'Hanlon11-Apr-08 2:32
mvePete O'Hanlon11-Apr-08 2:32 

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.