猿问

wpf DataGrid中怎么获取DataTemplate里的控件。。

<my:DataGridTemplateColumn  Header="特价日">
                                        <my:DataGridTemplateColumn.CellTemplate>
                                            <DataTemplate>
                                                <ComboBox Name="cbName" SelectedIndex="0" ItemsSource="{Binding}">
                                                </ComboBox>
                                            </DataTemplate>
                                        </my:DataGridTemplateColumn.CellTemplate>
                                    </my:DataGridTemplateColumn> 

获取COMBOX这个控件


交互式爱情
浏览 2195回答 2
2回答

LEATH

(控件类型)DataGrid。FinContrl(“控件名称”)

拉莫斯之舞

你敢不敢换个行呀
随时随地看视频慕课网APP
我要回答