|
@@ -1227,7 +1227,7 @@ namespace comal.timesheets.QAForms
|
|
|
string value = "";
|
|
|
bool disableLibrary = false;
|
|
|
DFLayoutVideoField vidField = element as DFLayoutVideoField;
|
|
|
-
|
|
|
+
|
|
|
EmbeddedImageCapture embeddedImageCapture = new EmbeddedImageCapture(false, true);
|
|
|
|
|
|
embeddedImageCapture.VideoQuality =
|
|
@@ -1237,8 +1237,8 @@ namespace comal.timesheets.QAForms
|
|
|
vidField.Properties.Quality == DFLayoutVideoFieldProperties.VideoQuality.Default ? Plugin.Media.Abstractions.VideoQuality.Medium :
|
|
|
Plugin.Media.Abstractions.VideoQuality.Medium;
|
|
|
|
|
|
- embeddedImageCapture.VideoLength =
|
|
|
- vidField.Properties.MaximumVideoLength == 0? new TimeSpan(0, 0, 20) :
|
|
|
+ embeddedImageCapture.VideoLength =
|
|
|
+ vidField.Properties.MaximumVideoLength == 0 ? new TimeSpan(0, 0, 20) :
|
|
|
new TimeSpan(0, 0, vidField.Properties.MaximumVideoLength);
|
|
|
|
|
|
if (loadData.TryGetValue(vidField.Name, out value))
|
|
@@ -1381,12 +1381,19 @@ namespace comal.timesheets.QAForms
|
|
|
view = frame;
|
|
|
}
|
|
|
|
|
|
- if (element.Row > 0) SetRow(view, element.Row - 1); //rows and columns coming in from the desktop designer start from 1, not 0 (most of the time??)
|
|
|
- else if (element.Row == 0) SetRow(view, dfLayout.RowHeights.Count + 1);
|
|
|
- if (element.RowSpan > 0) SetRowSpan(view, element.RowSpan);
|
|
|
- else if (element.RowSpan == 0) SetRowSpan(view, 1);
|
|
|
- if (element.Column > 0) SetColumn(view, element.Column - 1); //rows and columns coming in from the desktop designer start from 1, not 0 (most of the time??)
|
|
|
- if (element.ColumnSpan > 0) SetColumnSpan(view, element.ColumnSpan);
|
|
|
+ if (element.Row > 0)
|
|
|
+ SetRow(view, element.Row - 1); //rows and columns coming in from the desktop designer start from 1, not 0 (most of the time??)
|
|
|
+ else if (element.Row == 0)
|
|
|
+ SetRow(view, dfLayout.RowHeights.Count + 1);
|
|
|
+ if (element.RowSpan > 0)
|
|
|
+ SetRowSpan(view, element.RowSpan);
|
|
|
+ else if (element.RowSpan == 0)
|
|
|
+ SetRowSpan(view, 1);
|
|
|
+ if (element.Column > 0)
|
|
|
+ SetColumn(view, element.Column - 1); //rows and columns coming in from the desktop designer start from 1, not 0 (most of the time??)
|
|
|
+ if (element.ColumnSpan > 0)
|
|
|
+ SetColumnSpan(view, element.ColumnSpan);
|
|
|
+
|
|
|
if (element.ColumnSpan > 1)
|
|
|
{
|
|
|
view.HorizontalOptions = LayoutOptions.FillAndExpand;
|
|
@@ -1401,12 +1408,14 @@ namespace comal.timesheets.QAForms
|
|
|
else if (element.ColumnSpan == 0) SetColumnSpan(view, 1);
|
|
|
|
|
|
view.SetValue(Grid.MarginProperty, 0.01);
|
|
|
+
|
|
|
if (element is DFLayoutSignaturePad)
|
|
|
- {
|
|
|
view.Margin = new Thickness(25, 0, 25, 0);
|
|
|
- }
|
|
|
|
|
|
- Device.BeginInvokeOnMainThread(() => { Children.Add(view); });
|
|
|
+ Device.BeginInvokeOnMainThread(() =>
|
|
|
+ {
|
|
|
+ Children.Add(view);
|
|
|
+ });
|
|
|
|
|
|
if (element is DFLayoutHeader)
|
|
|
if ((element as DFLayoutHeader).Collapsed)
|