hi,
I have a silverlight slideshow type application ,having number of slides to display text. Each slides may have a number of TextBlock . We have requirement of Creating each TextBlock at runtime add in different panels.For each TextBlock we are assigning the value of TextBlock.Fontsource = new Fontsource(stream) .This 'stream' data is of ARIALUNI.TTF(22 MB) font which is downloaded by application in system local cache ,we read its content and assign it to TextBlock. After some slides ,it gives this exception
'System.OutOfMemoryException' at System.Windows.Documents.FontSource.SetTextFontSourceFromStream(DependencyObject obj) at System.Windows.Controls.TextBox.UpdateFontSource(FontSource fontSource) at System.Windows.Controls.TextBox.set_FontSource(FontSource value) at TestSlideControl.ShowData()
Thanks in Advance, DNM