正如您所看到的,我正在框架内加载页面,但问题是布局无法正确应用。 编辑:我的意思是,如果窗口大小将小于页面,它将控制将关闭屏幕...我上传了一张图片,它是在最后一行
有人可以帮助我吗?
以下是我的MainWindow.xaml的一部分:
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:ParniyanAccounting"
xmlns:Custom="http://schemas.microsoft.com/winfx/2006/xaml/presentation/ribbon" x:Class="ParniyanAccounting.MainWindow"
Title="MainWindow" Height="720" Width="1280" WindowStartupLocation="CenterScreen">
<Grid FlowDirection="RightToLeft">
<Frame x:Name="PagesFrame" Margin="0,138,0,0" UseLayoutRounding="True"/>...
,这是在框架内加载的页面的xaml:
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:c="clr-namespace:ParniyanAccounting"
xmlns:PersianDateControls="clr-namespace:Arash.PersianDateControls;assembly=PersianDateControls" xmlns:Custom="http://schemas.microsoft.com/winfx/2006/xaml/presentation/ribbon" x:Class="ParniyanAccounting.SellProduct"
Title="SellProduct" Height="720" Width="1212.071" Loaded="Window_Loaded" UseLayoutRounding="True" KeyUp="Page_KeyUp">
<Page.Resources>
<c:QuantityConverter x:Key="myQuantityConverter" />
</Page.Resources>
<DockPanel>
<Grid FlowDirection="RightToLeft">
<PersianDateControls:PersianDatePicker x:Name="txtDate" HorizontalAlignment="Left" Margin="52,17,0,0" VerticalAlignment="Top" Width="120" IsTabStop="True" SelectedDateChanged="txtDate_SelectedDateChanged"/>