Hi. I am Marko.
How do I make popup window just like the options window You made on this sample page (I repeat OPTIONS WINDOW):
http://samples.infragistics.com/sllob/RunSamples.aspx?cn=dialog-window#/dialog-window/showing-the-dialog
Code:
xmlns:optPanel="clr-namespace:Infragistics.Web.SampleBrowser.SilverlightLOB.CustomControls"
<optPanel:OptionsPanel HeaderText="{Binding Source={StaticResource Strings}, Path=XDW_Options}"> <StackPanel Orientation="Vertical" Margin="5"> <Button Content="{Binding Source={StaticResource Strings}, Path=XDW_ShowDialog_Plain}" Height="22" Margin="0,0,0,10"></Button> <Button Content="{Binding Source={StaticResource Strings}, Path=XDW_ShowDialog_Container}" Height="22" Margin="0,0,0,10"></Button> <Button Content="{Binding Source={StaticResource Strings}, Path=XDW_ShowDialog_MessageBox}" Height="22"></Button> </StackPanel> </optPanel:OptionsPanel>
The thing is I want to make exact same thing and that includes: shadows around the edges, movable ,semi transparent when moving, expandable on that + - button. Only difference I would make it pop up on some button click and it would have fade-in appearing effect. I like it very much but I don't have the code for that custom control. Can You please paste all the required code and instructions here how to do this. It would be very cool. Thank You.
Hello Surya,
You can find the sample on the first page of this conversation.
Hi Stephan,
How do I make popup window just like the options window You made on this sample page (I repeat OPTIONS WINDOW. )
I noticed that you already have created sample for above functionality. Could you please send me as I also have similar requirement.
Surya Prakash
Hi
I will post a new ticket regarding printing in silverlight.
Hi Stefan,
Thanks for your answers - big help.
I have managed to print a page, here is what I did:
I added "Silverlight.Reporting.dll" reference to my project and I added UserControl page which I fill with needed data and I print with this code:
PrintDocument document = new PrintDocument(); document.PrintPage += (s, args) => { args.PageVisual = LayoutRoot; args.HasMorePages = false; HideAllOuterControls(); }; document.EndPrint += (s, args) => { ShowAllOuterControls(); }; document.Print("Ticket Report");
This prints page just fine. I have one issue so far dough and that is it prints until the certain height of the page. Namely if I have on my page (height 800px) a border control from top to bottom (height 780px) I press PRINT and on the paper I can only see top 600px of the rectangle (roughly 600) - I can't see the bottom line at all?? I wonder why is this?? Cause THERE IS a plenty of space below to fit the hole rectangle.
Is there something I am missing? Some additional settings maybe, please help.
P.S. I am planing to put my printing to child window later...
Best regards
Marko.
Hello Marko,
The assembly you need is called InfragisticsSL4.Documents.IO and it is available since version 11.1.
Hope this helps you.