File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 9
9
global using System . Collections . Generic ;
10
10
global using System . Collections . ObjectModel ;
11
11
global using System . ComponentModel ;
12
- global using System . IO ;
13
12
global using System . Linq ;
14
13
global using System . Runtime . CompilerServices ;
15
14
global using System . Runtime . InteropServices ;
Original file line number Diff line number Diff line change 36
36
Style =" {StaticResource TitleTextBlockStyle}" />
37
37
<!-- General -->
38
38
<TextBlock Style =" {StaticResource SettingsSectionHeaderTextBlockStyle}" Text =" General" />
39
+ <toolkitc : SettingsCard Header =" Set as default" >
40
+ <toolkitc : SettingsCard .HeaderIcon>
41
+ <FontIcon Glyph ="  " />
42
+ </toolkitc : SettingsCard .HeaderIcon>
43
+ <Button Click =" SetAsDefaultButton_Click" Content =" Set as default" />
44
+ </toolkitc : SettingsCard >
39
45
<toolkitc : SettingsCard x : Uid =" SearchEngine" HeaderIcon =" Find" >
40
46
<ComboBox x : Name =" SearchEngineSelector" >
41
47
<ComboBox .ItemTemplate>
Original file line number Diff line number Diff line change @@ -54,6 +54,11 @@ protected override void OnNavigatedTo(NavigationEventArgs e)
54
54
PasswordLockToggle . Toggled += PasswordLockToggle_Toggled ;
55
55
}
56
56
57
+ private async void SetAsDefaultButton_Click ( object sender , RoutedEventArgs e )
58
+ {
59
+ await Launcher . LaunchUriAsync ( new Uri ( "ms-settings:defaultapps?registeredAUMID=57443TechFireX.BlueBirdBrowser_zf5p29k4fpw22!App" ) ) ;
60
+ }
61
+
57
62
private void SearchEngineSelector_SelectionChanged ( object sender , SelectionChangedEventArgs e )
58
63
{
59
64
SearchEngine engine = e . AddedItems [ 0 ] as SearchEngine ;
You can’t perform that action at this time.
0 commit comments