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.
Hello again,
I tested your sample again and after the modifications I made it seems like that on my side there are no gaps. I attached a screenshot of the result I get.
Could please tell me if there is difference between my result and yours.
Yeah I know , when I start your project I get the same result as you do on this screenshoot, so in my project I comment the c# code that makes those styles programmatically and copy your code on my xaml page, so now there is two styles on my xaml page "xamGreen" and "xamRed". Difference is that I sent you a isolated sample project which has 4 columns and that "status" is last one, but in reality in my project there is 16 columns and "status" is somewhere in the middle (not all are visible). Maybe this causes that all of my rows go GREEN even there are different values for "status" and some of them should go RED. Also when I use your solution in my project there is still a gap between the rows, here is how it looks::
So this led me to think that there is some property to set this gap explicitly, something like "rowSpacing".
OK my bad, I have resolved the issue. RowHeight="19" had bigger value then:
<Setter Property="Height" Value="17"/>
Sorry no need to reply this. Solved.
But still all my rows are GREEN, what am I doing wrong?
I apologize I haven’t been clear enough, but you should add the following code in to your “STATUS” column, in order to apply the red style to the Rows where the status equals “NEREALIZOVAN”:
<ig:TextColumn.ConditionalFormatCollection> <ig:EqualToConditionalFormatRule StyleScope="Row" StyleToApply="{StaticResource xamRed}" Value="NEREALIZOVAN"/> </ig:TextColumn.ConditionalFormatCollection>
Hope this helps you.
I tried it like this:
<ig:TextColumn Key="STATUS" HeaderText="STATUS" Width="100" AllowCaseSensitiveSort="True" EditorHorizontalContentAlignment="Stretch" EditorVerticalContentAlignment="Stretch" FixedIndicatorDirection="{x:Null}" IsFilterable="True" IsFixable="True" IsGroupable="True" IsHideable="True" IsMovable="True" IsResizable="True" IsSortable="True" IsSummable="True" VerticalContentAlignment="Center"> <ig:TextColumn.ConditionalFormatCollection> <ig:EqualToConditionalFormatRule StyleScope="Row" StyleToApply="{StaticResource xamRed}" Value="NEREALIZOVAN"/> </ig:TextColumn.ConditionalFormatCollection> <ig:TextColumn.SummaryColumnSettings> <ig:SummaryColumnSettings /> </ig:TextColumn.SummaryColumnSettings> </ig:TextColumn>
And it didn't worked it was all green, but never mind that I solved that issue by getting back to that solution of setting this styles in C# file.
Now I have different kind of problem. When I take my project at home and open it in VS2010 there is problem because I loose some of my references when I rebuild silverlight project. I loose "System.Windows.Controls.Input.Toolkit" reference which enables me to use "<toolkit:TimeUpDown".??
Where do I look for a problem and how do I solve this??
And another thing, that "OptionsPanel" is not recognized when I open my project at home although I have " OptionsPanel .cs" in my silverlight project. Why is that he can't see him??[I am writing from my work - here I don't have this kind of problems - on this machine]
I can run my project just fine and use my application as long as I don't rebuild him. After first rebuild I do everything goes bust!?
Some time ago I saw that paths of the files in project are stored in many places like:
nDOCUSSL4.Web.csproj, nDOCUSSL4.Web.dll, nDOCUSSL4.Web.csproj.FileListAbsolute.txt ...
list goes on and on. Does this means that I have to edit this files (files path wise) when ever I want to work with my project on a different machine ??? [I am writing from my work - here I don't have this kind of problems - on this machine]
Long post but I am troubled.
Best regards.
Marko.
If the assemblies aren’t found this can be caused by two things, either the Assemblies point the GAC (Global Assembly Cache) and you don’t have them installed there, or they point to a specific folder, which you don’t have on your computer at home. I can suggest you double check this things and make the needed corrections with your assemblies.
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
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..