Click here to Skip to main content
15,909,445 members
Home / Discussions / WPF
   

WPF

 
QuestionCross-field validation Pin
Geysser24-Nov-11 4:39
Geysser24-Nov-11 4:39 
AnswerRe: Cross-field validation Pin
Pete O'Hanlon24-Nov-11 10:24
mvePete O'Hanlon24-Nov-11 10:24 
GeneralRe: Cross-field validation Pin
Geysser24-Nov-11 17:58
Geysser24-Nov-11 17:58 
GeneralRe: Cross-field validation Pin
Wayne Gaylard24-Nov-11 18:41
professionalWayne Gaylard24-Nov-11 18:41 
GeneralRe: Cross-field validation Pin
Geysser24-Nov-11 20:24
Geysser24-Nov-11 20:24 
GeneralRe: Cross-field validation Pin
Pete O'Hanlon24-Nov-11 22:11
mvePete O'Hanlon24-Nov-11 22:11 
GeneralRe: Cross-field validation Pin
Geysser24-Nov-11 23:33
Geysser24-Nov-11 23:33 
QuestionDataTemplate Binding Question Pin
Kevin Marois23-Nov-11 7:02
professionalKevin Marois23-Nov-11 7:02 
I created ths data template:

<DataTemplate DataType="{x:Type models:PartModel}">
    <StackPanel Orientation="Vertical"
                Margin="0,1,0,1">
        <StackPanel Orientation="Horizontal">
            <Image Source="/Abtech.Spares.UI;component/Media/Graphics/motherboard_enabled_96x96.png"
					Height="16"
					Width="16"
                    Margin="0,0,3,0"/>
            <TextBlock Text="{Binding PartNumber}"></TextBlock>
            <TextBlock Text="-"
                        Margin="3,0,3,0"/>
            <TextBlock Text="{Binding PartDescription}"></TextBlock>
        </StackPanel>
        <StackPanel Orientation="Horizontal">
            <Label x:Name="lblTribal" 
                    Content="Tribal"/>
            <TextBox x:Name="txtTribal" 
                        Text="{Binding Tribal}"
                        Width="100"/>
            <Button x:Name="cmdTribal"
                    Command="{Binding SelectTribalCommand, Mode=TwoWay}"
                    Margin="2,0,0,0">
                <StackPanel Orientation="Horizontal">
                    <Image Source="/Abtech.Spares.UI;component/Media/Graphics/Toolbar/search_16x16.png"
                            Margin="0,0,3,0"/>
                </StackPanel>
            </Button>
        </StackPanel>
    </StackPanel>                
</DataTemplate>


At the bottom, how do I point the SelectTribalCommand to the data context, not the PartModel?
Everything makes sense in someone's mind

AnswerRe: DataTemplate Binding Question Pin
SledgeHammer0123-Nov-11 11:30
SledgeHammer0123-Nov-11 11:30 
Questionsilverlight version Pin
arkiboys23-Nov-11 6:18
arkiboys23-Nov-11 6:18 
AnswerRe: silverlight version Pin
Mark Salsbery23-Nov-11 8:57
Mark Salsbery23-Nov-11 8:57 
QuestionOpenDialog Pin
Dammie223-Nov-11 5:56
Dammie223-Nov-11 5:56 
AnswerRe: OpenDialog Pin
Pete O'Hanlon23-Nov-11 6:01
mvePete O'Hanlon23-Nov-11 6:01 
QuestionRe: OpenDialog Pin
Dammie223-Nov-11 6:11
Dammie223-Nov-11 6:11 
AnswerRe: OpenDialog Pin
Pete O'Hanlon23-Nov-11 9:04
mvePete O'Hanlon23-Nov-11 9:04 
GeneralRe: OpenDialog Pin
Dammie223-Nov-11 23:28
Dammie223-Nov-11 23:28 
GeneralRe: OpenDialog Pin
Pete O'Hanlon23-Nov-11 23:45
mvePete O'Hanlon23-Nov-11 23:45 
GeneralRe: OpenDialog Pin
Pete O'Hanlon23-Nov-11 23:50
mvePete O'Hanlon23-Nov-11 23:50 
GeneralRe: OpenDialog Pin
Dammie224-Nov-11 0:21
Dammie224-Nov-11 0:21 
GeneralRe: OpenDialog Pin
Pete O'Hanlon24-Nov-11 0:33
mvePete O'Hanlon24-Nov-11 0:33 
QuestionView states Pin
Geysser23-Nov-11 4:00
Geysser23-Nov-11 4:00 
AnswerRe: View states Pin
Wayne Gaylard23-Nov-11 4:48
professionalWayne Gaylard23-Nov-11 4:48 
GeneralRe: View states Pin
Geysser23-Nov-11 4:56
Geysser23-Nov-11 4:56 
GeneralRe: View states Pin
Wayne Gaylard23-Nov-11 4:59
professionalWayne Gaylard23-Nov-11 4:59 
QuestionHow to activate the tab in tab control by select the business object Pin
Loveisasea23-Nov-11 1:05
Loveisasea23-Nov-11 1:05 

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.