예제 #1
0
    /// <summary>
    /// Sets the value from the edit content to the display content and
    /// raises the <see cref="EditableContentProperty{T}.EditCompleted"/> event with the specified event data.
    /// </summary>
    /// <param name="e">The event data.</param>
    protected override void OnEditCompleted(EditableContentEventArgs <string> e)
    {
        DisplayContent.Value.Value = EditContent.Value.Value;

        base.OnEditCompleted(e);
    }
    /// <summary>
    /// Sets the value from the display content to the edit content and
    /// raises the <see cref="EditableContentProperty{T}.EditStarted"/> event with the specified event data.
    /// </summary>
    /// <param name="e">The event data.</param>
    protected override void OnEditStarted(EditableContentEventArgs <T> e)
    {
        EditContent.Value.Value = DisplayContent.Value.Value;

        base.OnEditStarted(e);
    }