mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-19 04:57:53 +00:00
Right and left click both will now open the context menu on Windows
This commit is contained in:
parent
af4e79735c
commit
aa2ee3f7be
@ -20,7 +20,8 @@
|
|||||||
<Grid>
|
<Grid>
|
||||||
<tb:TaskbarIcon x:Name="MyNotifyIcon"
|
<tb:TaskbarIcon x:Name="MyNotifyIcon"
|
||||||
IconSource="ZeroTierIcon.ico"
|
IconSource="ZeroTierIcon.ico"
|
||||||
ToolTipText="ZeroTier One">
|
ToolTipText="ZeroTier One"
|
||||||
|
MenuActivation="LeftOrRightClick">
|
||||||
<tb:TaskbarIcon.ContextMenu>
|
<tb:TaskbarIcon.ContextMenu>
|
||||||
<ContextMenu>
|
<ContextMenu>
|
||||||
<ContextMenu.ItemsSource>
|
<ContextMenu.ItemsSource>
|
||||||
@ -50,23 +51,6 @@
|
|||||||
|
|
||||||
</CompositeCollection>
|
</CompositeCollection>
|
||||||
</ContextMenu.ItemsSource>
|
</ContextMenu.ItemsSource>
|
||||||
|
|
||||||
<!--<MenuItem Header="Networks">
|
|
||||||
<MenuItem.ItemsSource>
|
|
||||||
<CompositeCollection>
|
|
||||||
<CollectionContainer Collection="{Binding Source={StaticResource KnownNetworks}}"/>
|
|
||||||
</CompositeCollection>
|
|
||||||
</MenuItem.ItemsSource>
|
|
||||||
<MenuItem.ItemContainerStyle>
|
|
||||||
<Style>
|
|
||||||
<Setter Property="MenuItem.Header" Value="{Binding Title}"/>
|
|
||||||
--><!-- <Setter Property="MenuItem.IsCheckable" Value="True"/> --><!--
|
|
||||||
<Setter Property="MenuItem.IsChecked" Value="{Binding IsConnected}"/>
|
|
||||||
<EventSetter Event="MenuItem.Click" Handler="ToolbarItem_NetworkClicked"/>
|
|
||||||
</Style>
|
|
||||||
</MenuItem.ItemContainerStyle>
|
|
||||||
</MenuItem>-->
|
|
||||||
|
|
||||||
</ContextMenu>
|
</ContextMenu>
|
||||||
</tb:TaskbarIcon.ContextMenu>
|
</tb:TaskbarIcon.ContextMenu>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user