This question is locked. New answers and comments are not allowed.
I have a static lazy-loaded property in App.xaml.cs for the RadTrialApplicationReminder, which sets the AllowUsersToSkipFurtherReminders to false, but when .Notify() is called, it still has the checkbox to let users skip. What I want is that for people that only have the trial to begin seeing the trial reminder after the first run (FreeUsageCount=1), let them only see it once a day (set OccurrencePeriod), but never let them turn it off completely. Am I doing something wrong? I am using version 2012.1 214. Thanks!
private
static
RadTrialApplicationReminder _trialReminder;
public
static
RadTrialApplicationReminder TrialReminder
{
get
{
if
(_trialReminder ==
null
)
{
_trialReminder =
new
RadTrialApplicationReminder()
{
AllowUsersToSkipFurtherReminders =
false
,
OccurrencePeriod =
new
TimeSpan(1, 0, 0, 0),
FreeUsageCount = 1
//TrialReminder.TrialReminderMessageBoxInfo.Content = "";
};
}
return
_trialReminder;
}
}
private
void
Application_Launching(
object
sender, LaunchingEventArgs e)
{
ApplicationUsageHelper.Init(1.1);
// When debugging, we want to simulate a trial mode experience. The following conditional allows us to set the _isTrial
// property to simulate trial mode being on or off.
#if DEBUG
string
message =
"Press 'OK' to simulate trial mode. Press 'Cancel' to run the application in normal mode."
;
if
(MessageBox.Show(message,
"Simulate Trial?"
, MessageBoxButton.OKCancel) == MessageBoxResult.OK)
{
TrialReminder.SimulateTrialForTests =
true
;
}
#endif
TrialReminder.Notify();
}