Click here to Skip to main content
16,012,025 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Card View For the Data Grid Pin
User 27100920-May-08 4:45
User 27100920-May-08 4:45 
QuestionWPF Pin
Michael Sync19-May-08 18:09
Michael Sync19-May-08 18:09 
AnswerRe: WPF Pin
Michael Sync19-May-08 18:18
Michael Sync19-May-08 18:18 
GeneralRe: WPF Pin
Insincere Dave20-May-08 3:40
Insincere Dave20-May-08 3:40 
GeneralRe: WPF Pin
Michael Sync20-May-08 16:19
Michael Sync20-May-08 16:19 
GeneralRe: WPF Pin
Insincere Dave20-May-08 16:36
Insincere Dave20-May-08 16:36 
GeneralRe: WPF Pin
Michael Sync20-May-08 18:20
Michael Sync20-May-08 18:20 
QuestionLoading image in XBAP Pin
sanjutvm19-May-08 0:06
sanjutvm19-May-08 0:06 
Hi All,

I'm using XP SP2, MSVS2008, Firefox verison 2.0 and IE6.
I created a C# WPFBrowserApplication and placed an image control in it with source given as "E:\WPF\WPFBrowserApplication2\images\imag.jpg".
When I run the application I'm getting exception :
XAMLParserException was unhandled: Cannot create instance of 'Page1' defined in assembly 'WpfBrowserApplication2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Exception has been thrown by the target of an invocation. Error in markup file 'Page1.xaml'.

The same exception occurs if do the code behind for image as below:

BitmapImage bmp = new BitmapImage();
bmp.BeginInit();
bmp.UriSource = new Uri("file://E:/WPF/WPFBrowserApplication2/images/img.jpg");

bmp.DecodePixelWidth = 200;
bmp.EndInit();
Image img = new Image();
img.Width = 200;
img.Source = bmp;

I'm getting the exception when bmp.EndInit() is executed.

In windows application, the image is loaded if image control is used.Otherwise there is no exception, but image is not loaded.
(I've written the code in function Page_Loaded/Window_Loaded)

How do I load image in WPFBrowserApplication and WPFApplication without using image control?

Thanks & Regards,
Sanju.
Questionhow can i access textbox(which in silver light application) value in .aspx page? Pin
kishorekumar.malla@live.com18-May-08 23:59
kishorekumar.malla@live.com18-May-08 23:59 
AnswerRe: how can i access textbox(which in silver light application) value in .aspx page? Pin
NithyaR19-May-08 9:48
NithyaR19-May-08 9:48 
GeneralRe: how can i access textbox(which in silver light application) value in .aspx page? Pin
kishorekumar.malla@live.com19-May-08 15:25
kishorekumar.malla@live.com19-May-08 15:25 
GeneralRe: how can i access textbox(which in silver light application) value in .aspx page? Pin
Michael Sync19-May-08 17:46
Michael Sync19-May-08 17:46 
QuestionApp fails on restart problem ? Pin
Christian Graus18-May-08 12:27
protectorChristian Graus18-May-08 12:27 
AnswerRe: App fails on restart problem ? Pin
User 27100925-May-08 8:11
User 27100925-May-08 8:11 
QuestionRe: App fails on restart problem ? Pin
bitbonk13-Aug-08 20:48
bitbonk13-Aug-08 20:48 
AnswerRe: App fails on restart problem ? Pin
aaj2329-Apr-11 9:07
aaj2329-Apr-11 9:07 
Questionhow i create simple silverlight2.0 application Pin
wasimsharp16-May-08 17:24
wasimsharp16-May-08 17:24 
AnswerRe: how i create simple silverlight2.0 application Pin
Michael Sync19-May-08 17:43
Michael Sync19-May-08 17:43 
AnswerRe: how i create simple silverlight2.0 application Pin
Member 97203321-May-08 0:15
Member 97203321-May-08 0:15 
QuestionHow can i create simple silver light2.0 Application Pin
wasimsharp16-May-08 17:20
wasimsharp16-May-08 17:20 
AnswerRe: How can i create simple silver light2.0 Application Pin
Michael Sync19-May-08 17:41
Michael Sync19-May-08 17:41 
QuestionWpf Listview edit Pin
member2715-May-08 23:54
member2715-May-08 23:54 
AnswerRe: Wpf Listview edit Pin
User 27100916-May-08 0:58
User 27100916-May-08 0:58 
GeneralRe: Wpf Listview edit Pin
member2717-May-08 2:03
member2717-May-08 2:03 
AnswerRe: Wpf Listview edit Pin
User 27100916-May-08 1:40
User 27100916-May-08 1:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.