Added main page + started notify icon implementation.
This commit is contained in:
46
BodyshopUploader/Views/Main.xaml
Normal file
46
BodyshopUploader/Views/Main.xaml
Normal file
@@ -0,0 +1,46 @@
|
||||
<Window x:Class="BodyshopUploader.Views.Main"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:BodyshopUploader.Views"
|
||||
mc:Ignorable="d"
|
||||
Title="Main"
|
||||
Height="450"
|
||||
xmlns:vm="clr-namespace:BodyshopUploader.ViewModels"
|
||||
Width="800"
|
||||
xmlns:tb="http://www.hardcodet.net/taskbar"
|
||||
xmlns:p="clr-namespace:BodyshopUploader.Properties">
|
||||
<Window.DataContext>
|
||||
<vm:MainViewModel />
|
||||
</Window.DataContext>
|
||||
<StackPanel>
|
||||
<tb:TaskbarIcon IconSource="../favicon.ico"
|
||||
PopupActivation="LeftClick"
|
||||
MenuActivation="RightClick"
|
||||
ToolTipText="Bodyshop Uploader">
|
||||
<tb:TaskbarIcon.TrayPopup>
|
||||
<Border Background="White"
|
||||
BorderBrush="Orange"
|
||||
BorderThickness="2"
|
||||
Width="160"
|
||||
Height="40">
|
||||
<Button Content="Click Me!"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center" />
|
||||
</Border>
|
||||
</tb:TaskbarIcon.TrayPopup>
|
||||
<tb:TaskbarIcon.ContextMenu>
|
||||
<ContextMenu Background="LightCoral">
|
||||
<MenuItem Header="First Menu Item" />
|
||||
<MenuItem Header="Second Menu Item" />
|
||||
</ContextMenu>
|
||||
</tb:TaskbarIcon.ContextMenu>
|
||||
</tb:TaskbarIcon>
|
||||
<TextBlock>
|
||||
Main Window
|
||||
</TextBlock>
|
||||
<TextBlock Text="{Binding Progress}" />
|
||||
<Button Command="{Binding TestCommand}" />
|
||||
</StackPanel>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user