Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Thick-Common
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
Thick-Common
Commits
9c59bf6a
Commit
9c59bf6a
authored
Jun 10, 2020
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加 Prompt 提示输入框
parent
88b4c13d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
74 additions
and
0 deletions
+74
-0
FLY.ControlLibrary.csproj
...ntrolLibrary/FLY.ControlLibrary/FLY.ControlLibrary.csproj
+7
-0
Prompt.xaml
Project.FLY.ControlLibrary/FLY.ControlLibrary/Prompt.xaml
+27
-0
Prompt.xaml.cs
Project.FLY.ControlLibrary/FLY.ControlLibrary/Prompt.xaml.cs
+40
-0
No files found.
Project.FLY.ControlLibrary/FLY.ControlLibrary/FLY.ControlLibrary.csproj
View file @
9c59bf6a
...
...
@@ -120,6 +120,9 @@
<Compile
Include=
"UI.OSK\WdNumKeyboard.xaml.cs"
>
<DependentUpon>
WdNumKeyboard.xaml
</DependentUpon>
</Compile>
<Compile
Include=
"Prompt.xaml.cs"
>
<DependentUpon>
Prompt.xaml
</DependentUpon>
</Compile>
<Compile
Include=
"WindowBigClose.cs"
/>
<Compile
Include=
"Window_Tip.xaml.cs"
>
<DependentUpon>
Window_Tip.xaml
</DependentUpon>
...
...
@@ -238,6 +241,10 @@
<SubType>
Designer
</SubType>
<Generator>
MSBuild:Compile
</Generator>
</Page>
<Page
Include=
"Prompt.xaml"
>
<Generator>
MSBuild:Compile
</Generator>
<SubType>
Designer
</SubType>
</Page>
<Page
Include=
"Window_Tip.xaml"
>
<Generator>
MSBuild:Compile
</Generator>
<SubType>
Designer
</SubType>
...
...
Project.FLY.ControlLibrary/FLY.ControlLibrary/Prompt.xaml
0 → 100644
View file @
9c59bf6a
<flyctrllib:WindowBigClose
x:Class="FLY.ControlLibrary.Prompt"
xmlns:flyctrllib="clr-namespace:FLY.ControlLibrary"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
SizeToContent="WidthAndHeight">
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<Grid TextBlock.FontSize="24" TextBlock.FontStyle="Normal" Background="WhiteSmoke">
<StackPanel Orientation="Vertical" Margin="5" MinWidth="400">
<TextBlock x:Name="textblock_message" Text="message" FontSize="40" Margin="10,40,10,10" />
<TextBox x:Name="textbox_input" Style="{StaticResource TextBoxStyle_FieldContent}" Tag="Full" Width="auto" Margin="10,10,10,40" />
<Button Style="{StaticResource ButtonStyle_apply}" Click="button_ok_Click"/>
</StackPanel>
</Grid>
</flyctrllib:WindowBigClose >
Project.FLY.ControlLibrary/FLY.ControlLibrary/Prompt.xaml.cs
0 → 100644
View file @
9c59bf6a
using
System.Windows
;
namespace
FLY.ControlLibrary
{
/// <summary>
/// 提示输入文本框
/// </summary>
public
partial
class
Prompt
:
WindowBigClose
{
public
Prompt
()
{
InitializeComponent
();
}
public
static
bool
Show
(
string
message
,
ref
string
input
)
{
Prompt
mb
=
new
Prompt
();
mb
.
textblock_message
.
Text
=
message
;
mb
.
textbox_input
.
Text
=
input
;
mb
.
Owner
=
Application
.
Current
.
MainWindow
;
if
(
mb
.
ShowDialog
()
==
true
)
{
input
=
mb
.
textbox_input
.
Text
;
return
true
;
}
else
{
return
false
;
}
}
private
void
button_ok_Click
(
object
sender
,
RoutedEventArgs
e
)
{
this
.
DialogResult
=
true
;
this
.
Close
();
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment