This is a migrated thread and some comments may be shown as answers.

How to use RadConversationView Control without action button?

1 Answer 73 Views
ConversationView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Deepak
Top achievements
Rank 2
Deepak asked on 25 Jun 2013, 07:18 AM
Hi,
   I would like to implement the RadConverstion Control without an action button so that i can use an application bar button to send the messages.Can anyone help me with this? 

Thank you.

1 Answer, 1 is accepted

Sort by
0
Accepted
Victor
Telerik team
answered on 27 Jun 2013, 08:28 AM
Hi Deepak,

You can simply set the TextBoxTemplate property to a data template of your choice. The only requirement is that you set the x:Name property of your text box to PART_TextBox. Then in this template, you can set the ActionButtonVisibility of RadTextBox to Collapsed. Here is the default text box template for your convenience:

<DataTemplate>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="3*"/>
        </Grid.ColumnDefinitions>
         
        <primitives:RadPointerContentControl Grid.Column="1"
                                             TargetPoint="160, 300">
            <primitives:RadPointerContentControl.PointerTemplate>
                <DataTemplate>
                    <Polygon Width="12"
                             Height="24"
                             Points="0,0 12,0 12,12"
                             StrokeThickness="0"
                             RenderTransformOrigin="0.5, 0.5"/>
                </DataTemplate>
            </primitives:RadPointerContentControl.PointerTemplate>
 
            <telerikPrimitives:RadTextBox x:Name="PART_TextBox"
                                          ActionButtonVisibility="Visible">
                <telerikPrimitives:RadTextBox.ActionButtonStyle>
                    <Style TargetType="telerikTextBox:TextBoxActionButton">
                        <Setter Property="ButtonType"
                                Value="Custom"/>
                        <Setter Property="RestStateImageSource"
                                Value="/Telerik.Windows.Controls.Data;component/ConversationView/Images/SendIcon.png"/>
                    </Style>
                </telerikPrimitives:RadTextBox.ActionButtonStyle>
            </telerikPrimitives:RadTextBox>
        </primitives:RadPointerContentControl>
    </Grid>
</DataTemplate>

Regards,
Victor
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
ConversationView
Asked by
Deepak
Top achievements
Rank 2
Answers by
Victor
Telerik team
Share this question
or