Add Cue type/notes to selectedCueGrid

This commit is contained in:
2020-09-10 12:24:54 -05:00
parent c66a5384c3
commit 27fb706d36
6 changed files with 125 additions and 9 deletions
@@ -3,6 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:qui="clr-namespace:qController.UI"
mc:Ignorable="d"
x:Class="qController.WorkspacePage">
<Grid RowSpacing="0">
@@ -12,10 +13,11 @@
</Grid.RowDefinitions>
<qui:QSelectedCueGrid x:Name="selectedCueGrid"
Grid.Row="0"/>
<Grid x:Name="selectedCueGrid"
<!--<Grid x:Name="selectedCueGrid2"
Grid.Row="0"
RowSpacing="0"
BackgroundColor="#D8D8D8">
@@ -34,7 +36,6 @@
</Grid.ColumnDefinitions>
<Frame Grid.RowSpan="3" Grid.ColumnSpan="5" BorderColor="Black" BackgroundColor="Transparent"/>
<ActivityIndicator x:Name="workspaceLoadingIndicator" Grid.Row="1" HeightRequest="20"/>
<Label Grid.Row ="0"
Grid.Column="0"
@@ -52,7 +53,7 @@
VerticalOptions="CenterAndExpand"
HorizontalOptions="CenterAndExpand"
FontSize="Large"/>
</Grid>
</Grid>-->
<ScrollView x:Name="cueListScrollView"
Grid.Row="1">
@@ -61,8 +61,9 @@ namespace qController
{
Device.BeginInvokeOnMainThread(() =>
{
selectedCueGrid.BindingContext = new QCueViewModel(connectedWorkspace.cueWithID(args.cueID), false);
QCue selectedCue = connectedWorkspace.cueWithID(args.cueID);
connectedWorkspace.fetchDefaultPropertiesForCue(selectedCue);
selectedCueGrid.BindingContext = new QCueViewModel(selectedCue, false);
if (cueGridDict.ContainsKey(args.cueID))
{
var cueGrid = cueGridDict[args.cueID]; //element to scroll to