Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Window x:Class="Key_Master.View.Hauptfenster"
- 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:Key_Master.View"
- xmlns:local1="clr-namespace:Key_Master.ViewM"
- Title="Hauptfenster" Height="956.076" Width="1577.746">
- <Window.Resources>
- <local1:ImageUrlToImageConverter x:Key="IImageUrlToImageConverter" />
- </Window.Resources>
- <Grid RenderTransformOrigin="0.434,0.407" Background="#FF131212" Margin="0,0,0.4,3.8">
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Grid x:Name="Sketch" Margin="145,110,715,288.7">
- <Grid.RowDefinitions>
- <RowDefinition Height="0.9*"/>
- <RowDefinition Height="0.1*" />
- </Grid.RowDefinitions>
- <ItemsControl x:Name="myIc" Grid.Row="0" Margin="0,0,0,10" DataContext="{Binding CurrentField}" ItemsSource="{Binding Tueren}" >
- <ItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <Canvas x:Name="canvi" Grid.Row="0" MouseDown="Canvi_MouseDown">
- <Canvas.Background>
- <ImageBrush ImageSource="{Binding PicsOfFieldsUri, Converter={StaticResource IImageUrlToImageConverter}}"/>
- </Canvas.Background>
- </Canvas>
- </ItemsPanelTemplate>
- </ItemsControl.ItemsPanel>
- <ItemsControl.ItemContainerStyle>
- <Style TargetType="ContentPresenter">
- <Setter Property="Canvas.Left" Value="{Binding Xcoordinate}" />
- <Setter Property="Canvas.Top" Value="{Binding Ycoordinate}" />
- </Style>
- </ItemsControl.ItemContainerStyle>
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <Button Command="{Binding Path=DataContext.AddDoorCommand, ElementName=Sketch}" Background="GreenYellow" Content="{Binding Path=Bezeichnung}" TextElement.FontWeight="Bold" Width="55" Height="35"/>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- <Slider x:Name="mySlider" Grid.Row="1" Margin="5" Maximum="44" Minimum="0"
- TickFrequency="1" IsSnapToTickEnabled="True" TickPlacement="TopLeft"
- Value ="{Binding ActuallySliderValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Background="#00000000"/>
- </Grid>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement