User Profile & Activity

Richard Griffths Member
Page
of 6
Posted: December 6, 2011 4:14 AM

Hi

I think I have amanged to resolve this - I changed the listbox property 'Drag Mode' from Move to Copy and this seemd to sort it.

I don't think the issue was with the scroller - the scrolling action caused the drag action.

How do I disable dragging?

Richard




Posted: October 10, 2011 3:09 PM

Hi


yes I would like its priority raised.  I asked about this about a year ago. 

 It is standard practice that different users of an application may want to show/hide different columns in a grid (as well as column order/size etc) - in order to do this the size, visibility properties (as well as others) of grid columns need to be able to bind to the view model - and the next logical step is to be able to save those settings on a application or user level (to an underlying database for example). 

Your competitors have Silverlight grids that do this - and I am surprised that I have to explain this functionality to you.  I can supply  links to grids that show this functionality if you wish.  Hope this can be done soon, thanks for your efforts.

Regards

Richard



Posted: October 7, 2011 1:15 PM

Hi


the hotfix has worked, many  thanks

Richard

Posted: October 6, 2011 9:04 AM

Hi

I am running in evaluation mode and so do not have licence key.  Please advise

Thanks

Richard


Posted: October 6, 2011 3:16 AM

Hi Handy


I am using Clinet UI5.  The update manager says there is a hotfix 5.0.5000.4 to be applied.  This is blocked.  Is there a manual option to getting teh hotfix.  Thanks.

Richard

Posted: October 5, 2011 4:15 AM

Hi

thanks for the zip file.....still no joy - downloaded your project and still not working (but as per last email if I run through UXShell_Desktop.SLTestPage.aspx it works).  When debugging it goes through the code okay, but no pop-up.

I am using VS2010 sp1 and have tried on two different machines.

Could do with some other users trying as well and getting some feedback from them.

I await further instruction. Thanks.

Regards

Richard






Posted: October 4, 2011 2:22 PM

Hi

I have amended my errors..but it still does not work.  However when I change the start page of the SL project to this one ..... UXShell_Desktop.SLTestPage.aspx (instead of Contacts_MVVM.SLTestPage.aspx) - the messagebox works.  Please see attached screenshots.  Any advice here....I don't know how the two projects work and maybe you are better at understanding this.

Regards

Richard


Posted: October 3, 2011 8:16 AM

Hi

to show that a model popup does not permit message boxes I have amended the 'Contacts_MVVM_SL' sample you provide.  See attached screen shot. Code taken from ContactEditViewModel with my amendemnts underlined.


public DelegateCommand SaveCommand { get; set; }

        public DelegateCommand ShowMessageCommand { get; set; }
        public DelegateCommand ChangeStateCommand { get; set; }
        
        // Constructor
        public ContactEditViewModel(Contact contact, bool isNewContact)
        {
            _contact = contact;
            _contact.PropertyChanged += new PropertyChangedEventHandler(Contact_PropertyChanged);
            
            _isNewContact = isNewContact;
            this.SaveCommand = new DelegateCommand(SaveContact, CanSaveContact);
            this.ChangeStateCommand = new DelegateCommand(ChangeState);
            this.ShowMessageCommand = new DelegateCommand(ShowMessage);
        }
        private void ShowMessage(object parameter)
        {
            MessageBoxServiceProvider.Show(
               "Test?",
               "Confirmation", MessageBoxButton.YesNo, MessageBoxImage.Question,

               (dialogResult) =>
               {
                   if (dialogResult == DialogResult.Yes)
                   {
                      
                   }
               });
        }

 

I have edited the viewmodel(ContactEditViewModel) and view to add a button that simply displays a message box (ShowMessage)

 <Intersoft:UXButton Content="Button" Name="uXButton1"  Command="Binding ShowMessage"/>


This does not work and if I wanted to pop up another Dialog box from a button on this screen - this does not also work.

I would consider this requirement to work as 'standard' line of business stuff!!

Is this a bug? or can you advise on how to achieve. Thanks


Richard


Posted: September 22, 2011 8:03 AM

Hi


the close dialog code worked okay, thanks.


I can't seem to get the message box working in a UXDialog control. Even after the pop-up has closed it does not work.... this code pops up a box, enter new user details and closes - the code goes through to

 MessageBoxServiceProvider.Show().... but nothing happens. Additionally I can't seem to use this code inside (MVVM) CreateAccount uxdialogbox control.


private void CreateAccount(object parameter)
        {
            DialogBoxServiceProvider.GetInstanceAsync(DialogBoxServiceProvider.CreateAccount, (dialogBox) =>
            {
                DialogBoxServiceProvider.Show(dialogBox, (dialogResult) =>
                   
                {
                    if (dialogResult == DialogResult.OK)
                    {
                        MessageBoxServiceProvider.Show(
                            ApplicationStrings.RegistrationSuccessMessage,
                            ApplicationStrings.RegistrationSuccessCaption,
                            (dialogResult1) =>
                            {
                               
                            }
                            );
                    }
                });
            });
        }

Can you also advise on how to pass data into the pop-up dialog and also return data when the dialog closes, many thanks

Richard

Posted: September 20, 2011 8:33 AM

Hi

thanks for your reply.  I looked at the sample and did the following to that sample:

in XAML....

<Intersoft:UXButton Content="Save" Width="80" IsDefault="True" Command="{Binding SaveCommand}" DialogResult="{Binding DialogResult1}"/>

 In VM....

 private string _DialogResult1;

        public string DialogResult1
        {
            get { return _DialogResult1; }
            set { 
                _DialogResult1 = value;
                OnPropertyChanged("DialogResult1");
            }
        }
        
        private void SaveContact(object parameter)
        {
            if (this.Contact.Id == "MARIA") // simulate an error
            {
                DialogResult1 = "None";
 
                MessageBoxServiceProvider.Show(
                "Error saving?",
                "Error"MessageBoxButton.YesNo, MessageBoxImage.Question,
 
                (dialogResult) =>
                {
                    if (dialogResult == DialogResult.Yes)
                    {
                       
                    }
                });
            }
            else
                DialogResult1 = "OK";
 
            // in this sample, the save logic is implemented in ContactsViewModel for simplicity.
            // to prevent the dialog box to close (i.e, due to errors in saving), 
            // bind to the DialogResult property and set it to None.
        }


Firstly, this sort of works.  The Save button does not close the pop-up as expected but when the ID is not equal to Maria (simulate an error) the dialog pop up does not close until your click for the second time.  So the binding dos not work properly (or arrives too late).  Can you please advise.


Secondly, the message box bit does not work at all - can you please advise.

Thanks

Richard



All times are GMT -5. The time now is 4:44 AM.
Previous Next