Jump to: navigation, search

Difference between revisions of "Version 1.3 (Xamarin)"


Line 30: Line 30:
 
= XAML changes =
 
= XAML changes =
  
No major changes.
+
== [[Map_View_(Xamarin)#Context_Object|Show on map]] ==
 +
To enable the selected effect, you need to add <code>SelectedPOI="{Binding SelectedPOI.WorldARItem}"</code> to the <code>mapsUi:MapView</code> control in the existing (if any) UBIKMapArea template.
 +
 
 +
== [[POI_View_(Xamarin)#Context_Object|Show in AR]] ==
 +
The selected effect is implemented in the following templates.
 +
* UBIKWorldViewItemArea;
 +
* UBIKDisplayViewItemArea;
 +
* UBIKCameraViewItemArea.
 +
If you have customized these templates, they need to be updated to display the effect. Below is the example effect added in the new default templates.
 +
<source lang = "xml">
 +
<Grid x:Name="PoiGrid" xmlns:behaviors="clr-namespace:UBIK.CPL.Behaviors;assembly=UBIK.CPL">
 +
    <Grid.Behaviors>
 +
        <behaviors:DataChangedBehavior
 +
            Binding="{Binding IsSelected}"
 +
            ComparisonCondition="Equal"
 +
            Value="True">
 +
            <behaviors:ScaleAction FinalScale="2" TargetObject="{Binding Source={x:Reference PoiGrid}}" />
 +
        </behaviors:DataChangedBehavior>
 +
        <behaviors:DataChangedBehavior
 +
            Binding="{Binding IsSelected}"
 +
            ComparisonCondition="Equal"
 +
            Value="False">
 +
            <behaviors:ScaleAction FinalScale="1" TargetObject="{Binding Source={x:Reference PoiGrid}}" />
 +
        </behaviors:DataChangedBehavior>
 +
    </Grid.Behaviors>
 +
    <Frame
 +
        BorderColor="Orange"
 +
        HasShadow="True"
 +
        IsVisible="{Binding IsSelected}" />
 +
    <!-- Here goes the actual content of the POI -->
 +
</Grid>
 +
</source>
 +
* Through the use of those two behaviors, the POI is scaled up/down when it becomes selected/unselected;
 +
* The frame with a border color highlights the POI when it's selected.
 +
 
 +
{{Hint|You can implement different effects as you like.}}
  
 
<headertabs />
 
<headertabs />

Revision as of 15:54, 22 December 2021

[edit]

Release Notes

Beta

1.3.8 on 2021-12-22 iOS: App Store

This is the same version as 1.3.6.

Preview

1.3.6 on 2021-12-20 Android: App Center iOS: App Center UWP: App Center

  • Fixed an issue where POIs are displayed with unwanted horizontal offsets on screens with high pixel density.

1.3.4 on 2021-12-17 Android: App Center iOS: App Center UWP: App Center

  • Added support for signature property editing (not yet on iOS).
  • When navigating to the map view with a context object (or POI view), UBIK makes sure it's visible and selects/highlights it.
  • Users can now choose dynamic selective list items when editing Guid properties.
  • Fixed an issue where the result of Guid/link property editing is not always automatically saved and committed upon user confirmation.
  • Fixed an issue where query result items are sometimes not shown the first time a Guid/link property is edited.
  • Fixed an issue where the navigation history is replayed when a page gets refreshed.
  • Fixed an issue where the document page becomes unusable (turns blank) after users browse to a PDF document with freshly updated annotations.
  • Fixed a performance issue (memory leak & high CPU usage) after showing many PDF documents.


Known issues

  • Branch download might be paused if the device goes into sleep mode without a power source attached and will only resume if the device screen is unlocked again. We are aware of this issue and will improve it in the future versions.
  • When editing the value of a double property in landscape mode characters other then numbers are not displayed but still remain in the string.
  • In rare cases, a query page appears blank without list content after navigating back from another query page. In such cases, a workaround is to reopen it or pull the list area to refresh.
  • In rare cases, selection of PDF annotations might misbehave on iOS.

XAML changes

Show on map

To enable the selected effect, you need to add SelectedPOI="{Binding SelectedPOI.WorldARItem}" to the mapsUi:MapView control in the existing (if any) UBIKMapArea template.

Show in AR

The selected effect is implemented in the following templates.

  • UBIKWorldViewItemArea;
  • UBIKDisplayViewItemArea;
  • UBIKCameraViewItemArea.

If you have customized these templates, they need to be updated to display the effect. Below is the example effect added in the new default templates.

<Grid x:Name="PoiGrid" xmlns:behaviors="clr-namespace:UBIK.CPL.Behaviors;assembly=UBIK.CPL">
    <Grid.Behaviors>
        <behaviors:DataChangedBehavior
           Binding="{Binding IsSelected}"
           ComparisonCondition="Equal"
           Value="True">
            <behaviors:ScaleAction FinalScale="2" TargetObject="{Binding Source={x:Reference PoiGrid}}" />
        </behaviors:DataChangedBehavior>
        <behaviors:DataChangedBehavior
           Binding="{Binding IsSelected}"
           ComparisonCondition="Equal"
           Value="False">
            <behaviors:ScaleAction FinalScale="1" TargetObject="{Binding Source={x:Reference PoiGrid}}" />
        </behaviors:DataChangedBehavior>
    </Grid.Behaviors>
    <Frame
       BorderColor="Orange"
       HasShadow="True"
       IsVisible="{Binding IsSelected}" />
    <!-- Here goes the actual content of the POI -->
</Grid>
  • Through the use of those two behaviors, the POI is scaled up/down when it becomes selected/unselected;
  • The frame with a border color highlights the POI when it's selected.
IC Hint square.pngYou can implement different effects as you like.