locked
Draw character RRS feed

  • Question

  • I want to portray the character with the code so that it can be scaled. What functionality should be used to further the character could decrease or increase depending on the size of the user's display? What do I need to provide that the character could be shown from different angles?
    Wednesday, January 7, 2015 9:35 AM

Answers

All replies

  • Hi,

    You could try to use FontSize property in the control class.

    Here is a snippet code you could refer to :

    <Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                 x:Class="Prototype.App"
                 >
        <Application.Resources>
            <Style TargetType="Control" x:Key="DefaultStyle">
                <Setter Property="FontSize" Value="24"/>
            </Style>
        </Application.Resources>
    </Application>

     <Grid x:Name="LayoutRoot" Background="White">
            <StackPanel>
                <TextBlock Text="Hello world" />
                <TextBox Text="Edit me"/>
            </StackPanel>
        </Grid>


    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.




    • Proposed as answer by Jonny_D Monday, January 12, 2015 2:53 AM
    • Unproposed as answer by Jonny_D Monday, January 12, 2015 2:53 AM
    Thursday, January 8, 2015 3:18 AM
  • Excuse Me. I meant drawing the character of the game.
    Saturday, January 10, 2015 10:11 AM
    • Marked as answer by Jonny_D Monday, January 19, 2015 3:02 AM
    Monday, January 12, 2015 3:02 AM