This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Diagnostics; | |
| using System.Runtime.InteropServices; | |
| using System.Windows; | |
| using System.Windows.Interop; | |
| namespace KinectRun.Host.Controls | |
| { | |
| // GameHost is a FrameworkElement and can be added to controls like so: | |
| // var gameHost = new GameHost(container.ActualWidth, container.ActualHeight); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <StackPanel Margin="20" VerticalAlignment="Center"> | |
| <Slider IsSelectionRangeEnabled="True" | |
| Style="{x:Null}" | |
| Maximum="100" | |
| Minimum="0" | |
| SelectionEnd="60" | |
| SelectionStart="30" | |
| TickFrequency="10" | |
| TickPlacement="TopLeft" | |
| Value="50" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /****************************************************************************** | |
| * Name: Taskbar.cs | |
| * Description: Class to get the taskbar's position, size and other properties. | |
| * Author: Franz Alex Gaisie-Essilfie | |
| * based on code from https://winsharp93.wordpress.com/2009/06/29/find-out-size-and-position-of-the-taskbar/ | |
| * | |
| * Change Log: | |
| * Date | Description | |
| * -------------|-------------------------------------------------------------- | |
| * 2017-05-16 | Initial design |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <controls:MetroWindow.Resources> | |
| <ControlTemplate x:Key="WindowCommandsButtonTemplate" TargetType="{x:Type Button}"> | |
| <Grid x:Name="RootGrid" Background="{TemplateBinding Background}"> | |
| <controls:ContentControlEx x:Name="PART_ContentControlEx" | |
| Padding="{TemplateBinding Padding}" | |
| HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" | |
| VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" | |
| Content="{TemplateBinding Content}" | |
| ContentCharacterCasing="{Binding RelativeSource={RelativeSource AncestorType={x:Type controls:WindowCommands}}, Path=(controls:ControlsHelper.ContentCharacterCasing)}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <configuration> | |
| <startup> | |
| <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> | |
| </startup> | |
| <runtime> | |
| <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | |
| <dependentAssembly> | |
| <assemblyIdentity name="SkiaSharp" publicKeyToken="0738eb9f132ed756" culture="neutral" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <summary> | |
| /// Identifies the <see cref="$propertyName$"/> dependency property. | |
| /// </summary> | |
| public static readonly $dependencyProperty$ $propertyName$Property | |
| = $dependencyProperty$.Register(nameof($propertyName$), typeof($propertyType$), typeof($containingType$), new PropertyMetadata(default($propertyType$))); | |
| /// <summary> | |
| /// Get or sets the $propertyName$ property. | |
| /// </summary> | |
| public $propertyType$ $propertyName$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Windows; | |
| using System.Windows.Controls; | |
| using System.Windows.Media; | |
| using System.Windows.Threading; | |
| namespace ListBoxScrollSync | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Windows; | |
| using System.Windows.Input; | |
| using System.Windows.Interactivity; | |
| namespace ExtraBehaviors | |
| { | |
| /// <summary> | |
| /// The BubbleScrollEvent behavior can be used to prevent the mousewheel scrolling on a scrollable control. | |
| /// The event will be bubble up to the parent control. | |
| /// This behavior can be prevent with the left Shift key. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Window x:Class="WpfApp1.MainWindow" | |
| 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:WpfApp1" | |
| mc:Ignorable="d" | |
| Title="MainWindow" Height="450" Width="800"> | |
| <Grid> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Page | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| xmlns:dd="urn:gong-wpf-dragdrop"> | |
| <Grid> | |
| <ItemsControl x:Name="pnlBilder" | |
| HorizontalAlignment="Center" | |
| Width="300" Height="100" | |
| dd:DragDrop.IsDragSource="True" | |
| ScrollViewer.HorizontalScrollBarVisibility="Disabled" |