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: Fri, Feb 17 2012 2:44 AM Reply

Hi Anybody there ? Someone read my question ? Help please.

  • Post Points: 5
[Infragistics]Stefan
Points 122,213
Infragistics Employee
Answered (Not Verified) Replied On: Mon, Feb 20 2012 10:02 AM Reply

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.

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

  • Post Points: 35
torbaman
Points 1,435
Replied On: Mon, Feb 20 2012 10:36 AM 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.

  • Post Points: 20
[Infragistics]Stefan
Points 122,213
Infragistics Employee
Replied On: Mon, Feb 20 2012 10:44 AM Reply

Hello Cya,

 

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
Answered (Not Verified) Replied On: Thu, Feb 23 2012 8:55 AM Reply
Suggested by Konstantin Koynov

Hi again it's Marko.

Ok, so I have managed to use this OptionsPanel in my project but I have one more question, that is:

How can I programmatically expand and collapse body of the  OptionsPanel  ?? Just like I would do it manually  by clicking on that toggle button (+  -). Can I do that by C# code from MainPage where  OptionsPanel is hosted like in your example project ??

  • Post Points: 20
[Infragistics]Stefan
Points 122,213
Infragistics Employee
Replied On: Fri, Feb 24 2012 2:51 AM Reply

Hello Marko,

I have been looking into your requirement and I modified the sample I sent you before, so now it has the functionality you want. Please let me know if this helps you or you need further assistance on this matter.

Looking forward for your reply.

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

  • Post Points: 20
torbaman
Points 1,435
Replied On: Fri, Feb 24 2012 11:04 AM Reply

Hi

When I start your project it works fine (expanding and collapsing)  but when I copy code to my project and run it it throws an error in this function "GetChildFromName", error is:  "Reference is not a valid visual DependencyObject." - it trows it at for loop and when I debug I can see that function parameter "parent" is  NULL and that is the reason for not working right. Why is it NULL I don't know.

Any ideas??

  • Post Points: 20
[Infragistics]Stefan
Points 122,213
Infragistics Employee
Replied On: Mon, Feb 27 2012 7:02 AM Reply

Hello,

 

I have been looking into your requirement but it seems like am missing something about your scenario, so if this is still an issue for you, could you please send me an isolated sample project, where this is reproduced, so I can investigate it further for you.

 

Looking forward for your reply.

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

  • Post Points: 20
torbaman
Points 1,435
Replied On: Thu, Mar 1 2012 3:08 AM Reply

Ok, never mind about that thanks anyways, I have other issues with my project,

Thanks again, if I have any more issues I will write.

Marko.

  • Post Points: 5
torbaman
Points 1,435
Replied On: Mon, Mar 5 2012 6:08 AM Reply

Hi Stefan,

it's Marko again,

I have an issue with <ig:XamGrid   xam grid silverlight control. I am trying to color rows background for different values of some column, for example if value of column [TIP] in some row is "EXTERNI" then fill the bg color of that row with color (255,0,0) and if some row has value "INTERNI" for column [TIP] paint that row in color (0, 255, 0).  If value of column [TIP] in some row is "TEREN"  than fill that row with color (0,0,255).. But what happens when I run my app is that this kind of coloring works but only on every second row (it's like red white blue white blue white green white green white) and as you can see there is a lot of white rows (other every second for which coloring doesn't work). Why is this happening? And what am I doing wrong? I am very curious about this.

Best regards,

Marko.

 

  • Post Points: 20
[Infragistics]Stefan
Points 122,213
Infragistics Employee
Replied On: Mon, Mar 5 2012 6:26 AM Reply

Hello Marko,

 

I have been looking into your post and since the XamGrid has alternating Rows by default, you have two options to achieve your goal. First, you can turn off the alternating by setting the XamGrid’s IsAlternateRowEnabled Property to false. Your other options is to change AltBackground Property of CellControl, too, not just the Background color. Please let me know if this helps you or you need further assistance on this matter.

 

Looking forward for your reply.

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

  • Post Points: 20
torbaman
Points 1,435
Replied On: Mon, Mar 5 2012 9:45 AM Reply

Hi Stefan

It helped, tough I have found this property  "IsAlternateRowsEnabled" and set it to False. Now I don't have those white rows and that problem is solved. My problem with this grid is that it looks quite big. Rows are too high and when I set height to some smaller value like RowHeight="16" (for example) I can't see hole data in rows because it seem that every row has some kind of inner padding and that padding pushes data lower to be overlapped by row below. How do I set that padding to be 0px? So that I can make my XamGrid look like lines of this post for example ??

Best regards,

Marko.

  • Post Points: 20
[Infragistics]Stefan
Points 122,213
Infragistics Employee
Replied On: Tue, Mar 6 2012 2:49 AM Reply

Hello Marko,

 

I have been looking into your requirement and I suggest you add the following Style in your XamGrid’s Resources:

<Style TargetType="ig:CellControl">
    <Setter Property="Padding" Value="0"/>
</Style>

 

In order to remove the Padding that the CellControl has.

 

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: Tue, Mar 6 2012 6:13 AM Reply

Hi Stefan,

Nope, it doesn't work or maybe I am using it wrong:

.

.

</ig:XamGrid.Columns>
<ig:XamGrid.Resources>
<Style TargetType="ig:CellControl">
<Setter Property="Padding" Value="0"/>
<Setter Property="FontFamily" Value="Arial"/>
<Setter Property="FontSize" Value="10"/>
<Setter Property="VerticalAlignment" Value="Top"/>
<Setter Property="Height" Value="19"/>
</Style>
</ig:XamGrid.Resources>
<ig:XamGrid.RowSelectorSettings>
<ig:RowSelectorSettings Visibility="Visible" EnableRowNumbering="True" />
</ig:XamGrid.RowSelectorSettings>
<ig:XamGrid.SelectionSettings>
<ig:SelectionSettings CellClickAction="SelectRow" />
</ig:XamGrid.SelectionSettings>
<ig:XamGrid.EditingSettings>
<ig:EditingSettings AllowEditing="None"/>
</ig:XamGrid.EditingSettings>
</ig:XamGrid>

I have put it to the end of the grid as you can see. Is this ok I mean am I using it right?

Here is how it looks:.

 

 

 

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