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,
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.
Marko.
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).
Hope this helps you.
"because if it is true the assemblies are copied to the Output directory (bin or Debug)"
Isn't this what I wanted to achieve?
Could you please tell me what kind of errors do you have and do you have NetAdvantage installed on your computer?
Hello Stefan,
Yes I have NetAdvantage installed on my work machine and on my home computer,
but on my home machine when I open my project and rebuild it VS2010 cannot recognize some of the controls. For example I look the design and control "<toolkit:TimeUpDown" gets underlined and in error window I can see the message like "tag toolkit cannot be recognized check if you are not missing any references". Now, this control is not Infragistic but its standard Silverlight control. I have installed Silverlight Control Toolkit 4 on my home and work machines but this error happens. Also tag "<controls:OptionsPanel" gets underlined by VS2010 and in error window I get message as above " OptionsPanel cannot be recognized check if you are not missing any references" - but I have OptionsPanel.cs in my silverlight project. That is why I tought that something is wrong with project itself That is why I asked how the Path of the reference should look like when DLL file is in Bin/Debug folder cause no matter what I do path of the reference is C drive something something.
Hello,
Do you have the same release of Silverlight Toolkit installed on your home machine, like the one on your work computer?
I think I do but I will install it again just to make sure and then I'll get back to you.
Best regards,
I have installed some things (some Silverlight Toolkit update) and now I can see that control
"<toolkit:TimeUpDown " in my Toolbox to the left. and now I can rebuild my silverlight project without loosing references. Frankly I don't know what was the problem before, but now it seams that this issue is resolved.
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Hi Stefan, I have one interesting question:
How do one make a template for printing a report to look something like this:
Note that this is NOT table-like report THAT PRINTS DATA ONE LINE BELOW THE OTHER, this is report that has specific part of the page reserved for specific data like for example top left corner reserved for customer name, top center reserved for report title (big letters) ect..
I have tried so far something like this:
Report report;
report = Application.Current.Resources["Report1"] as Report;
xamGridAktivnosti.ItemsSource = listaAktivnosti; report.ItemsSource = e.Result;
report.EndPrint += (s, e) => MessageBox.Show("Dokument je odštampan."); report.BeginBuildReportItem += (s, e) => { var item = e.DataContext as Aktivnosti; }; report.BeginBuildReportFooter += (s, e) => { }; report.Print();
But this prints data line below line, and I don't need that, I need templated report, How do I do this?