45 lines
2.1 KiB
XML
Executable File
45 lines
2.1 KiB
XML
Executable File
<!--
|
|
ElementView.xaml
|
|
part of zaaReloaded2
|
|
|
|
Copyright 2015-2017 Daniel Kraus
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<Window x:Class="zaaReloaded2.Views.ElementView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:b="clr-namespace:Bovender.Mvvm.Views.Settings;assembly=Bovender"
|
|
ResizeMode="NoResize" ShowInTaskbar="False"
|
|
Width="460" Height="180" MinWidth="280" MinHeight="180"
|
|
b:WindowState.CenterScreen="True" b:WindowState.Save="True"
|
|
Title="Element bearbeiten"
|
|
FocusManager.FocusedElement="{Binding ElementName=ContentTextBox}"
|
|
Icon="pack://application:,,,/zaaReloaded2;component/Icons/icon.png"
|
|
>
|
|
<Window.Resources>
|
|
<ResourceDictionary Source="/Bovender;component/Style.xaml" />
|
|
</Window.Resources>
|
|
<DockPanel Margin="10">
|
|
<Label DockPanel.Dock="Top" Content="Inhalt:" Target="{Binding ElementName=ContentTextBox}" />
|
|
<UniformGrid DockPanel.Dock="Bottom" HorizontalAlignment="Right" Columns="2" Rows="1" Margin="0 10 0 0">
|
|
<Button Content="OK" Command="{Binding SaveCommand}" IsDefault="True" Margin="0 0 5 0" />
|
|
<Button Content="Abbrechen" Command="{Binding CloseViewCommand}" IsCancel="True" Margin="5 0 0 0" />
|
|
</UniformGrid>
|
|
<TextBox Text="{Binding Content,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
|
VerticalScrollBarVisibility="Auto"
|
|
x:Name="ContentTextBox" Margin="0 0 0 5" TextWrapping="Wrap" />
|
|
</DockPanel>
|
|
</Window>
|