2011-02-17 2 views

답변

0

제대로 작동합니다.

<Window x:Class="WpfApplication9.MainWindow" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Title="MainWindow" > 
<Rectangle Height="100" Width="100"> 

    <Rectangle.Fill> 
     <DrawingBrush> 
      <DrawingBrush.Drawing> 
       <DrawingGroup> 
        <GeometryDrawing> 
         <GeometryDrawing.Brush> 
          <ImageBrush ImageSource="IC23839.jpg" /> 
         </GeometryDrawing.Brush> 
         <GeometryDrawing.Geometry> 
          <RectangleGeometry Rect="0,0 100,100" /> 
         </GeometryDrawing.Geometry> 

        </GeometryDrawing> 

       </DrawingGroup> 
      </DrawingBrush.Drawing> 
     </DrawingBrush> 

    </Rectangle.Fill> 

</Rectangle> 

관련 문제