Click here to Skip to main content
15,887,928 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to access the textbox in code behind???


XML
<DataTemplate x:Name="CreateShareTemplate">
    <Grid  Width="130" Height="130">
        <Grid.RowDefinitions>
            <RowDefinition Height="0.8*"/>
            <RowDefinition Height="0.2*"/>
        </Grid.RowDefinitions>

        <!-- Grid for Image and share name-->
        <Grid Grid.Row="0" >
            <Grid.Background>
                <ImageBrush ImageSource="Assets/Createshare.png"/>
            </Grid.Background>
        </Grid>

        <Grid Background="#FF595959" Grid.Row="1">
            <TextBlock Text="{Binding FileShareName}" Style="{StaticResource TextStyleFont16}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
        </Grid>

    </Grid>
</DataTemplate>


[edit]SHOUTING removed - OriginalGriff[/edit]
Posted
Updated 29-Nov-12 23:25pm
v2
Comments
OriginalGriff 30-Nov-12 5:25am    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.
Programm3r 3-Dec-12 8:56am    
Hi - why don't you give the TextBlock an ID and access it with that?

Example: x:Key="stringKeyValue"

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900