I am doing a module in an application where I need to create a complex UI. I have to make the overall nature of the decision to use the user control to UI because of the complexity
This, I faced some challenges a user control which can be another user control. must attach Chaildughr control the main user control by clicking me User button on the control system runtime. My problem is - how can I do messaging effectively? I event in a large application can not use Agrigrejeshn / unity because I'm just a module, I can use routing Command I, but all the buttons a string value to the command For example possible parameters with the command Will fire the fire, which uniquely identifies the button to click? Yes, you can use the parameters with commands. In the UserControls declaration, the CommandPamator used to use the property to bind or define the desired data sent to the command. To declare your command, the object must be provided for passing by value. -OR - application where I use to use, I set up, I'm trying to limit my command attributes and methods of command would look like this: & lt; Main Wando & gt; & Lt; UserSelectionUserControl & gt; & Lt; Button command = "selectionFlashChild"> button command = "SelectSecond child />
& lt; Button content = "browse" command = "{compulsive browse command}" commandpalmter = "image" />
& lt; Button Content = "Browse" Command = "{Binding BrowseCommand}" CommandParameter = "{SelectedItem binding, ElementName = listbox}" / & gt;
get as private _cmdBrowseCommand as ICommand Public ReadOnly property BrowseCommand () ICommand _cmdBrowseCommand then nothing again _cmdBrowseCommand = new RelayCommand (object) (AddressOf BrowseExecute) get back _cmdBrowseCommand end termination property Private sub BrowseExecute (ByVal as the ultimate object) If typeof (the ultimate) is there, then consider it Ega PannableImage 'again finished code for' short end if sub
Comments
Post a Comment