|
I have code that leaves garbage on the window. need to rePaint .
couldnt find an invalidate that I knew how to use.
I probably clean up nice.
|
|
|
|
|
You don't. WPF manages all that. If you are leaving garbage on the screen, you are doing something wrong. Please explain what you are doing.
|
|
|
|
|
I was using standard message boxes in nested foreach loops to see if I was iterating
through the Directory properly , using DirectoryInfo. and when the loops were finished. it left the last message box image over the window.
I probably clean up nice.
|
|
|
|
|
However I noticed (by accident) that If I turned off the IDE while the test app was running,
then it wasnt a problem , but it still brought up the question and so I appreaciate you're
answer.
I probably clean up nice.
|
|
|
|
|
Hello!
This is a new article on Silverlight Prism development (tips and real practical examples). Enjoy reading. http://www.enterra-inc.com/techzone/silverlight-prism-overview-part-1-theory/
|
|
|
|
|
If you want to post an article here, fine. But do NOT post a link to an article on another web site.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
This is my code.
Image imgMessage = new Image();
BitmapImage bi = new BitmapImage();
bi.BeginInit();
bi.UriSource = new Uri(@"/imgMessage.png", UriKind.RelativeOrAbsolute);
bi.EndInit();
imgMessage.Source = bi;
TextBlock tb = new TextBlock();
InlineUIContainer iuc = new InlineUIContainer(imgMessage);
tb.Inlines.Add(iuc);
Grid1.Children.Add(tb);
Image shows a TextBlock within the code.
But, isn`t work!
However, when I write XAML code .. It work!
<Grid Height="312" Width="505" Name="Grid1">
<TextBlock Height="58" HorizontalAlignment="Left" Margin="88,120,0,0" Name="textBlock1" Text="TextBlock" VerticalAlignment="Top" Width="314">
<InlineUIContainer>
<Image Source="Reply.png"></Image>
</InlineUIContainer>
</TextBlock>
</Grid>
What's wrong?
modified on Wednesday, December 1, 2010 5:08 AM
|
|
|
|
|
Hi,
Given the recent "turbulence" in the "reality distortion field" of Microsoft in the WPF/Silverlight arena triggered by Muglia at PDF, then moderated by ScottGu's blog, and others ... and the presence of (new oil in old lamps ?) the emerging paradigm of :
resurrected JavaScript (thanks to jQuery and other libraries)
+
HTML 5
-
Flash
=
RIA uber alles browsers
... and in the context of the Apple-Adobe-Flash contretemps ... all obscured by clouds of marketing rhetoric regarding next year's tablets, and Android this vs. WP7 this, vs. Palm this vs. Cocoa that ... in the mobile space ...
We'd love to see on CP a round-robin between some of you real SL/WPF gurus (you know who you are) about the future of WPF/SilverLight in the next two years.
Thought about posting this on the "Site Bugs / Suggestions" forum, but feel it would be out of place there.
Personal bias: to the extent you've got to load-up, and master, some complex 3rd. party structural engine (framework) to give you a fundamentally sound application architecture (MVC, MVVM, or whatever) ... or handle complex binding, or injection of control, etc. ... there's a fundamental deficit in the basic technology.
Personal bias: the new initiatives ... for ASP.NET ... announced by MS such as the Razor view engine:
http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx
Are "late to the game" overlays that (in addition to "reaching out" to PhP developers?) ... for right now ... make sorting out the implications for the future of WPF and SilverLight more difficult ... at least for this old guy
from the ... genuinely curious ... Bill
"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844
-- Modified Monday, November 29, 2010 4:54 AM
|
|
|
|
|
My ill-informed view is Silverlight has legs as a LOB solution. Why?
Although there are some great rich UI web interfaces out there, they are few and far between. Most ASP/PHP/... web form sites are weak compared to Winforms.
Silverlight offers a rich UI experience with the zero deployment strategies of web based technologies. For me that makes Silverlight a winner.
HTML5 sounds good but I bet you'll see the same cross browser issues we all struggle with today.
|
|
|
|
|
Perhaps you might want to view the Firestarter event. Clickety[^].
|
|
|
|
|
Thanks, Pete, I have signed up for the FireStarter Event.
I have also acquired Matthew McDonald's (one of my favorite technical writers) latest book 'Pro WPF in C# 2010: Windows Presentation Foundation in .NET 4.0,' and intend to review Andrew Troelsen's content on WPF in 'Pro C# 2010 and the .NET 4 Platform, Fifth Edition,' and hope to "clear the decks," and bone-up to get the most out of the FireStarter Event ... whatever that will be.
What the technical book/resource for SilverLight ... comparable to McDonald's latest for WPF ... would be, I don't know, but am all "all ears" for any recommendations.
I must admit I am fascinated by what appears to me to be the "triumph" of jQuery, and its adaptation by everyone under the sun including Planet MS.
best, Bill
"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844
|
|
|
|
|
BillWoodruff wrote: What the technical book/resource for SilverLight ... comparable to McDonald's latest for WPF ... would be, I don't know, but am all "all ears" for any recommendations.
Well, I could recommend my good friend Laurent Bugnion's book, Silverlight Unleased. It's actually 2 books because you get the PDF of Silverlight 2 Unleashed to go with the Silverlight 4 tome.
I have to admit to a bias here. As a member of the WPF Disciples (which also includes Silverlight), I have a vested interest in these technologies working. As part of my take on this, I would have to point out that the tooling/technologies for HTML 5 as a ratified standard don't exist yet. Yes, there are lots of interesting implementations out there, but HTML 5 is not a stable standard, and I suspect that we are going to see a repeat of the browser wars where different vendors introduce proprietary features to differentiate their implementations.
Yes, I'm excited by some of the features of HTML 5. The Canvas alone is a huge leap forward, but while jquery provides an excellent front end for javascript, it still requires significantly more effort to develop complex apps using HTML/CSS/JavaScript than it does with something like Silverlight. More importantly, HTML 5 is not really designed to run on a desktop environment. Imagine trying to write an application such as 3D Studio Max in HTML 5 - it's just not feasible.
|
|
|
|
|
I have 3 drawn Rectangle at some Grid. In runTime i need to know what Rectangle is in Grid.Row number 3.
How can i get access to ( Grid.Row == 3 ) ?
Thanks.
|
|
|
|
|
See here[^]. This article is basically for WPF, but a similar strategy can be used for Silverlight.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
modified on Sunday, November 28, 2010 11:23 PM
|
|
|
|
|
Link is broken. Just add an 'x' at the end of that link. BTW great link!
|
|
|
|
|
Tarun.K.S wrote: Link is broken
Fixed. Thanks for pointing that out.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
Hi,
I have been given an existing silverlight project to work on...
One of the .xaml pages is a DataForm which has the following .xaml
Can you see how I can solve the problem please?
Thanks
The problem is that when I run it, the error is:
The type or namespace name 'DataForm' could not be found (are you missing a using directive or an assembly reference?)
This is the .xaml
<UserControl xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
x:Class="DataControls.DataFormTest"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Loaded="Page_Loaded">
<Grid x:Name="LayoutRoot" Background="White">
<toolkit:DataForm x:Name="formProductDetails">
</toolkit:DataForm>
</Grid>
</UserControl>
|
|
|
|
|
In Solution Explorer, expand the references node on the project this file is in. You'll see that certain references are marked as not being valid (they have a yellow icon on them). This tells you that the project cannot find the references specified. My suspicion here is that this is a Silverlight 3 project and you don't have the Silverlight Toolkit installed.
|
|
|
|
|
Hi,
I have now added the silverlight 4 toolkit.
Added two dlls into t he references:
1- System.Windows.controls.data.dll
2- System.Windows.controls.data.toolkit.dll
The error when compiling is:
The type or namespace name 'DataForm' could not be found (are you missing a using directive or an assembly reference?)
Any thought splease?
Thanks
|
|
|
|
|
|
OK - I don't know why anybody would 1 vote that. Have a 5 to balance it out, and well done you.
|
|
|
|
|
I'm guess it's because they solved the problem but didn't share it with the community. It can be frustrating when you read a thread which describes the exact problem you are having only to read the last post, "Problem solved"
|
|
|
|
|
I'm have another problem which i can not solve alone, concerning printing pages in Silverligh 4.
I saw some articles about printing, i tried as described and so far is ok.
I try to describe the scenario:
i have 2 classes "PageToPrint.xaml" and "PrintingControl.cs". First contain elements to print while the second is a C# calss is holding code to print the document. I pass to PrintingControl.cs the main grid, "LayoutRoot" of PageToPrint.xaml.
In "printingControl.cs" i'm doing this : args.PageVisual = LayoutRoot; . but in this way the content of the printed document isn't centered but in left-top corner. So i want to customize a bit my document, centring it and setting some margin. Then i tried to create a Border control, in wich i try to add the "LayouRoot" as follow : borderControl.Child = LayoutRoot;
But i'm getting an exception because the "LayoutRoot" already has a Parent property, and i'm unable to add the layoutroot in border(in order to have a custom print)
How can i solve this issue??
thanks a lot
|
|
|
|
|
Hi
I'm not good in english, so i think i have some problem to explain my issue, and you to understand what i write.
i created a silverlight 4 application, and now i want to install it on window server 2003. Which steps should i follow???Is there some Article describing the procedure??
In thi case, i think, the propper word is "deploy" the application not "install", right??
thanks
bye
|
|
|
|
|
Hi,
If it is simple application, you need to copy the HTML page, Silverlight.js file and the ClientBin folder to your server. You can directly run the HTML page too. If you have some complex application with WCF services, host those services somewhere in IIS. Now publish the Silverlight web project and host them in IIS. Hosting silverlight application in IIS is as simple as hosting normal website.
As you are using Windows Server 2003, you don't have to set any MIME types. If you are facing any issues after hosting, check for the MIME types in IIS and add them manually. Generally it is not require.
Let me know.
|
|
|
|