User Profile & Activity

Glenn Layaar Support
Page
of 99
Posted: November 21, 2010 11:51 PM

I believe you could use the Header property to set a custom content, in this snippet I use a Rectangle element:

<Intersoft:UXStackItem Text="Automator" FontSize="12" Margin="0" Height="64" VerticalAlignment="Top">
<Intersoft:UXStackItem.Header>
<Rectangle Fill="Blue" Height="100" Stroke="Black" Width="100"/>
</Intersoft:UXStackItem.Header>
</Intersoft:UXStackItem>


Posted: November 18, 2010 9:46 PM

The scenario is supported by ClientUI, you could read in in more detail on Navigation Overview. The article also have some walkthrough for basic navigation application.

This is the expected behavior, under such scenario ClientUI will prioritize data binded using ItemsSource property.

As a workaround, you could add the predefined data, which you would like to add in the XAML, in the ViewModel on the ObservableCollection during the getter. 


I believe the ItemsPanel property is responsible for the layout panel of the UXItemsControl, in your case you could set the UXItemsControl ItemsPanel to use StackPanel so each items will be added below the previous item.

<Intersoft:UXItemsControl HorizontalAlignment="Left" Margin="10,10,0,0" Name="uXItemsControl1" VerticalAlignment="Top">
<Intersoft:UXItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel />
</ItemsPanelTemplate>
</Intersoft:UXItemsControl.ItemsPanel>
<Intersoft:GroupBox Header="Group 1" >
...
</Intersoft:GroupBox>
<Intersoft:GroupBox Header="Group 2">
...
</Intersoft:GroupBox>
</Intersoft:UXItemsControl>


Posted: November 16, 2010 5:34 AM

I have discussed this issue with the developer and he confirmed that this is the expected behavior in XHTML doctype, the parent container will automatically enlarge it size based on the child size.

Personally, I have never use Prism. However, based on what I read here, using UXWindow controls as the region view holder is quite viable.

Posted: November 15, 2010 10:21 PM

I have just been updated regarding this issue, the fix will be available on the next hotfix release.

Posted: November 15, 2010 10:03 PM

Unfortunately, such behavior is not available in WebCombo. However, using a workaround by buffering the highlighted row periodically during OnShowDropDown and setting the WebCombo value during OnKeyDown event handler based on the buffer highlighted row we could achieve such scenario. Here is the event handler snippet:

<script type="text/javascript" language="javascript">
var intervalObj = null;
var highlightRow = null;

function WebCombo1_OnShowDropDown(controlId, left, top, width, height) {
var combo = ISGetObject(controlId);

setTimeout(function () {
var contElem = combo.ResultBox.document.documentElement;

if (!IS.ie)
contElem = combo.ResultBox.document.body._e;

var rows = contElem.getElementsByTagName("tr");

if (combo.GetSelectedRow() != null) {
for (var i = 0; i < rows.length; i++) {
rows[i].className = "WC4-Row-N";

}

combo.GetSelectedRow().className = "WC4-SR";
combo.GetSelectedRow().nextSibling.className = "WC4-SR";
combo.GetSelectedRow().nextSibling.nextSibling.className = "WC4-SR";
}
else {
if (rows.length > 2) {
rows[0].className = "WC4-SR";
rows[1].className = "WC4-SR";
rows[2].className = "WC4-SR";
}
}

intervalObj = setInterval(function () {
if (combo.ResultBox) {
var contElem = combo.ResultBox.document.documentElement;

if (!IS.ie)
contElem = combo.ResultBox.document.body._e;

var rows = contElem.getElementsByTagName("tr");

for (var i = 0; i < rows.length; i++) {
if (rows[i].className == "WC4-Row-O") {
highlightRow = rows[i];
break;
}
}
}
else {
clearInterval(intervalObj);
intervalObj = null;
}
}, 50);

}, 15);
}

function WebCombo1_OnKeyDown(controlId, keyValue) {

var combo = ISGetObject("WebCombo1");

if (keyValue == 13 || keyValue == 9) {
setTimeout(function () {
combo.SetText(highlightRow.childNodes[0].innerText);
}, 15);
}
}
</script>


The bug report has just been updated, a fix will be available in the next hotfix release.

The developer also noted that RowChecker and MultipleRowSelection feature should not be used together in order to avoid any issues.

I have just been updated about this issue, a fix will be available in the next hotfix release.

All times are GMT -5. The time now is 3:45 AM.
Previous Next