none
Setear propiedades desde archivo .resw RRS feed

  • Pregunta

  • Hola

    Estoy tratando de setear la propiedad Text  de varios TextBlock desde un archivo de recurso pero no esta funcionando ...Que estoy  haciendo mal??

     <Grid Margin="17,0,0,137">
                 <Grid Height="102" Margin="47,470,0,7" VerticalAlignment="Top" HorizontalAlignment="Left" Width="373">
                        <TextBlock  x:Uid="Void" Margin="0,32,0,45" TextWrapping="Wrap" Text="Void" FontFamily="Segoe UI" FontSize="18.667" Foreground="#FF969696" HorizontalAlignment="Left" Width="57" d:LayoutOverrides="Height, TopPosition, BottomPosition"/>
                        <TextBlock TextWrapping="Wrap" Text="$12.00" VerticalAlignment="Top" FontFamily="Segoe UI" FontSize="24" Foreground="#FF787878" Height="37" SelectionHighlightColor="{x:Null}" HorizontalAlignment="Left"/>
                        <TextBlock x:Uid="Comps" Margin="149,32,0,45" TextWrapping="Wrap" Text="Comps" FontFamily="Segoe UI" FontSize="18.667" Foreground="#FF969696" d:LayoutOverrides="Height, LeftPosition, RightPosition, TopPosition, BottomPosition" HorizontalAlignment="Left"/>
                        <TextBlock Margin="149,0,0,0" TextWrapping="Wrap" Text="$15.00" VerticalAlignment="Top" FontFamily="Segoe UI" FontSize="24" Foreground="#FF787878" Height="37" SelectionHighlightColor="{x:Null}" d:LayoutOverrides="Width, LeftPosition, RightPosition" HorizontalAlignment="Left"/>
                        <TextBlock x:Uid="Refundos"  Margin="294,32,0,45" TextWrapping="Wrap" Text="Refundos" FontFamily="Segoe UI" FontSize="18.667" Foreground="#FF969696" d:LayoutOverrides="Height, TopPosition, BottomPosition" HorizontalAlignment="Left" Width="107"/>
                        <TextBlock Margin="294,0,0,0" TextWrapping="Wrap" Text="$27.00" VerticalAlignment="Top" FontFamily="Segoe UI" FontSize="24" Foreground="#FF787878" Height="37" SelectionHighlightColor="{x:Null}" HorizontalAlignment="Left"/>
                        <Path Data="M65,532 L452,532" Height="2" Margin="0,0,0,38" Stretch="Fill" Stroke="Gray" StrokeThickness="2" UseLayoutRounding="False" VerticalAlignment="Bottom" d:LayoutOverrides="LeftPosition, RightPosition" HorizontalAlignment="Left"/>
                        <TextBlock TextWrapping="Wrap" Text="$12.00" VerticalAlignment="Bottom" FontFamily="Segoe UI" FontSize="24" Foreground="#FF787878" Height="37" SelectionHighlightColor="{x:Null}" HorizontalAlignment="Left" FontWeight="Bold"/>
                        <TextBlock Margin="149,0,0,0" TextWrapping="Wrap" Text="$15.00" VerticalAlignment="Bottom" FontFamily="Segoe UI" FontSize="24" Foreground="#FF787878" Height="37" SelectionHighlightColor="{x:Null}" FontWeight="Bold" d:LayoutOverrides="Width, LeftPosition, RightPosition" HorizontalAlignment="Left"/>
                        <TextBlock Margin="294,0,0,0" TextWrapping="Wrap" Text="$27.00" VerticalAlignment="Bottom" FontFamily="Segoe UI" FontSize="24" Foreground="#FF787878" Height="37" SelectionHighlightColor="{x:Null}" FontWeight="Bold" HorizontalAlignment="Left"/>
                    </Grid>
        </Grid>

    el archivo de recurso agregue una linea asi por ejemplo

    Void.Text   anulado


    EFRAIN MEJIAS C VALENCIA - VENEZUELA

    viernes, 14 de octubre de 2016 16:35