Tile font size
Hello,
Is it possible to set tile/imageStreamer 's font size without being set to default when the tile is clicked?
Thanks
SIGN IN To post a reply.
4 Replies
Hello,Is it possible to set tile/imageStreamer 's font size without being set to default when the tile is clicked?Thanks
Properties MainText and SubText of imageStreamer
SK
Senthil Kumaran Rajan
Syncfusion Team
February 4, 2017 10:34 AM UTC
Hi Tijaž,
Thanks for contacting Syncfusion Support.
In ImageStreamer control, we can maintain the font of the MainText and SubText by handling the MouseUp event. Please make use of the below code example.
Code Example[C#]:
|
//To change Font for MainText and SubText.
foreach (LayoutGroup group in this.tileLayout1.Groups)
{
foreach (ImageStreamer img in group.Items)
{
img.Refresh();
img.MainText.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
img.SubText.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
}
}
//To set the Font for MainText and SubText when ImageStreamer is clicked.
void img_MouseUp(object sender, MouseEventArgs e)
{
if (sender is ImageStreamer)
{
(sender as ImageStreamer).SubText.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
(sender as ImageStreamer).MainText.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
}
}
|
We have prepared the sample for your reference and this can be downloaded from the below location.
Could you check with the above solution and let us know whether it is helpful? If not please share some additional details about the reported requirment. It will be help for us to analyze and provide you a prompt solution at the earliest.
Regards,
Senthil
TM
Tijaž Messec
February 8, 2017 03:52 PM UTC
Yes, I'm able to maintain font size through MouseUp event.
Tnx
SK
Senthil Kumaran Rajan
Syncfusion Team
February 9, 2017 03:47 AM UTC
Hi Tijaž,
Thank you for your update.
We are glad to know that, your requirement has been achieved. Please let us know if you need any further assistance, we will be happy to assist you.
Regards,
Senthil
SIGN IN To post a reply.
- 4 Replies
- 2 Participants
-
TM Tijaž Messec
- Feb 3, 2017 12:52 PM UTC
- Feb 9, 2017 03:47 AM UTC