Skip to content

Commit

Permalink
Improved tenant id help.
Browse files Browse the repository at this point in the history
  • Loading branch information
wobba committed Apr 19, 2021
1 parent abd3196 commit fb11f1f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@
Padding="4"
Text="http://localhost"
LostFocus="SharePointSiteUrlTextBox_LostFocus"
TextAlignment="Left" />
TextAlignment="Left" Width="220" />
</DockPanel>

<StackPanel Grid.Row="1" Margin="0,10,0,0" HorizontalAlignment="Stretch" Orientation="Horizontal">
Expand All @@ -1143,11 +1143,14 @@
Margin="5,0,5,1"
Text=""
Padding="4"
TextAlignment="Left" Width="230">
TextAlignment="Left" Width="225">
<TextBox.ToolTip>
<TextBlock><Run Text="Needed for non sharepoint.com domains (contoso.com or guid)."/></TextBlock>
<TextBlock><Run Text="Needed for non sharepoint.com domains (primary domain/guid)."/><LineBreak/><LineBreak/><Run Text="Click the icon to the right to locate your tenant information." /></TextBlock>
</TextBox.ToolTip>
</TextBox>
<Button Padding="0" DataContext="SelectProperties" Click="TenantIdButton_Click" ToolTip="Get tenant id" Cursor="Hand" Height="16" Margin="10,0,0,0" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="{x:Null}">
<Image Source="Images/paste_icon.png" Width="14" Height="14" DockPanel.Dock="Right"/>
</Button>
</StackPanel>

<StackPanel Grid.Row="3" Margin="0,10,0,0" HorizontalAlignment="Stretch" Orientation="Horizontal">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3089,5 +3089,15 @@ private void ClearHistory_Click(object sender, RoutedEventArgs e)
_searchQueryRequest = new SearchQueryRequest();
InitializeControls();
}

private void TenantIdButton_Click(object sender, RoutedEventArgs e)
{
var psi = new ProcessStartInfo
{
FileName = "https://aad.portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/Overview",
UseShellExecute = true
};
Process.Start(psi);
}
}
}

0 comments on commit fb11f1f

Please sign in to comment.