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.
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?
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.
Looking forward for your reply.
Ok, I have downloaded project you have edited and really nice solution for the column value condition on the xaml design side. When I read your post before opening the project I saw what I was doing wrong and quickly edited the C# side. After that I start the page and rows are tinner now but there is a gap between them. What property I need to adjust to remove that gap ?
Hello Marko,
I have been looking into your sample and I can say that this behavior is normal since you apply a new Style to the Cells, when you make your conditional formatting for the last Cell, so I used the built in functionality for conditional formatting, so now two different Styles are applied based on the last cell’s value.
Hope this helps you.
Hi Stefan,
Here is my isolated project
I hope I have attached it right. In archive there is also MS SQL database backup "Aktivnosti_DBBACKUP_MSSQL" so that you can fill the grid. (SQL Server 2008).
Hope hearing from you soon :)
Marko.