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 Marko,
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Please let me know if this is what you want or I have misunderstood you in some way.
Looking forward for your reply.
Hi
Thanks very much.
This is exactly what I asked for and you have understood me right.
These functionalities give very elegant look to application.
I have just opened your project and run it and it works fine without errors.
I will try to incorporate this options window in my project and if I stumble upon any errors or have any other doubts or ideas I will ask on this ticket again. Thanks for help again. Cya.
Hi Stefan.
Ok, I think I know what you are talking about. When I go to "References" under my silverlight project I can see all of DLLs that my project uses. I do right click on "System.Windows.Controls.Input.Toolkit" and click "Properties". Then I can see "Path" which points to "C:\Program Files\Microsoft SDKs\Silverlight\v4.0\Toolkit\Apr10\Bin\System.Windows.Controls.Input.Toolkit.dll". My question is: How do I make this path to point to my "Bin" folder under my silverlight project?? so that I can work on it on different machines with no problems??. I do have all needed DLLs in my Bin folder anyways. Why does "he" see this DLL file on a C drive in the first place??
When I click Add Reference I browse to my Bin folder of my silverlight project and pick "System.Windows.Controls.Input.Toolkit.dll" so I don't know how does "he" come up with this C drive path??
How do I change this behavior of my project??
(EDIT: to simplify my question: How do I make Assemblies point to my Bin folder under silverlight project, am I doing it right?? )
Thanks for all of your help.
Marko.
I suggest you remove the reference to the file in C: and then add it again, but this time chose the one in your bin folder.
Hope this helps you.
Hi Stefan,
This is what I did a few minutes ago:
I have removed reference for "InfragisticsSL4.Excel.v10.3.dll" from my project and added it again by clicking "Add Reference" then I have browsed to my "Bin" folder and I have chosen that same file " InfragisticsSL4.Excel.v10.3.dll". Then I do right click on that reference and click "Properties" and then I could see this::
As you can see path remained the same = C drive path, how? why? I don't know. Is there everything ok with other attributes on this picture ?? At this point path should be something like this "/Bin/Debug/InfragisticsSL4.Excel.v10.3.dll" ?? Am I right?
I forgot to mention earlier: in Bin folder I have two folders "Debug" and "Release" and all DLLs are in those folders, so when I am adding reference I navigate to "Bin/Debug" and then I choose a file (*.dll). Is this how it is done ?
When I open my project at my home machine and press F5 application works just fine. But if I do Rebuild it loses some of these references and then starts showing errors. I don't know how is this possible. If the references are not ok then it shouldn't run it successfully the first time, right??
Hope for solution.
Hello again,
I suggest you set the Copy Local Property to False, because if it is true the assemblies are copied to the Output directory (bin or Debug).
"because if it is true the assemblies are copied to the Output directory (bin or Debug)"
Isn't this what I wanted to achieve?
I will post a new ticket regarding printing in silverlight.
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
The assembly you need is called InfragisticsSL4.Documents.IO and it is available since version 11.1.
Hi Stefan
It seems that I have erased all my dll files for working with Word files in Infragistics silverlight.
Is there a way that you could share that file with me via link, I believe that its file name is:
InfragisticsSL4.Documents.v10.3.dll
I have looked among my installed files at this path:
"C:\Program Files\Infragistics\NetAdvantage 2010.3\SilverlightCommon\Bin\"
but I can't find nothing that has to do with Word documents, there is no anything like:
"InfragisticsSL4.Documents.v10.3.dll " nor " InfragisticsSL4.Documents.Word.v10.3.dll"
Please help.
Best regards,
Hi Stafan.
Thanks for your help.
This is great link and this maybe just the thing I need. It's going to take me a while to examen how to make the kind of report template I need but it is definitely great stuff.
Is there more samples like this on your site? cause on this link there is no menu on the left ?
Like for example I want to set the margines programmatically or maybee I want to export document in PDF format..
Best regards.