Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
Text="Enable all"
VerticalOptions="Center" />
</Grid>
<VerticalStackLayout HeightRequest="130" WidthRequest="250">
<VerticalStackLayout HeightRequest="130">
<Grid ColumnSpacing="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
Expand Down Expand Up @@ -224,8 +224,7 @@
</Grid>
<CollectionView x:Name="PointSnapSettingsList"
HeightRequest="150"
ItemTemplate="{StaticResource SnapSettingTemplate}"
WidthRequest="250" />
ItemTemplate="{StaticResource SnapSettingTemplate}" />
<Grid Margin="0,10,0,0" ColumnDefinitions="0.5*,auto">
<Label Grid.Column="0"
Text="Polyline layers:"
Expand All @@ -239,15 +238,13 @@
</Grid>
<CollectionView x:Name="PolylineSnapSettingsList"
HeightRequest="90"
ItemTemplate="{StaticResource SnapSettingTemplate}"
WidthRequest="250" />
ItemTemplate="{StaticResource SnapSettingTemplate}" />
<Grid Margin="0,10,0,0">
<Label Text="Graphics overlays:" VerticalOptions="Center" />
</Grid>
<CollectionView x:Name="GraphicsOverlaySnapSettingsList"
HeightRequest="60"
ItemTemplate="{StaticResource SnapSettingTemplate}"
WidthRequest="250" />
ItemTemplate="{StaticResource SnapSettingTemplate}" />
</VerticalStackLayout>
</ScrollView>
</Border>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,14 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:ArcGIS.Samples.FilterBuildingSceneLayer"
xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Maui;assembly=Esri.ArcGISRuntime.Maui">
<Grid>
<Grid Style="{DynamicResource EsriSampleContainer}">
<!-- LocalSceneView displays the 3D building scene. -->
<esriUI:LocalSceneView x:Name="MySceneView" />
<esriUI:LocalSceneView x:Name="MySceneView" Style="{DynamicResource EsriSampleGeoView}" />

<!-- Settings panel for floor filtering and category visibility controls. -->
<Border
x:Name="SettingsPanel"
Margin="10"
Padding="16"
HeightRequest="300"
HorizontalOptions="End"
Style="{DynamicResource EsriSampleControlPanel}"
VerticalOptions="Start"
WidthRequest="250">
Style="{DynamicResource EsriSampleControlPanel}">
<ScrollView>
<VerticalStackLayout Spacing="12">
<!-- Floor selection dropdown. -->
Expand Down Expand Up @@ -56,13 +50,8 @@
<!-- Feature attributes panel, shown when a feature is selected. -->
<Border
x:Name="FeaturePanel"
Margin="10"
Padding="16"
HorizontalOptions="End"
IsVisible="False"
Style="{DynamicResource EsriSampleControlPanel}"
VerticalOptions="Start"
WidthRequest="250">
Style="{DynamicResource EsriSampleControlPanel}">

<Grid RowDefinitions="Auto,*" RowSpacing="8">
<!-- Header with close button. -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ private async Task Initialize()
PopulateFloorPicker();
PopulateCategoryControls();

// Toggle visiibility after content load
SettingsPanel.IsVisible = false;
SettingsPanel.IsVisible = true;

// Listen for taps on the scene view to identify features.
MySceneView.GeoViewTapped += MySceneView_GeoViewTapped;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ private void OnFlightNumberCancel(object sender, EventArgs e)
FlightNumberDialog.IsVisible = false;
FlightNumberInput.Text = string.Empty;
QueryDropdown.SelectedIndex = -1;
QueryDropdown.IsVisible = true;
QueryControlPanel.IsVisible = true;
}

// Toggles visibility of flight detail information in the results list.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
HeightRequest="300"
VerticalScrollBarVisibility="Default">
<CollectionView.Header>
<Grid ColumnDefinitions="Auto, Auto, Auto"
ColumnSpacing="25"
HorizontalOptions="Center">
<Grid Margin="5,0"
ColumnDefinitions="75, *, *"
HorizontalOptions="Fill">
<Label Grid.Column="0"
FontAttributes="Bold"
Text="Phase" />
Expand All @@ -46,15 +46,14 @@
</CollectionView.Header>
<CollectionView.ItemTemplate>
<DataTemplate x:DataType="local:PhaseSummary">
<Grid Margin="5"
ColumnDefinitions="100, 50, 175"
HorizontalOptions="Center">
<Label Text="{Binding Phase}" />
<Grid Margin="5,0"
ColumnDefinitions="75, *, *"
HorizontalOptions="Fill">
<Label Grid.Column="0"
Text="{Binding Phase}" />
<Label Grid.Column="1"
HorizontalOptions="Center"
Text="{Binding TotalCustomers}" />
<Label Grid.Column="2"
HorizontalOptions="Center"
Text="{Binding TotalLoad}" />
</Grid>
</DataTemplate>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@
Margin="10"
Background="{AppThemeBinding Dark=Black,
Light=White}"
HorizontalOptions="Center"
HorizontalOptions="{OnIdiom Phone=Fill, Default=Center}"
IsVisible="False"
HeightRequest="250"
MaximumHeightRequest="250"
StrokeShape="RoundRectangle 10"
VerticalOptions="Center"
WidthRequest="300">
WidthRequest="{OnIdiom Phone=-1, Default=300}">
<ScrollView>
<StackLayout Padding="10" Spacing="10">
<Label Padding="0,5"
Expand Down
Loading