public string TextValue
{
get { return text; }
set { text = value; RaisePropertyChanged("TextValue"); }
} |
orderCollection.Add(new Model(1001, "Maria Anders", "Germany", "ALFKI", "Berlin",string.Empty));
orderCollection.Add(new Model(1002, "Ana Trujilo", "Mexico", "ANATR", "México D.F.", string.Empty));
orderCollection.Add(new Model(1003, "Antonio Moreno", "Mexico", "ANTON", "México D.F.", string.Empty));
orderCollection.Add(new Model(1004, "Thomas Hardy", "UK", "AROUT", "London", string.Empty));
orderCollection.Add(new Model(1005, "Christina Berglund", "Sweden", "BERGS", "Luleå", string.Empty));
orderCollection.Add(new Model(1006, "Hanna Moos", "Germany", "BLAUS", "Mannheim",string.Empty)); |
<syncfusion:GridTemplateColumn HeaderText="DUMMY" MappingName="DUMMY">
<syncfusion:GridTemplateColumn.CellTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Button Grid.Column="0"/>
<TextBox Grid.Column="1" Text="{Binding TextValue,Mode=TwoWay}"/>
<Button Grid.Column="2"/>
</Grid>
</DataTemplate>
</syncfusion:GridTemplateColumn.CellTemplate>
</syncfusion:GridTemplateColumn> |
protected override void ProcessPointerPressed(MouseButtonEventArgs args, RowColumnIndex rowColumnIndex)
{
var column = this.DataGrid.Columns[rowColumnIndex.ColumnIndex] is GridTemplateColumn;
if (!args.ChangedButton.ToString().Equals("Right") && !column)
{
MousePressed = true;
}
base.ProcessPointerPressed(args, rowColumnIndex);
}
protected override void ProcessPointerMoved(MouseEventArgs args, RowColumnIndex rowColumnIndex)
{
MousePressed = args.LeftButton == MouseButtonState.Pressed && MousePressed;
} |
protected override void ProcessPointerPressed(MouseButtonEventArgs args, RowColumnIndex rowColumnIndex) { var column = this.DataGrid.Columns[rowColumnIndex.ColumnIndex] is GridTemplateColumn; if (!args.ChangedButton.ToString().Equals("Right") && !column) { MousePressed = true; } base.ProcessPointerPressed(args, rowColumnIndex); } protected override void ProcessPointerMoved(MouseEventArgs args, RowColumnIndex rowColumnIndex) { MousePressed = args.LeftButton == MouseButtonState.Pressed && MousePressed; } |
protected override void ProcessPointerPressed(MouseButtonEventArgs args, RowColumnIndex rowColumnIndex)
{
var typeName = args.OriginalSource.GetType().FullName;
if (!args.ChangedButton.ToString().Equals("Right") && typeName != "System.Windows.Controls.TextBoxView")
{
MousePressed = true;
}
base.ProcessPointerPressed(args, rowColumnIndex);
} |