Hallo Sascha (@'Nofear23m'),
So, hab gestern mal wieder etwas Ziet gehabt und die OC wieder wie folgt eingebunden (auskommentiert):
XAML:
Code behind:
Befüllt über:
Bindung:
AsEnumerable, deshalb weil ich später ein Paging einbauen möchte.
Passt das so, oder kann/sollte man das noch optimieren?
Get und Set für die RTBs hab ich noch nichts vorangebracht, aber bin noch dran.
LG,
Pascal
*CodeTags korrigiert* ~NoFear23m
So, hab gestern mal wieder etwas Ziet gehabt und die OC wieder wie folgt eingebunden (auskommentiert):
XAML:
XML-Quellcode
- <DataGridTextColumn Header="Id" Binding="{Binding URID}" Width="Auto"></DataGridTextColumn>
- <DataGridTemplateColumn Header="source_segment" Width="50*">
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <toolkit:RichTextBox
- x:Name="rtb" VerticalScrollBarVisibility="Auto" Text="{Binding SOURCE,
- Mode=TwoWay, UpdateSourceTrigger=LostFocus}">
- <myCustomFormatter:MyFormatter />
- </toolkit:RichTextBox.TextFormatter>-->
- <toolkit:RichTextBox.TextFormatter>
- <toolkit:PlainTextFormatter />
- </toolkit:RichTextBox.TextFormatter>
- </toolkit:RichTextBox>
- </local:RichTextBoxHelper>-->
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- <DataGridTemplateColumn.CellStyle>
- <Style>
- <Setter Property="TextBlock.TextWrapping" Value="Wrap" />
- </Style>
- </DataGridTemplateColumn.CellStyle>
- </DataGridTemplateColumn>
- <DataGridTemplateColumn Header="target_segment" Width="50*">
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <toolkit:RichTextBox
- x:Name="rtb" VerticalScrollBarVisibility="Auto" Text="{Binding TARGET,
- Mode=TwoWay, UpdateSourceTrigger=LostFocus}">
- <toolkit:RichTextBox.TextFormatter>
- <toolkit:PlainTextFormatter />
- </toolkit:RichTextBox.TextFormatter>
- </toolkit:RichTextBox>
- </local:RichTextBoxHelper>-->
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
Code behind:
VB.NET-Quellcode
- Public Class Pair
- #Region "Properties"
- Private id As String
- Private source_segment As String
- Private target_segment As String
- #End Region
- Public Property URID() As String
- Get
- Return id
- End Get
- Set(ByVal value As String)
- id = value
- End Set
- End Property
- Public Property SOURCE() As String
- Get
- Return source_segment
- End Get
- Set(ByVal value As String)
- source_segment = value
- End Set
- End Property
- Public Property TARGET() As String
- Get
- Return target_segment
- End Get
- Set(ByVal value As String)
- target_segment = value
- End Set
- End Property
- End Class
Befüllt über:
Bindung:
AsEnumerable, deshalb weil ich später ein Paging einbauen möchte.
Passt das so, oder kann/sollte man das noch optimieren?
Get und Set für die RTBs hab ich noch nichts vorangebracht, aber bin noch dran.
LG,
Pascal
*CodeTags korrigiert* ~NoFear23m
![:!:](https://www.vb-paradise.de/wcf/images/smilies/attention.png)
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von „Nofear23m“ ()