popup window?

Answered (Not Verified) This post has 0 verified answers | 45 Replies | 3 Followers Thread's RSS feed.

torbaman
Points 1,435
Replied On: Tue, Feb 14 2012 4:06 AM Reply

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.

  • Post Points: 20

All Replies

torbaman
Points 1,435
Replied On: Wed, Mar 14 2012 10:01 AM Reply

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.

  • Post Points: 20
[Infragistics]Stefan
Points 126,248
Infragistics Employee
Replied On: Wed, Mar 14 2012 10:29 AM Reply

Hello,

Do you have the same release of Silverlight Toolkit installed on your home machine, like the one on your work computer?

Sincerely,
Stefan, MCPD
Developer Support Engineer
Infragistics, Inc.
www.infragistics.com/support

  • Post Points: 20
torbaman
Points 1,435
Replied On: Thu, Mar 15 2012 6:24 AM Reply

Hi Stefan,

I think I do but I will install it again just to make sure and then I'll get back to you.

Best regards,

Marko.

  • Post Points: 5
torbaman
Points 1,435
Replied On: Fri, Mar 16 2012 5:00 AM Reply

Hi Stefan,

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.

Best regards,

Marko.

  • Post Points: 20
[Infragistics]Stefan
Points 126,248
Infragistics Employee
Replied On: Fri, Mar 16 2012 5:22 AM Reply

Hello Marko,

 

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.

Sincerely,
Stefan, MCPD
Developer Support Engineer
Infragistics, Inc.
www.infragistics.com/support

  • Post Points: 20
torbaman
Points 1,435
Replied On: Tue, Mar 20 2012 7:19 AM Reply

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?

Best regards,

Marko.

 

  • Post Points: 20
[Infragistics]Stefan
Points 126,248
Infragistics Employee
Replied On: Tue, Mar 20 2012 7:51 AM Reply

Hello Marko,

I can suggest you use our Reporting product. Here you can read more about it:

http://www.infragistics.com/dotnet/netadvantage/reporting.aspx#Overview

Hope this helps you.

Sincerely,
Stefan, MCPD
Developer Support Engineer
Infragistics, Inc.
www.infragistics.com/support

  • Post Points: 20
torbaman
Points 1,435
Replied On: Wed, Mar 21 2012 6:23 AM Reply

Hi Stefan,

I saw your link,

but I thought  that I could make some kind of a user control - template of my own IN APP.XAML like is that Options panel.

And that solution  on your link looks too costly for me to be honest ,

So my question comes: Is it possible to make some report template for printing in APP.XAML  ??

Marko.

  • Post Points: 20
[Infragistics]Stefan
Points 126,248
Infragistics Employee
Replied On: Wed, Mar 21 2012 7:54 AM Reply

Hello Marko,

You can see this sample:

 http://samples.infragistics.com/sllob/RunSamples.aspx?cn=infragistics-word#/infragistics-word/export-to-word-using-streamer-object

where you can see how to export to Word and add customizations to the document.

Sincerely,
Stefan, MCPD
Developer Support Engineer
Infragistics, Inc.
www.infragistics.com/support

  • Post Points: 20
torbaman
Points 1,435
Replied On: Wed, Mar 21 2012 10:25 AM Reply

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.

Marko.

  • Post Points: 5
torbaman
Points 1,435
Replied On: Thu, Mar 22 2012 5:46 AM Reply

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,

Marko.

  • Post Points: 20
[Infragistics]Stefan
Points 126,248
Infragistics Employee
Replied On: Thu, Mar 22 2012 7:44 AM Reply

Hello Marko,

 

The assembly you need is called InfragisticsSL4.Documents.IO and it is available since version 11.1.

 

Hope this helps you.

Sincerely,
Stefan, MCPD
Developer Support Engineer
Infragistics, Inc.
www.infragistics.com/support

  • Post Points: 20
torbaman
Points 1,435
Replied On: Fri, Mar 23 2012 9:57 PM Reply

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.

 

 

  • Post Points: 5
torbaman
Points 1,435
Replied On: Tue, Mar 27 2012 3:42 AM Reply

Hi

I will post a new ticket regarding printing in silverlight.

  • Post Points: 5
SURYA_PRAKASH
Points 20
Replied On: Thu, Jul 19 2012 6:20 AM Reply

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

  • Post Points: 20
Page 3 of 4 (46 items) < Previous 1 2 3 4 Next > | RSS