We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Tile font size

Thread ID:

Created:

Updated:

Platform:

Replies:

128662 Feb 3,2017 07:52 AM Feb 8,2017 10:47 PM Windows Forms 4
loading
Tags: TileLayout
Tijaž Messec
Asked On February 3, 2017 07:52 AM

Hello,

Is it possible to set tile/imageStreamer 's font size without being set to default when the tile is clicked?


Thanks

Tijaž Messec
Replied On February 3, 2017 08:00 AM

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

Senthil Kumaran Rajan [Syncfusion]
Replied On February 4, 2017 05:34 AM

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 


Tijaž Messec
Replied On February 8, 2017 10:52 AM

Yes, I'm able to maintain font size through MouseUp event. 
Tnx

Senthil Kumaran Rajan [Syncfusion]
Replied On February 8, 2017 10:47 PM

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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;