Skip to content

Commit

Permalink
Move enrollment strings to the resource file
Browse files Browse the repository at this point in the history
  • Loading branch information
vanessagertman committed Apr 26, 2017
1 parent bad3628 commit 334f76b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
4 changes: 4 additions & 0 deletions src/Magpie/Magpie/Resources/Strings.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@
<system:String x:Key="_downloadNow">Download Now</system:String>
<system:String x:Key="_skipVersion">Skip this Version</system:String>
<system:String x:Key="_remindMeLater">Remind Me Later</system:String>
<system:String x:Key="_dontEnroll">I don't want to</system:String>
<system:String x:Key="_enroll">I don't want to</system:String>
<system:String x:Key="_enrollMsg">Please provide your email address to join the {0} Program</system:String>
<system:String x:Key="_eulaMsg" xml:space="preserve">By enrolling in this program you agree with our </system:String>
</ResourceDictionary>
14 changes: 6 additions & 8 deletions src/Magpie/Magpie/Views/EnrollmentWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<TextBlock Margin="5 10 10 10"
DockPanel.Dock="Right"
FontSize="15"
Text="{Binding ChannelName, StringFormat={}Please provide your email address to join the {0} Program}"
Text="{Binding ChannelName, StringFormat={StaticResource _enrollMsg}}"
TextWrapping="Wrap" />
</DockPanel>
<Grid Row="1">
Expand All @@ -50,8 +50,7 @@
FontSize="14"
Padding="32 4 4 6"
SnapsToDevicePixels="True"
Text="{Binding EmailAddress,
UpdateSourceTrigger=PropertyChanged}" />
Text="{Binding EmailAddress, UpdateSourceTrigger=PropertyChanged}" />
<Image Width="26"
Margin="15 10 0 8"
HorizontalAlignment="Left"
Expand All @@ -61,10 +60,9 @@
<TextBlock Grid.Row="2" Margin="10 5 10 10"
FontSize="13"
Foreground="#555"
Text="By enrolling in this program you agree with our "
Text="{DynamicResource _eulaMsg}"
TextWrapping="Wrap">
<Hyperlink NavigateUri="{Binding EnrollmentEulaUrl}"
RequestNavigate="NavigateUri">
<Hyperlink NavigateUri="{Binding EnrollmentEulaUrl}" RequestNavigate="NavigateUri">
<Run Text="EULA"/>
</Hyperlink>
</TextBlock>
Expand All @@ -82,13 +80,13 @@
Orientation="Horizontal">
<Button
MinWidth="120"
Content="I don't want to"
Content="{DynamicResource _dontEnroll}"
IsCancel="True"
Style="{StaticResource _magpieSecondaryBtn}" Click="CloseWindow" />
<Button Margin="5,0,0,0"
Width="80"
Command="{Binding EnrollCommand}"
Content="Enroll"
Content="{DynamicResource _enroll}"
Click="CloseWindow"
Style="{StaticResource _magpiePrimaryBtn}" />

Expand Down

0 comments on commit 334f76b

Please sign in to comment.