Ayohaych
Ayohaych

Reputation: 5189

ListView change text size in Metro Apps

I'm not sure why I'm finding it so difficult to find information on this, but I have no clue how to change the item text size of each item inside a list view. I don't know if I'm googling the right thing but I can't seem to find an answer to this, or really anything in general about styling elements properly.

I tried doing FontSize in the ListView but it changes nothing. Sorry for such a mundane question but I can't find anything about this. Thanks

Upvotes: 1

Views: 960

Answers (1)

Heena
Heena

Reputation: 8654

You need to change listview item style i.e itemcontainerstyle like this

   <ListView>
        <ListView.ItemContainerStyle>
            <Style TargetType="ListViewItem">
                <Setter Property="Foreground" Value="Red"/>
                <Setter Property="FontSize" Value="25"/>
                <Setter Property="FontFamily" Value="Segoe Ui Light"/>
            </Style>
        </ListView.ItemContainerStyle>
    </ListView>

or you can edit listviewitem style template also which is available on Msdn.

Upvotes: 2

Related Questions