User Profile & Activity

Glenn Layaar Support
Page
of 99
Posted: December 1, 2010 9:41 PM

I believe the provided UXNavigationWindow sample in the ClientUI Control Sample already demosntrate a very simple stepped wizard application.

The source for the sample is located in [Intersoft Solutions Installation folder]\Intersoft WebUI Studio 2010 R1\Samples\SL4\ClientUI Samples\Intersoft.ClientUI.Samples.NavigationControls\Views\UXNavigationWindow\Default.xaml

Posted: November 30, 2010 11:07 PM

You could use the Intersoft ClientUI Desktop Template to see how the maximize works. In your case, you will need to implement the Maximize executed event handler to handle the maximize process yourself.

Here is a snippet on how to implement Maximize executed on the Settings.xaml which is a UXDialogBox:

public Settings()
{
InitializeComponent();

// Create a CommandBinding and attaching an Executed and CanExecute handler
CommandBinding maximizeCommandBinding = new CommandBinding(
WindowCommands.Maximize,
MaximizeExecuted);

// Create the CommandBindingCollection to hold the command binding
CommandBindingCollection bindingCollection = new CommandBindingCollection();
bindingCollection.Add(maximizeCommandBinding);

// Set the binding collection to the layout root
CommandManager.SetCommandBindings(this, bindingCollection);

}

private void MaximizeExecuted(object sender, ExecutedRoutedEventArgs e)
{
this.Height = ((UXPage)this.GetRootVisual()).ActualHeight;
this.Width = ((UXPage)this.GetRootVisual()).ActualWidth;
this.Left = 0;
this.Top = 0;

this.WindowState = Intersoft.Client.UI.Aqua.UXDesktop.WindowState.Maximized;
}


 

Posted: November 29, 2010 11:22 PM

If you are trying to retrieve the dropdown element during OnEnterEditMode you could use the element property of the editObject parameter. Here is the snippet:

function _WebGrid_OnEnterEditMode(controlId, tblName, editObject) {

var dropDown = editObject.element;

...
}

If not, by my analysis the dropdown element will be assigned an ID with [WebGridName]__[ColumnName], you could use document.getElementById method to retrieve the element. For example if you named your WebGrid WebGrid1 and the column is Company, the method will be:

document.getElementById("WebGrid1__Company")

Unfortunately, as far as I know the infromation is not available in WebGridCell object.

Posted: November 28, 2010 10:49 PM

In my test project, I could successfully open a UXDialogBox programatically using the provided DialogBoxServiceProvider helper class from the ViewModel using this snippet:

DialogBoxServiceProvider.Show(new Settings(), null);

On you snippet you are using Open method on the JobHistoryEditor object, I could not found any available Open method in the UXDialogBox.

Posted: November 25, 2010 9:25 PM

In my test, you could use the SelectedValuePath to set the primary key column and the SelectedValue property will accept / filled with the primary key value.

Attached is a simple demonstration of the scenario.

Posted: November 24, 2010 9:51 PM

Using the latest build of WebGrid 7 and modfying the earlier attached sample for virtual load by adding PagingMode="VirtualLoad" VirtualPageSize="20", I could not replicate the issue. In my environment all grouped row will expand without any issue.

The latest WebGrid 7 and WebUI Framework 3 is build 406 and build 757.

Posted: November 24, 2010 4:40 AM

You could use the UXWindow WindowStateChanged event handler to modify the width and height after yje UXWindow is maximized. Here is the snippet:

private void wndHome_WindowStateChanged(object sender, WindowOperationEventArgs e)
{
UXWindow wndObj = (UXWindow)e.OriginalSource;
if (wndObj.WindowState == Intersoft.Client.UI.Aqua.UXDesktop.WindowState.Maximized)
{
wndObj.Height = this.ActualHeight;
wndObj.Width = this.ActualWidth;
}
}

FYI, we implement the maximize behavior bacause by extending the UXWindow to its full size, it will block user from using the UXWindow element located below the UXDesktopDock.

Posted: November 23, 2010 1:30 AM

IMO, you could use navigation command for such scenario. We have discuss about navigation command in our docs on this article and a walkthrough of UXListBox which implements command also available here.

Posted: November 22, 2010 11:44 PM

Actually, UXDesktopDockButton has a content property and which you could use to hold the IconTemplate. Here is a simple snippet of UXDesktopDockButton containing a TextBlock element:

<Intersoft:UXDesktopDockButton>
<TextBlock Text="Hello World!"/>
</Intersoft:UXDesktopDockButton>

In the attached sample, such scenario will be incompatible with the default ImageLoader in the UXDesktopDockButton so you will need to disable the ImageLoader in the DesktopDock.

<Intersoft:UXDesktopDock UseImageLoader="False">


Posted: November 22, 2010 4:21 AM

IMO, for such scenario, we should not use UXPopup since UXPopup will not be integrated with the parent container. You could use the MouseEnter and MouseLeave event handler in order to resize the image, this way the container will resize itself based on the image. Here is the snippet:

<Intersoft:UXStackButton ... StackMode="GridStyle">
<Intersoft:UXStackButton.StackGridTemplate>
<DataTemplate>
<Image MaxWidth="75" MaxHeight="75" Name="imageLoader1"
...
MouseEnter="imageLoader1_MouseEnter" MouseLeave="imageLoader1_MouseLeave" />
</DataTemplate>
</Intersoft:UXStackButton.StackGridTemplate>
</Intersoft:UXStackButton>
private void imageLoader1_MouseEnter(object sender, MouseEventArgs e)
{
Image img = (Image)sender;
img.ClearValue(Image.MaxWidthProperty);
img.ClearValue(Image.MaxHeightProperty);
}

private void imageLoader1_MouseLeave(object sender, MouseEventArgs e)
{
Image img = (Image)sender;
img.MaxHeight = 75;
img.MaxWidth = 75;

CallOut callout = Utility.FindVisualAncestor(img, typeof(CallOut)) as CallOut;
callout.RefreshCallOut();
}


All times are GMT -5. The time now is 1:23 AM.
Previous Next