mirror of
https://github.com/jwetzell/QControlKit.git
synced 2026-08-18 13:44:09 +00:00
Selected Cue Styling
This commit is contained in:
@@ -16,7 +16,6 @@
|
|||||||
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
|
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
|
||||||
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
|
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
|
||||||
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
|
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
|
||||||
<AndroidUseLatestPlatformSdk>false</AndroidUseLatestPlatformSdk>
|
|
||||||
<TargetFrameworkVersion>v9.0</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v9.0</TargetFrameworkVersion>
|
||||||
<AndroidEnableSGenConcurrent>true</AndroidEnableSGenConcurrent>
|
<AndroidEnableSGenConcurrent>true</AndroidEnableSGenConcurrent>
|
||||||
<AndroidUseAapt2>true</AndroidUseAapt2>
|
<AndroidUseAapt2>true</AndroidUseAapt2>
|
||||||
@@ -97,7 +96,7 @@
|
|||||||
<Name>QSharp</Name>
|
<Name>QSharp</Name>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
<ProjectReference Include="..\QSharpXamDemo\QSharpXamDemo.csproj">
|
<ProjectReference Include="..\QSharpXamDemo\QSharpXamDemo.csproj">
|
||||||
<Project>{48097AD8-2188-4F99-8092-E4EFD7571268}</Project>
|
<Project>{20D2D0D8-A518-42DC-BAB8-CF098CDF03C4}</Project>
|
||||||
<Name>QSharpXamDemo</Name>
|
<Name>QSharpXamDemo</Name>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|||||||
@@ -22,14 +22,42 @@
|
|||||||
|
|
||||||
<Grid x:Name="selectedCueGrid"
|
<Grid x:Name="selectedCueGrid"
|
||||||
Grid.Row="0"
|
Grid.Row="0"
|
||||||
RowSpacing="0">
|
RowSpacing="0"
|
||||||
|
BackgroundColor="#D8D8D8">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="*"/>
|
<RowDefinition Height="*"/>
|
||||||
<RowDefinition Height="*"/>
|
<RowDefinition Height="*"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<Frame Grid.RowSpan="2" BorderColor="Black"/>
|
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Frame Grid.RowSpan="3" Grid.ColumnSpan="5" BorderColor="Black" BackgroundColor="Transparent"/>
|
||||||
<ActivityIndicator x:Name="workspaceLoadingIndicator" Grid.Row="1" HeightRequest="20"/>
|
<ActivityIndicator x:Name="workspaceLoadingIndicator" Grid.Row="1" HeightRequest="20"/>
|
||||||
<Label Grid.Row ="0" Text="{Binding name}" VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand"/>
|
|
||||||
|
<Label Grid.Row ="0"
|
||||||
|
Grid.Column="0"
|
||||||
|
Text="{Binding number}"
|
||||||
|
d:Text="100"
|
||||||
|
VerticalOptions="CenterAndExpand"
|
||||||
|
HorizontalOptions="CenterAndExpand"
|
||||||
|
FontSize="Medium"/>
|
||||||
|
|
||||||
|
<Label Grid.Row ="1"
|
||||||
|
Grid.Column="0"
|
||||||
|
Grid.ColumnSpan="5"
|
||||||
|
Text="{Binding name}"
|
||||||
|
d:Text="Cue 1"
|
||||||
|
VerticalOptions="CenterAndExpand"
|
||||||
|
HorizontalOptions="CenterAndExpand"
|
||||||
|
FontSize="Large"/>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
@@ -1,21 +1,13 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Data;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Net.Http.Headers;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Xml;
|
|
||||||
using QSharp;
|
using QSharp;
|
||||||
using QSharpXamDemo.ViewModels;
|
using QSharpXamDemo.ViewModels;
|
||||||
using Serilog;
|
using Serilog;
|
||||||
using Xamarin.Essentials;
|
|
||||||
using Xamarin.Forms;
|
using Xamarin.Forms;
|
||||||
using Xamarin.Forms.Xaml;
|
|
||||||
|
|
||||||
namespace QSharpXamDemo
|
namespace QSharpXamDemo
|
||||||
{
|
{
|
||||||
[XamlCompilation(XamlCompilationOptions.Compile)]
|
|
||||||
public partial class CueListPage : ContentPage
|
public partial class CueListPage : ContentPage
|
||||||
{
|
{
|
||||||
private QWorkspace connectedWorkspace;
|
private QWorkspace connectedWorkspace;
|
||||||
@@ -76,15 +68,16 @@ namespace QSharpXamDemo
|
|||||||
{
|
{
|
||||||
BindingContext = qCueViewModel,
|
BindingContext = qCueViewModel,
|
||||||
HorizontalOptions = LayoutOptions.StartAndExpand,
|
HorizontalOptions = LayoutOptions.StartAndExpand,
|
||||||
VerticalTextAlignment = TextAlignment.Center
|
VerticalTextAlignment = TextAlignment.Center,
|
||||||
};
|
};
|
||||||
cueLabel.SetBinding(Label.TextProperty, "name", BindingMode.OneWay);
|
cueLabel.SetBinding(Label.TextProperty, "name", BindingMode.OneWay);
|
||||||
var cueBackground = new Frame
|
var cueBackground = new Frame
|
||||||
{
|
{
|
||||||
BindingContext = qCueViewModel,
|
BindingContext = qCueViewModel,
|
||||||
Opacity = 0.75,
|
Opacity = 0.60,
|
||||||
HasShadow = false,
|
HasShadow = false,
|
||||||
CornerRadius = 0,
|
CornerRadius = 0,
|
||||||
|
BorderColor = Color.Black
|
||||||
};
|
};
|
||||||
cueBackground.SetBinding(BackgroundColorProperty, "color",BindingMode.OneWay);
|
cueBackground.SetBinding(BackgroundColorProperty, "color",BindingMode.OneWay);
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ namespace QSharpXamDemo.ViewModels
|
|||||||
public string name {
|
public string name {
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return cue.nonEmptyName;
|
return cue.displayName;
|
||||||
}
|
}
|
||||||
|
|
||||||
set
|
set
|
||||||
@@ -38,6 +38,19 @@ namespace QSharpXamDemo.ViewModels
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string number
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return cue.number;
|
||||||
|
}
|
||||||
|
|
||||||
|
set
|
||||||
|
{
|
||||||
|
cue.number = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public Color color
|
public Color color
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|||||||
@@ -31,6 +31,19 @@ namespace QSharpXamDemo.ViewModels
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string number
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return cue.number;
|
||||||
|
}
|
||||||
|
|
||||||
|
set
|
||||||
|
{
|
||||||
|
cue.number = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public Color color
|
public Color color
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|||||||
Reference in New Issue
Block a user