- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想使用基本握法。但我不知道在哪里可以改变它的位置。现在,如果您查看我的图片,您可以看到我禁用了边框并为主矩形添加了一些阴影。我想保持这种状态。
不知道这个"ResizeMode="CanResizeWithGrip"旁边有没有简单的修改
代码:
<Window x:Class="Serenity.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:Serenity"
mc:Ignorable="d"
Title="MainWindow" Height="700" Width="1100" WindowStyle="None" AllowsTransparency="True" Background="{x:Null}" MinWidth="720" MinHeight="480" Icon="Images/CloseBlack.png" ResizeMode="CanResizeWithGrip">
<Grid>
<Rectangle x:Name="MainTable" Fill="#FF1A1A1A" Margin="10" Stroke="Black" StrokeThickness="1.0">
<Rectangle.Effect>
<DropShadowEffect x:Name="Shadow" BlurRadius="13" ShadowDepth="0" Color="Black"/>
</Rectangle.Effect>
</Rectangle>
<Button x:Name="Website" Content="Google" Margin="0,0,38,38" Click="button_Click" Background="#FF48484A" BorderBrush="{x:Null}" Foreground="White" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" AutomationProperties.HelpText="You will close the program." Height="28" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="99"/>
<Rectangle x:Name="TitleBar" Fill="#FF2D2D30" Height="43" Margin="10,10,10,0" Stroke="Black" VerticalAlignment="Top" MouseDown="TitleBar_MouseDown"/>
<Button x:Name="CloseB" Content="Exit" Margin="0,18,19,0" BorderBrush="{x:Null}" Foreground="White" HorizontalAlignment="Right" Width="50" Height="24" VerticalAlignment="Top" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" RenderTransformOrigin="-0.25,1.45" Click="CloseB_Click" Background="#FF48484A" OpacityMask="Black" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
</Grid>
最佳答案
我已经尝试并成功了
<Style TargetType="{x:Type ResizeGrip}">
<Setter Property="Margin" Value="25"/>
</Style>
关于c# - 如何更改 WPF 中默认 "grip"的位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40873780/
在嵌套的 WPF ToolBarPanel-ToolBar-Menu 中,我们希望摆脱左侧的握柄和右侧的溢出区域。它们都是灰色的,但我们希望它们根本不显示。 关于如何实现这一目标有什么想法吗? 以防万
我有一个带有单个 ToolStripStatusLabel、Spring=true 和通知背景色的 StatusStrip。 问题是状态条右侧有一个丑陋的灰色方 block 。摆弄了一会儿后,我意识到
我想在 Windows 窗体窗体上有一个调整大小指示(与有状态栏时相同的调整大小控制)。我不想向表单添加状态栏 - 这会破坏表单的设计。 表单内部可以有各种停靠(填充)控件。除了在每个控件的右下角绘制
我有一个 RibbonWindow,其中我的 WindowStyle 设置为 None,所以我不明白 Grip 发生了什么来调整窗口大小?!即使我的控件底部的 Margin 设置为 0 也会被隐藏..
我想使用基本握法。但我不知道在哪里可以改变它的位置。现在,如果您查看我的图片,您可以看到我禁用了边框并为主矩形添加了一些阴影。我想保持这种状态。 不知道这个"ResizeMode="CanResize
我在WPF应用程序中使用工具栏。据我了解,没有简单的方法可以使其 float 。我只想删除不希望显示的元素:ToolBar左侧的几个点。是否有任何可自定义工具栏 View 的属性?或者,也许可以重新定
我有一个包含嵌入式 youtube 视频的页面,我正在尝试实现自定义覆盖,您可以在其中使用可调整大小和可拖动的 定义区域。 (使用 JQuery 用户界面)。 拖动 时在屏幕的其他区域,它的响应速
我正在尝试弄清楚如何处理向 Twitter Bootstrap MEDIA GRID 元素添加“字幕”。这是一个例子:http://jsfiddle.net/vXMMA/73/ 您会注意到“长”标题使
我个人认为标题很明确,如果没有,我会尝试更多。仅适用于 Windows 的托管解决方案,不适用于 Linux。如您所知,方法“getchar()”仅在键盘按键按下“Enter”后读取。 Linux 上
我是 opencv 的新手,想了解更多。这是我的管道: import cv2 import numpy import math from enum import Enum class GripPipe
我是一名优秀的程序员,十分优秀!