-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSaveCancelComponent.razor.cs
More file actions
1103 lines (976 loc) · 35.9 KB
/
SaveCancelComponent.razor.cs
File metadata and controls
1103 lines (976 loc) · 35.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#region using statements
using DataJuggler.Blazor.Components.Interfaces;
using Microsoft.AspNetCore.Components;
using DataJuggler.Blazor.Components.Enumerations;
using DataJuggler.Blazor.Components.Delegates;
using System.Drawing;
#endregion
namespace DataJuggler.Blazor.Components
{
#region class SaveCancelComponent
/// <summary>
/// This class is used to Save a Data Entry screen or Cancel and notify the parent
/// </summary>
public partial class SaveCancelComponent : IBlazorComponent, IBlazorComponentParent
{
#region Private Variables
private string unit;
private string heightUnit;
private double buttonHeight;
private string buttonImageUrl;
private ButtonThemeEnum buttonTheme;
private string cancelButtonImageUrl;
private string cancelbuttonStyle;
private string cancelButtonText;
private Color cancelButtonTextColor;
private double cancelButtonWidth;
private string controlStyle;
private double height;
private double left;
private string name;
private OnCancelled onCancelledCallback;
private OnSaved onSavedCallback;
private IBlazorComponentParent parent;
private string position;
private SaveCancelResultEnum result;
private string saveButtonImageUrl;
private string saveButtonStyle;
private string saveButtonText;
private Color saveButtonTextColor;
private double saveButtonWidth;
private Color textColor;
private double top;
private double width;
private double borderWidth;
private Color borderColor;
private double buttonBorderWidth;
private Color buttonBorderColor;
private double buttonBorderRadius;
private Color backgroundColor;
private string backgroundImageUrl;
private double borderRadius;
private string saveButtonClassName;
private string cancelButtonClassName;
private string cancelButtonStyle;
private bool visible;
private string display;
private int zIndex;
private double fontSize;
private string fontName;
private ImageButton cancelButton;
private ImageButton saveButton;
private double cancelButtonLeft;
private double saveButtonleft;
private double buttonTop;
#endregion
#region Constructor
/// <summary>
/// Create a new instance of a 'SaveCancelComponent' object.
/// </summary>
public SaveCancelComponent()
{
// Perform initializations for this object
Init();
}
#endregion
#region Events
#region ButtonClicked(int buttonNumber, string buttonName)
/// <summary>
/// event is fired when Button Clicked
/// </summary>
public void ButtonClicked(int buttonNumber, string buttonName)
{
// if the Save button was clicked and the delegate exists
if ((buttonNumber == 1) && (HasOnSavedCallback))
{
// Notify the parent
OnSavedCallback(Name);
}
else if ((buttonNumber == 2) && (HasOnCancelledCallback))
{
// Notify the parent
OnCancelledCallback(Name);
}
}
#endregion
#endregion
#region Methods
#region Init()
/// <summary>
/// This method performs initializations for this object.
/// </summary>
public void Init()
{
// Set Default Values
Unit = "px";
HeightUnit = "px";
Position = "relative";
Height = 64;
Width = 256;
CancelButtonWidth = 64;
SaveButtonWidth = 64;
ButtonHeight = 32;
BackgroundColor = Color.Transparent;
BorderColor = Color.Transparent;
ButtonBorderColor = Color.Transparent;
ButtonBorderWidth = 0;
ButtonTheme = ButtonThemeEnum.BlackButton;
SaveButtonleft = -8;
FontSize = 14;
FontName = "Calibri";
}
#endregion
#region ReceiveData(Message message)
/// <summary>
/// This method is used to receive messages from other components or pages
/// </summary>
public void ReceiveData(Message message)
{
}
#endregion
#region Refresh()
/// <summary>
/// This method is used to update the UI after changes
/// </summary>
public void Refresh()
{
InvokeAsync(() =>
{
// Refresh
StateHasChanged();
});
}
#endregion
#region Register(IBlazorComponent component)
/// <summary>
/// This method is used to store child controls that are on this component or page
/// </summary>
public void Register(IBlazorComponent component)
{
if (component is ImageButton tempImageButton)
{
// store the ImageButton components
if (component.Name == "SaveButton")
{
SaveButton = tempImageButton;
}
else if (component.Name == "CancelButton")
{
CancelButton = tempImageButton;
}
}
}
#endregion
#region SetButtonTextColor(Color textColor)
/// <summary>
/// Set Button Text Color
/// </summary>
public void SetButtonTextColor(Color textColor)
{
// store
TextColor = textColor;
}
#endregion
#region SetCancelButtonTextColor(Color textColor)
/// <summary>
/// Set Cancel Button Text Color
/// </summary>
public void SetCancelButtonTextColor(Color textColor)
{
// store
CancelButtonTextColor = textColor;
}
#endregion
#region SetSaveButtonTextColor(Color textColor)
/// <summary>
/// Set Save Button Text Color
/// </summary>
public void SetSaveButtonTextColor(Color textColor)
{
// store
SaveButtonTextColor = textColor;
}
#endregion
#region SetupButtons(string imageUrl)
/// <summary>
/// This method will set the same image url for both the Cancel button and the Save button.
/// </summary>
public void SetupButtons(string imageUrl)
{
// Setup the button image url's
SaveButtonImageUrl = imageUrl;
CancelButtonImageUrl = imageUrl;
}
#endregion
#region SetupButtons(string saveButtonImageUrl, string cancelButtonImageUrl)
/// <summary>
/// This method will set the same image url for both the Cancel button and the Save button.
/// </summary>
public void SetupButtons(string saveButtonImageUrl, string cancelButtonImageUrl)
{
// Setup the button image url's
SaveButtonImageUrl = saveButtonImageUrl;
CancelButtonImageUrl = cancelButtonImageUrl;
}
#endregion
#region SetupButtons(ButtonThemeEnum theme)
/// <summary>
/// This method will set the same image url for both the Cancel button and the Save button.
/// </summary>
public void SetupButtons(ButtonThemeEnum theme)
{
// Determine the action by the theme
switch (theme)
{
case ButtonThemeEnum.BlackButton:
// Set Button Image URL's
CancelButtonImageUrl = "_content/DataJuggler.Blazor.Components/Images/Buttons/BlackButton.jpg";
SaveButtonImageUrl = "_content/DataJuggler.Blazor.Components/Images/Buttons/BlackButton.jpg";
// Change TextColor
TextColor = Color.White;
// Required
break;
case ButtonThemeEnum.BlackButtonWide:
// Set Button Image URL's
CancelButtonImageUrl = "_content/DataJuggler.Blazor.Components/Images/Buttons/BlackButtonWide.jpg";
SaveButtonImageUrl = "_content/DataJuggler.Blazor.Components/Images/Buttons/BlackButtonWide.jpg";
// Change TextColor
TextColor = Color.White;
// Required
break;
case ButtonThemeEnum.BlueButton:
// Set Button Image URL's
CancelButtonImageUrl = "_content/DataJuggler.Blazor.Components/Images/Buttons/BlueButton.png";
SaveButtonImageUrl = "_content/DataJuggler.Blazor.Components/Images/Buttons/BlueButton.png";
// Change TextColor
TextColor = Color.White;
// Required
break;
case ButtonThemeEnum.OrangeStone:
// Set Button Image URL's
CancelButtonImageUrl = "_content/DataJuggler.Blazor.Components/Images/Buttons/OrangeStone.png";
SaveButtonImageUrl = "_content/DataJuggler.Blazor.Components/Images/Buttons/OrangeStone.png";
// Change TextColor
TextColor = Color.Black;
// Required
break;
case ButtonThemeEnum.PurpleStone:
// Set Button Image URL's
CancelButtonImageUrl = "_content/DataJuggler.Blazor.Components/Images/Buttons/PurpleStone.png";
SaveButtonImageUrl = "_content/DataJuggler.Blazor.Components/Images/Buttons/PurpleStone.png";
// Change TextColor
TextColor = Color.White;
// Required
break;
case ButtonThemeEnum.RedGlass:
// Set Button Image URL's
CancelButtonImageUrl = "_content/DataJuggler.Blazor.Components/Images/Buttons/RedGlass.png";
SaveButtonImageUrl = "_content/DataJuggler.Blazor.Components/Images/Buttons/RedGlass.png";
// Change TextColor
TextColor = Color.White;
// Required
break;
case ButtonThemeEnum.TanButton:
// Set Button Image URL's
CancelButtonImageUrl = "_content/DataJuggler.Blazor.Components/Images/Buttons/TanStone.png";
SaveButtonImageUrl = "_content/DataJuggler.Blazor.Components/Images/Buttons/TanStone.png";
// Change TextColor
TextColor = Color.Black;
// Required
break;
}
}
#endregion
#endregion
#region Properties
#region BackgroundColor
/// <summary>
/// This property gets or sets the value for 'BackgroundColor'.
/// </summary>
[Parameter]
public Color BackgroundColor
{
get { return backgroundColor; }
set { backgroundColor = value; }
}
#endregion
#region BackgroundImageUrl
/// <summary>
/// This property gets or sets the value for 'BackgroundImageUrl'.
/// </summary>
[Parameter]
public string BackgroundImageUrl
{
get { return backgroundImageUrl; }
set { backgroundImageUrl = value; }
}
#endregion
#region BorderColor
/// <summary>
/// This property gets or sets the value for 'BorderColor'.
/// </summary>
[Parameter]
public Color BorderColor
{
get { return borderColor; }
set { borderColor = value; }
}
#endregion
#region BorderRadius
/// <summary>
/// This property gets or sets the value for 'BorderRadius'.
/// </summary>
[Parameter]
public double BorderRadius
{
get { return borderRadius; }
set { borderRadius = value; }
}
#endregion
#region BorderWidth
/// <summary>
/// This property gets or sets the value for 'BorderWidth'.
/// </summary>
[Parameter]
public double BorderWidth
{
get { return borderWidth; }
set { borderWidth = value; }
}
#endregion
#region ButtonBorderColor
/// <summary>
/// This property gets or sets the value for 'ButtonBorderColor'.
/// </summary>
[Parameter]
public Color ButtonBorderColor
{
get { return buttonBorderColor; }
set { buttonBorderColor = value; }
}
#endregion
#region ButtonBorderRadius
/// <summary>
/// This property gets or sets the value for 'ButtonBorderRadius'.
/// </summary>
[Parameter]
public double ButtonBorderRadius
{
get { return buttonBorderRadius; }
set { buttonBorderRadius = value; }
}
#endregion
#region ButtonBorderWidth
/// <summary>
/// This property gets or sets the value for 'ButtonBorderWidth'.
/// </summary>
[Parameter]
public double ButtonBorderWidth
{
get { return buttonBorderWidth; }
set { buttonBorderWidth = value; }
}
#endregion
#region ButtonHeight
/// <summary>
/// This property gets or sets the value for 'ButtonHeight'.
/// </summary>
[Parameter]
public double ButtonHeight
{
get { return buttonHeight; }
set { buttonHeight = value; }
}
#endregion
#region ButtonImageUrl
/// <summary>
/// This property gets or sets the value for 'ButtonImageUrl'.
/// </summary>
[Parameter]
public string ButtonImageUrl
{
get { return buttonImageUrl; }
set
{
// set the value
buttonImageUrl = value;
// Set both buttons
CancelButtonImageUrl = value;
SaveButtonImageUrl = value;
}
}
#endregion
#region ButtonTheme
/// <summary>
/// This property gets or sets the value for 'ButtonTheme'.
/// </summary>
[Parameter]
public ButtonThemeEnum ButtonTheme
{
get { return buttonTheme; }
set
{
// set the value
buttonTheme = value;
// Setup the Button Themes
SetupButtons(value);
}
}
#endregion
#region ButtonTop
/// <summary>
/// This property gets or sets the value for 'ButtonTop'.
/// </summary>
[Parameter]
public double ButtonTop
{
get { return buttonTop; }
set { buttonTop = value; }
}
#endregion
#region CancelButton
/// <summary>
/// This property gets or sets the value for 'CancelButton'.
/// </summary>
public ImageButton CancelButton
{
get { return cancelButton; }
set { cancelButton = value; }
}
#endregion
#region CancelButtonClassName
/// <summary>
/// This property gets or sets the value for 'CancelButtonClassName'.
/// </summary>
[Parameter]
public string CancelButtonClassName
{
get { return cancelButtonClassName; }
set { cancelButtonClassName = value; }
}
#endregion
#region CancelButtonImageUrl
/// <summary>
/// This property gets or sets the value for 'CancelButtonImageUrl'.
/// </summary>
[Parameter]
public string CancelButtonImageUrl
{
get { return cancelButtonImageUrl; }
set { cancelButtonImageUrl = value; }
}
#endregion
#region CancelButtonLeft
/// <summary>
/// This property gets or sets the value for 'CancelButtonLeft'.
/// </summary>
[Parameter]
public double CancelButtonLeft
{
get { return cancelButtonLeft; }
set { cancelButtonLeft = value; }
}
#endregion
#region CancelbuttonStyle
/// <summary>
/// This property gets or sets the value for 'CancelbuttonStyle'.
/// </summary>
public string CancelbuttonStyle
{
get { return cancelbuttonStyle; }
set { cancelbuttonStyle = value; }
}
#endregion
#region CancelButtonText
/// <summary>
/// This property gets or sets the value for 'CancelButtonText'.
/// </summary>
[Parameter]
public string CancelButtonText
{
get { return cancelButtonText; }
set { cancelButtonText = value; }
}
#endregion
#region CancelButtonTextColor
/// <summary>
/// This property gets or sets the value for 'CancelButtonTextColor'.
/// </summary>
[Parameter]
public Color CancelButtonTextColor
{
get { return cancelButtonTextColor; }
set { cancelButtonTextColor = value; }
}
#endregion
#region CancelButtonWidth
/// <summary>
/// This property gets or sets the value for 'CancelButtonWidth'.
/// </summary>
[Parameter]
public double CancelButtonWidth
{
get { return cancelButtonWidth; }
set { cancelButtonWidth = value; }
}
#endregion
#region ControlStyle
/// <summary>
/// This property gets or sets the value for 'ControlStyle'.
/// </summary>
public string ControlStyle
{
get { return controlStyle; }
set { controlStyle = value; }
}
#endregion
#region Display
/// <summary>
/// This property gets or sets the value for 'Display'.
/// </summary>
public string Display
{
get { return display; }
set { display = value; }
}
#endregion
#region FontName
/// <summary>
/// This property gets or sets the value for 'FontName'.
/// </summary>
[Parameter]
public string FontName
{
get { return fontName; }
set { fontName = value; }
}
#endregion
#region FontSize
/// <summary>
/// This property gets or sets the value for 'FontSize'.
/// </summary>
[Parameter]
public double FontSize
{
get { return fontSize; }
set { fontSize = value; }
}
#endregion
#region HasCancelButton
/// <summary>
/// This property returns true if this object has a 'CancelButton'.
/// </summary>
public bool HasCancelButton
{
get
{
// initial value
bool hasCancelButton = (CancelButton != null);
// return value
return hasCancelButton;
}
}
#endregion
#region HasOnCancelledCallback
/// <summary>
/// This property returns true if this object has an 'OnCancelledCallback'.
/// </summary>
public bool HasOnCancelledCallback
{
get
{
// initial value
bool hasOnCancelledCallback = (OnCancelledCallback != null);
// return value
return hasOnCancelledCallback;
}
}
#endregion
#region HasOnSavedCallback
/// <summary>
/// This property returns true if this object has an 'OnSavedCallback'.
/// </summary>
public bool HasOnSavedCallback
{
get
{
// initial value
bool hasOnSavedCallback = (OnSavedCallback != null);
// return value
return hasOnSavedCallback;
}
}
#endregion
#region HasSaveButton
/// <summary>
/// This property returns true if this object has a 'SaveButton'.
/// </summary>
public bool HasSaveButton
{
get
{
// initial value
bool hasSaveButton = (SaveButton != null);
// return value
return hasSaveButton;
}
}
#endregion
#region Height
/// <summary>
/// This property gets or sets the value for 'Height'.
/// This is the Height for this entire control.
/// </summary>
[Parameter]
public double Height
{
get { return height; }
set { height = value; }
}
#endregion
#region HeightStyle
/// <summary>
/// This read only property returns the value of Height + Unit
/// </summary>
public string HeightStyle
{
get
{
// initial value
string heightStyle = Height + HeightUnit;
// return value
return heightStyle;
}
}
#endregion
#region HeightUnit
/// <summary>
/// This property gets or sets the value for 'HeightUnit'.
/// </summary>
[Parameter]
public string HeightUnit
{
get { return heightUnit; }
set { heightUnit = value; }
}
#endregion
#region Left
/// <summary>
/// This property gets or sets the value for 'Left'.
/// </summary>
[Parameter]
public double Left
{
get { return left; }
set { left = value; }
}
#endregion
#region LeftStyle
/// <summary>
/// This read only property returns the value of Left + Unit
/// </summary>
public string LeftStyle
{
get
{
// initial value
string leftStyle = Left + Unit;
// return value
return leftStyle;
}
}
#endregion
#region Name
/// <summary>
/// This property gets or sets the value for Name
/// </summary>
[Parameter]
public string Name
{
get
{
return name;
}
set
{
name = value;
}
}
#endregion
#region OnCancelledCallback
/// <summary>
/// This property gets or sets the value for 'OnCancelledCallback'.
/// </summary>
[Parameter]
public OnCancelled OnCancelledCallback
{
get { return onCancelledCallback; }
set { onCancelledCallback = value; }
}
#endregion
#region OnSavedCallback
/// <summary>
/// This property gets or sets the value for 'OnSavedCallback'.
/// </summary>
[Parameter]
public OnSaved OnSavedCallback
{
get { return onSavedCallback; }
set { onSavedCallback = value; }
}
#endregion
#region Parent
/// <summary>
/// This property gets or sets the value for Parent
/// </summary>
[Parameter]
public IBlazorComponentParent Parent
{
get
{
return parent;
}
set
{
parent = value;
// If the parent exists
if (parent != null)
{
// register with the parent
parent.Register(this);
}
}
}
#endregion
#region Position
/// <summary>
/// This property gets or sets the value for 'Position'.
/// </summary>
[Parameter]
public string Position
{
get { return position; }
set { position = value; }
}
#endregion
#region Result
/// <summary>
/// This property gets or sets the value for 'Result'.
/// </summary>
public SaveCancelResultEnum Result
{
get { return result; }
set { result = value; }
}
#endregion
#region SaveButton
/// <summary>
/// This property gets or sets the value for 'SaveButton'.
/// </summary>
public ImageButton SaveButton
{
get { return saveButton; }
set { saveButton = value; }
}
#endregion
#region SaveButtonClassName
/// <summary>
/// This property gets or sets the value for 'SaveButtonClassName'.
/// </summary>
[Parameter]
public string SaveButtonClassName
{
get { return saveButtonClassName; }
set { saveButtonClassName = value; }
}
#endregion
#region SaveButtonImageUrl
/// <summary>
/// This property gets or sets the value for 'SaveButtonImageUrl'.
/// </summary>
[Parameter]
public string SaveButtonImageUrl
{
get { return saveButtonImageUrl; }
set { saveButtonImageUrl = value; }
}
#endregion
#region SaveButtonleft
/// <summary>
/// This property gets or sets the value for 'SaveButtonleft'.
/// </summary>
[Parameter]
public double SaveButtonleft
{
get { return saveButtonleft; }
set { saveButtonleft = value; }
}
#endregion
#region SaveButtonStyle
/// <summary>
/// This property gets or sets the value for 'SaveButtonStyle'.
/// </summary>
public string SaveButtonStyle
{
get { return saveButtonStyle; }
set { saveButtonStyle = value; }
}
#endregion
#region SaveButtonText
/// <summary>
/// This property gets or sets the value for 'SaveButtonText'.
/// </summary>
[Parameter]
public string SaveButtonText
{
get { return saveButtonText; }
set { saveButtonText = value; }
}
#endregion
#region SaveButtonTextColor
/// <summary>
/// This property gets or sets the value for 'SaveButtonTextColor'.
/// </summary>
[Parameter]
public Color SaveButtonTextColor
{
get { return saveButtonTextColor; }
set { saveButtonTextColor = value; }
}
#endregion
#region SaveButtonWidth
/// <summary>
/// This property gets or sets the value for 'SaveButtonWidth'.
/// </summary>
[Parameter]
public double SaveButtonWidth
{
get { return saveButtonWidth; }
set { saveButtonWidth = value; }
}
#endregion
#region TextColor
/// <summary>
/// This property gets or sets the value for 'TextColor'.
/// </summary>
[Parameter]
public Color TextColor
{
get { return textColor; }
set
{
// set the value
textColor = value;
// Set Both
CancelButtonTextColor = Color.White;
SaveButtonTextColor = Color.White;
}
}
#endregion
#region Top
/// <summary>
/// This property gets or sets the value for 'Top'.
/// </summary>
[Parameter]
public double Top
{
get { return top; }
set { top = value; }
}
#endregion
#region TopStyle
/// <summary>
/// This read only property returns the value of Top + Unit
/// </summary>
public string TopStyle