Click here to Skip to main content
15,885,216 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: any suggestions on how to deploy this MVVM model in Silverlight 4? Pin
RichardGrimmer10-Jun-11 4:55
RichardGrimmer10-Jun-11 4:55 
QuestionNewbie (but sort of advanced) Dependency Injection questions... Pin
SledgeHammer013-Jun-11 19:06
SledgeHammer013-Jun-11 19:06 
AnswerRe: Newbie (but sort of advanced) Dependency Injection questions... Pin
Abhinav S6-Jun-11 2:36
Abhinav S6-Jun-11 2:36 
GeneralRe: Newbie (but sort of advanced) Dependency Injection questions... Pin
SledgeHammer016-Jun-11 6:58
SledgeHammer016-Jun-11 6:58 
AnswerRe: Newbie (but sort of advanced) Dependency Injection questions... Pin
James McConville6-Jun-11 3:39
James McConville6-Jun-11 3:39 
GeneralRe: Newbie (but sort of advanced) Dependency Injection questions... Pin
SledgeHammer016-Jun-11 6:53
SledgeHammer016-Jun-11 6:53 
GeneralRe: Newbie (but sort of advanced) Dependency Injection questions... Pin
James McConville6-Jun-11 22:21
James McConville6-Jun-11 22:21 
QuestionNeed to register click event for a Checkbox in side WPF Datagrid using MVVM Pin
Yogesh Jamkhindikar3-Jun-11 15:11
Yogesh Jamkhindikar3-Jun-11 15:11 
i hava a Datagrid with Checkbox as one of the columns in it. Need to trap the click event & accordingly enable/disable buttons on my WPF Page (xaml).am using MVVM architecture.

Following is the code:
<DataGrid AutoGenerateColumns="False" CanUserAddRows="False" 
                                  Name="grdRequestTemplate" VerticalAlignment="Top" Width="Auto"
                                  ItemsSource="{Binding FetchTemplateList}" 
                                  SelectedItem="{Binding Path=FetchTemplateElement}" RowDetailsVisibilityMode="VisibleWhenSelected"
                                  ColumnHeaderStyle="{StaticResource columnHeaderStyle}" RowStyle="{StaticResource rowStyle}"
                                  CellStyle="{StaticResource cellStyle}" GridLinesVisibility="None"
                                  RowHeaderStyle="{StaticResource rowHeaderStyle}" IsReadOnly="False" >
                            <DataGrid.Columns>
                                <DataGridTextColumn Header="TemplateID" HeaderStyle="{StaticResource WrappedColumnHeaderStyle}" 
                                                    Visibility="Hidden" Binding="{Binding TemplateID}" MinWidth="50" />
                                <DataGridTextColumn Header="TemplateUserMappingId"  Visibility="Hidden" Binding="{Binding TemplateUserMappingId}" MinWidth="50" />
                                <DataGridCheckBoxColumn Header="#" Binding="{Binding Check}" />
                                <DataGridTemplateColumn Header="#2">
                                    <DataGridTemplateColumn.CellTemplate>
                                        <DataTemplate>
                                            <CheckBox IsChecked="{Binding Path=ChkBoxClickCommand}" Checked="CheckBox_Checked" Click="CheckBox_Click" HorizontalAlignment="Center" VerticalAlignment="Center">                                                
                                            </CheckBox>
                                        </DataTemplate>
                                    </DataGridTemplateColumn.CellTemplate>
                                </DataGridTemplateColumn>
                                <DataGridTextColumn Header="User ID" HeaderStyle="{StaticResource WrappedColumnHeaderStyle}" 
                                                    Binding="{Binding UserLabelId}" MinWidth="150" IsReadOnly="True" />
                                <DataGridTextColumn Header="Template Name" HeaderStyle="{StaticResource WrappedColumnHeaderStyle}" 
                                                    Binding="{Binding Name}" Width="*"  IsReadOnly="True" />
                                <DataGridTextColumn Header="Application" HeaderStyle="{StaticResource WrappedColumnHeaderStyle}" 
                                                    Binding="{Binding TypeLabel}" MinWidth="100"  IsReadOnly="True" />
                                <DataGridTextColumn Header="Date Requested" HeaderStyle="{StaticResource WrappedColumnHeaderStyle}" 
                                                    Binding="{Binding RequestedOnDate}"  IsReadOnly="True">
                                </DataGridTextColumn>
                            </DataGrid.Columns>
                        </DataGrid>


i want to register the click event in the ViewModel.cs but how do i call the same from my xaml.cs page? what code do i need to write?

Appreciate an early response.
With Warm Regards,

Yogesh Jamkhindikar

AnswerRe: Need to register click event for a Checkbox in side WPF Datagrid using MVVM Pin
Mycroft Holmes3-Jun-11 16:46
professionalMycroft Holmes3-Jun-11 16:46 
QuestionAttempted to read or write protected memory. This is often an indication that other memory is corrupt. Pin
Vimalsoft(Pty) Ltd3-Jun-11 0:03
professionalVimalsoft(Pty) Ltd3-Jun-11 0:03 
QuestionIs it possible to databind from a window.resources section? Pin
SledgeHammer012-Jun-11 6:37
SledgeHammer012-Jun-11 6:37 
AnswerRe: Is it possible to databind from a window.resources section? Pin
Ian Shlasko2-Jun-11 7:23
Ian Shlasko2-Jun-11 7:23 
GeneralRe: Is it possible to databind from a window.resources section? Pin
SledgeHammer012-Jun-11 7:34
SledgeHammer012-Jun-11 7:34 
QuestionSilverlight identification from server side Pin
bhavnvyas1-Jun-11 23:56
bhavnvyas1-Jun-11 23:56 
AnswerRe: Silverlight identification from server side Pin
Pete O'Hanlon2-Jun-11 0:57
mvePete O'Hanlon2-Jun-11 0:57 
AnswerRe: Silverlight identification from server side Pin
Abhinav S3-Jun-11 18:33
Abhinav S3-Jun-11 18:33 
QuestionHow to get new coordinates after a Rotation Pin
Suresh Suthar31-May-11 20:09
professionalSuresh Suthar31-May-11 20:09 
AnswerRe: How to get new coordinates after a Rotation Pin
_Maxxx_31-May-11 23:45
professional_Maxxx_31-May-11 23:45 
QuestionNeed Silverlight 3d chart Pin
Mikhael Ray Burton31-May-11 12:44
Mikhael Ray Burton31-May-11 12:44 
AnswerRe: Need Silverlight 3d chart Pin
BobJanova31-May-11 23:29
BobJanova31-May-11 23:29 
GeneralRe: Need Silverlight 3d chart Pin
Mikhael Ray Burton1-Jun-11 7:24
Mikhael Ray Burton1-Jun-11 7:24 
GeneralRe: Need Silverlight 3d chart Pin
BobJanova1-Jun-11 12:09
BobJanova1-Jun-11 12:09 
GeneralRe: Need Silverlight 3d chart Pin
BobJanova2-Jun-11 8:00
BobJanova2-Jun-11 8:00 
QuestionIEditableObject and WCF Pin
Mycroft Holmes30-May-11 17:32
professionalMycroft Holmes30-May-11 17:32 
AnswerRe: IEditableObject and WCF Pin
Pete O'Hanlon30-May-11 23:25
mvePete O'Hanlon30-May-11 23:25 

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.